statwalk: don't put self.root in the files list
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 10 Mar 2007 22:03:22 -0300
changeset 4172 b36bd7534c08
parent 4171 1df1baf2002e
child 4173 7307d2e98b32
statwalk: don't put self.root in the files list That list is supposed to contain internal, normalized names ("/"-separated, relative to the repo root), not OS-native paths.
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Sat Mar 10 22:03:21 2007 -0300
+++ b/mercurial/dirstate.py	Sat Mar 10 22:03:22 2007 -0300
@@ -376,7 +376,7 @@
 
         # walk all files by default
         if not files:
-            files = [self.root]
+            files = ['.']
             dc = self.map.copy()
         else:
             files = util.unique(files)