Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 205
e5f10cf7fdc9
parent 202
6854bb0beda5
child 207
3f889378dede
--- 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