comparison mercurial/localrepo.py @ 6755:f8299c84b5b6

dirstate: fold statwalk and walk
author Matt Mackall <mpm@selenic.com>
date Thu, 26 Jun 2008 14:35:50 -0500
parents ed5ffb2c12f3
children 4faaa0535ea7
comparison
equal deleted inserted replaced
6754:0b700faaef32 6755:f8299c84b5b6
966 for fn in ffiles: 966 for fn in ffiles:
967 if match.bad(fn, 'No such file in rev ' + short(node)) \ 967 if match.bad(fn, 'No such file in rev ' + short(node)) \
968 and match(fn): 968 and match(fn):
969 yield fn 969 yield fn
970 else: 970 else:
971 for fn in self.dirstate.walk(match): 971 for src, fn, st in self.dirstate.walk(match, True, False):
972 yield fn 972 yield fn
973 973
974 def status(self, node1=None, node2=None, match=None, 974 def status(self, node1=None, node2=None, match=None,
975 ignored=False, clean=False, unknown=True): 975 ignored=False, clean=False, unknown=True):
976 """return status of files between two nodes or node and working directory 976 """return status of files between two nodes or node and working directory