mercurial/dirstate.py
changeset 19190 b03952ee634d
parent 19175 63f7bd2e1a46
child 19191 ab9de1e8fc36
--- a/mercurial/dirstate.py	Mon May 13 17:47:04 2013 -0500
+++ b/mercurial/dirstate.py	Mon Apr 22 17:11:18 2013 -0700
@@ -623,14 +623,20 @@
 
         return results, dirsfound, dirsnotfound
 
-    def walk(self, match, subrepos, unknown, ignored):
+    def walk(self, match, subrepos, unknown, ignored, full=True):
         '''
         Walk recursively through the directory tree, finding all files
         matched by match.
 
+        If full is False, maybe skip some known-clean files.
+
         Return a dict mapping filename to stat-like object (either
         mercurial.osutil.stat instance or return value of os.stat()).
+
         '''
+        # full is a flag that extensions that hook into walk can use -- this
+        # implementation doesn't use it at all. This satisfies the contract
+        # because we only guarantee a "maybe".
 
         def fwarn(f, msg):
             self._ui.warn('%s: %s\n' % (self.pathto(f), msg))