Fixed another issue introduced by the VCS changes.

Wed, 30 May 2012 19:59:07 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 30 May 2012 19:59:07 +0200
changeset 1882
70e806f7ebb2
parent 1881
bab54b00f79a
child 1883
2de804dc1452

Fixed another issue introduced by the VCS changes.

Plugins/VcsPlugins/vcsMercurial/hg.py file | annotate | diff | comparison | revisions
diff -r bab54b00f79a -r 70e806f7ebb2 Plugins/VcsPlugins/vcsMercurial/hg.py
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Wed May 30 19:58:03 2012 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Wed May 30 19:59:07 2012 +0200
@@ -1124,9 +1124,11 @@
         
         @param project reference to the project (Project)
         """
-        ignoreName = os.path.join(project.getProjectPath(), Hg.IgnoreFileName)
-        if not os.path.exists(ignoreName):
-            self.hgCreateIgnoreFile(project.getProjectPath(), autoAdd=True)
+        ppath = project.getProjectPath()
+        if ppath:
+            ignoreName = os.path.join(ppath, Hg.IgnoreFileName)
+            if not os.path.exists(ignoreName):
+                self.hgCreateIgnoreFile(project.getProjectPath(), autoAdd=True)
     
     def vcsCleanup(self, name):
         """

eric ide

mercurial