Comments
Patch
@@ -623,14 +623,23 @@
return results, dirsfound, dirsnotfound
- def walk(self, match, subrepos, unknown, ignored):
+ def walk(self, match, subrepos, unknown, ignored, interesting=False):
'''
Walk recursively through the directory tree, finding all files
matched by match.
+ If interesting is True, only return a conservative estimate of files
+ that are somehow interesting. This should include every file that is
+ modified, added, removed, deleted, unknown or ignored (the last two if
+ requested), plus maybe some clean files.
+
Return a dict mapping filename to stat-like object (either
mercurial.osutil.stat instance or return value of os.stat()).
+
'''
+ # interesting is an extension hook -- this implementation doesn't use it
+ # at all. This satisfies the contract because interesting is
+ # conservative.
def fwarn(f, msg):
self._ui.warn('%s: %s\n' % (self.pathto(f), msg))