Mercurial > hg-stable
comparison mercurial/dirstate.py @ 6572:4927cf61bdc1
walk: eliminate some default variables
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:07 -0500 |
parents | 31abcae33b4f |
children | 569761919450 |
comparison
equal
deleted
inserted
replaced
6571:e6f71ca3de8a | 6572:4927cf61bdc1 |
---|---|
414 for c in strutil.findall(f, '/'): | 414 for c in strutil.findall(f, '/'): |
415 if self._ignore(f[:c]): | 415 if self._ignore(f[:c]): |
416 return True | 416 return True |
417 return False | 417 return False |
418 | 418 |
419 def walk(self, files=None, match=util.always, badmatch=None): | 419 def walk(self, files, match, badmatch): |
420 # filter out the stat | 420 # filter out the stat |
421 for src, f, st in self.statwalk(files, match, badmatch=badmatch): | 421 for src, f, st in self.statwalk(files, match, badmatch=badmatch): |
422 yield src, f | 422 yield src, f |
423 | 423 |
424 def statwalk(self, files=None, match=util.always, unknown=True, | 424 def statwalk(self, files, match, unknown=True, |
425 ignored=False, badmatch=None, directories=False): | 425 ignored=False, badmatch=None, directories=False): |
426 ''' | 426 ''' |
427 walk recursively through the directory tree, finding all files | 427 walk recursively through the directory tree, finding all files |
428 matched by the match function | 428 matched by the match function |
429 | 429 |