Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 240
b0d829cf4234
parent 219
0553aa793753
child 248
f4561c24989a
--- 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