Plugins/VcsPlugins/vcsMercurial/RebaseExtension/rebase.py

changeset 1318
6fa303bd65d6
parent 1249
77f836a883c1
child 1509
c0b5e693b0eb
diff -r 0bb67aced672 -r 6fa303bd65d6 Plugins/VcsPlugins/vcsMercurial/RebaseExtension/rebase.py
--- a/Plugins/VcsPlugins/vcsMercurial/RebaseExtension/rebase.py	Wed Sep 14 19:46:36 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/RebaseExtension/rebase.py	Thu Sep 15 18:28:26 2011 +0200
@@ -40,7 +40,7 @@
         repodir = self.vcs.splitPath(path)[0]
         while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)):
             repodir = os.path.dirname(repodir)
-            if repodir == os.sep:
+            if os.path.splitdrive(repodir)[1] == os.sep:
                 return False
         
         res = False
@@ -96,7 +96,7 @@
         repodir = self.vcs.splitPath(path)[0]
         while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)):
             repodir = os.path.dirname(repodir)
-            if repodir == os.sep:
+            if os.path.splitdrive(repodir)[1] == os.sep:
                 return False
         
         args = []
@@ -123,7 +123,7 @@
         repodir = self.vcs.splitPath(path)[0]
         while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)):
             repodir = os.path.dirname(repodir)
-            if repodir == os.sep:
+            if os.path.splitdrive(repodir)[1] == os.sep:
                 return False
         
         args = []

eric ide

mercurial