# HG changeset patch # User mpm@selenic.com # Date 1126216893 25200 # Node ID cc61d366bc3b5dffe98a68bea888527a5944ea56 # Parent 8d43f8c0b8365e0cefb064ec9711a397cc7e4f19 Fix Windows status problem from new dirstate walk code diff -r 8d43f8c0b836 -r cc61d366bc3b 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)