changeset 6587:a259e217bc0c

walk: make dirstate.walk return a single value too
author Matt Mackall <mpm@selenic.com>
date Mon, 12 May 2008 11:37:08 -0500
parents d3463007d368
children 10c23c1d5f33
files mercurial/dirstate.py mercurial/localrepo.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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,