Mercurial > hg-stable
comparison mercurial/localrepo.py @ 6587:a259e217bc0c
walk: make dirstate.walk return a single value too
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:08 -0500 |
parents | d3463007d368 |
children | 41eb20cc1c02 |
comparison
equal
deleted
inserted
replaced
6586:d3463007d368 | 6587:a259e217bc0c |
---|---|
959 for fn in ffiles: | 959 for fn in ffiles: |
960 if match.bad(fn, 'No such file in rev ' + short(node)) \ | 960 if match.bad(fn, 'No such file in rev ' + short(node)) \ |
961 and match(fn): | 961 and match(fn): |
962 yield fn | 962 yield fn |
963 else: | 963 else: |
964 for src, fn in self.dirstate.walk(match): | 964 for fn in self.dirstate.walk(match): |
965 yield fn | 965 yield fn |
966 | 966 |
967 def status(self, node1=None, node2=None, files=[], match=util.always, | 967 def status(self, node1=None, node2=None, files=[], match=util.always, |
968 list_ignored=False, list_clean=False, list_unknown=True): | 968 list_ignored=False, list_clean=False, list_unknown=True): |
969 """return status of files between two nodes or node and working directory | 969 """return status of files between two nodes or node and working directory |