Fix Windows status problem from new dirstate walk code
authormpm@selenic.com
Thu, 08 Sep 2005 15:01:33 -0700
changeset 1224 cc61d366bc3b
parent 1223 8d43f8c0b836
child 1225 ea90162e210c
Fix Windows status problem from new dirstate walk code
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Thu Sep 08 12:17:24 2005 -0700
+++ b/mercurial/dirstate.py	Thu Sep 08 15:01:33 2005 -0700
@@ -218,14 +218,16 @@
             dc = self.filterfiles(files)
 
         def statmatch(file, stat):
+            file = util.pconvert(file)
             if file not in dc and self.ignore(file):
                 return False
             return match(file)
+
         return self.walkhelper(files=files, statmatch=statmatch, dc=dc)
 
     # walk recursively through the directory tree, finding all files
     # matched by the statmatch function
-    # 
+    #
     # results are yielded in a tuple (src, filename), where src is one of:
     # 'f' the file was found in the directory tree
     # 'm' the file was only in the dirstate and not in the tree
@@ -324,10 +326,11 @@
         # and put files into the appropriate array.  This gets passed
         # to the walking code
         def statmatch(fn, s):
+            fn = util.pconvert(fn)
             def checkappend(l, fn):
                 if match is util.always or match(fn):
                     l.append(fn)
-                   
+
             if not s or stat.S_ISDIR(s.st_mode):
                 return self.ignore(fn) and False or match(fn)