Fixed an issue with determining the Mercurial status on Windows systems.

Thu, 13 May 2010 13:23:30 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 13 May 2010 13:23:30 +0200
changeset 240
b0d829cf4234
parent 239
734a7fa843df
child 241
aaa856499ed5

Fixed an issue with determining the Mercurial status on Windows systems.

Plugins/VcsPlugins/vcsMercurial/hg.py file | annotate | diff | comparison | revisions
diff -r 734a7fa843df -r b0d829cf4234 Plugins/VcsPlugins/vcsMercurial/hg.py
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Tue May 11 19:31:55 2010 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Thu May 13 13:23:30 2010 +0200
@@ -792,6 +792,7 @@
         """
         if name.endswith(os.sep):
             name = name[:-1]
+        name = os.path.normcase(name)
         dname, fname = self.splitPath(name)
         
         if fname == '.' and os.path.isdir(os.path.join(dname, self.adminDir)):
@@ -826,7 +827,9 @@
                     absname = os.path.join(repodir, os.path.normcase(path))
                     if flag not in "?I":
                         if fname == '.':
-                            if absname.startswith(dname):
+                            if absname.startswith(dname + os.path.sep):
+                                return self.canBeCommitted
+                            if absname == dname:
                                 return self.canBeCommitted
                         else:
                             if absname == name:

eric ide

mercurial