Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 1212
058fc9ffb0d9
parent 1211
a91a47f2f5e6
child 1237
a6b7e93f649c
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Fri Jul 29 19:01:14 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Tue Aug 16 15:52:12 2011 +0200
@@ -2249,7 +2249,7 @@
         repodir = dname
         while not os.path.isdir(os.path.join(repodir, self.adminDir)):
             repodir = os.path.dirname(repodir)
-            if repodir == os.sep:
+            if not repodir or repodir == os.sep:
                 return
         
         cfgFile = os.path.join(repodir, self.adminDir, "hgrc")

eric ide

mercurial