walk: make dirstate.walk return a single value too
authorMatt Mackall <mpm@selenic.com>
Mon, 12 May 2008 11:37:08 -0500
changeset 6587 a259e217bc0c
parent 6586 d3463007d368
child 6588 10c23c1d5f33
walk: make dirstate.walk return a single value too
mercurial/dirstate.py
mercurial/localrepo.py
--- a/mercurial/dirstate.py	Mon May 12 11:37:08 2008 -0500
+++ b/mercurial/dirstate.py	Mon May 12 11:37:08 2008 -0500
@@ -417,9 +417,9 @@
         return False
 
     def walk(self, match):
-        # filter out the stat
+        # filter out the src and stat
         for src, f, st in self.statwalk(match.files(), match, badfn=match.bad):
-            yield src, f
+            yield f
 
     def statwalk(self, files, match, unknown=True,
                  ignored=False, badfn=None, directories=False):
--- a/mercurial/localrepo.py	Mon May 12 11:37:08 2008 -0500
+++ b/mercurial/localrepo.py	Mon May 12 11:37:08 2008 -0500
@@ -961,7 +961,7 @@
                         and match(fn):
                     yield fn
         else:
-            for src, fn in self.dirstate.walk(match):
+            for fn in self.dirstate.walk(match):
                 yield fn
 
     def status(self, node1=None, node2=None, files=[], match=util.always,