mercurial/cmdutil.py
changeset 6585 d3d1d39da2fa
parent 6584 29c77e5dfb3c
child 6586 d3463007d368
--- a/mercurial/cmdutil.py	Mon May 12 11:37:08 2008 -0500
+++ b/mercurial/cmdutil.py	Mon May 12 11:37:08 2008 -0500
@@ -235,10 +235,6 @@
     m.bad = badfn
     return m
 
-def walk(repo, match, node=None):
-    for src, fn in repo.walk(node, match):
-        yield src, fn
-
 def findrenames(repo, added=None, removed=None, threshold=0.5):
     '''find renamed files -- yields (before, after, score) tuples'''
     if added is None or removed is None:
@@ -275,7 +271,7 @@
     add, remove = [], []
     mapping = {}
     m = match(repo, pats, opts)
-    for src, abs in walk(repo, m):
+    for src, abs in repo.walk(m):
         target = repo.wjoin(abs)
         rel = m.rel(abs)
         exact = m.exact(abs)
@@ -317,7 +313,7 @@
     def walkpat(pat):
         srcs = []
         m = match(repo, [pat], opts, globbed=True)
-        for tag, abs in walk(repo, m):
+        for tag, abs in repo.walk(m):
             state = repo.dirstate[abs]
             rel = m.rel(abs)
             exact = m.exact(abs)