##// END OF EJS Templates
dirstate.walk: add a flag to let extensions avoid full walks...
Siddharth Agarwal -
r19190:b03952ee default
parent child Browse files
Show More
@@ -623,14 +623,20 b' class dirstate(object):'
623
623
624 return results, dirsfound, dirsnotfound
624 return results, dirsfound, dirsnotfound
625
625
626 def walk(self, match, subrepos, unknown, ignored):
626 def walk(self, match, subrepos, unknown, ignored, full=True):
627 '''
627 '''
628 Walk recursively through the directory tree, finding all files
628 Walk recursively through the directory tree, finding all files
629 matched by match.
629 matched by match.
630
630
631 If full is False, maybe skip some known-clean files.
632
631 Return a dict mapping filename to stat-like object (either
633 Return a dict mapping filename to stat-like object (either
632 mercurial.osutil.stat instance or return value of os.stat()).
634 mercurial.osutil.stat instance or return value of os.stat()).
635
633 '''
636 '''
637 # full is a flag that extensions that hook into walk can use -- this
638 # implementation doesn't use it at all. This satisfies the contract
639 # because we only guarantee a "maybe".
634
640
635 def fwarn(f, msg):
641 def fwarn(f, msg):
636 self._ui.warn('%s: %s\n' % (self.pathto(f), msg))
642 self._ui.warn('%s: %s\n' % (self.pathto(f), msg))
General Comments 0
You need to be logged in to leave comments. Login now