Fixed an issue with the Mercurial plug-in on Windows.

Sun, 25 Apr 2010 17:30:05 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 25 Apr 2010 17:30:05 +0000
changeset 205
e5f10cf7fdc9
parent 204
61552f56788a
child 206
e24ba21c6d3a

Fixed an issue with the Mercurial plug-in on Windows.

Plugins/VcsPlugins/vcsMercurial/hg.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Sun Apr 25 15:22:11 2010 +0000
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Sun Apr 25 17:30:05 2010 +0000
@@ -838,6 +838,7 @@
         """
         if dname.endswith(os.sep):
             dname = dname[:-1]
+        dname = os.path.normcase(dname)
         
         found = False
         for name in list(self.statusCache.keys()):
@@ -870,7 +871,7 @@
                         str(process.readAllStandardOutput(), ioEncoding, 'replace')
                     for line in output.splitlines():
                         flag, path = line.split(" ", 1)
-                        name = os.path.join(repodir, os.path.normcase(path))
+                        name = os.path.normcase(os.path.join(repodir, path))
                         dirName = os.path.dirname(name)
                         if name.startswith(dname):
                             if flag not in "?I":

eric ide

mercurial