Mercurial > public > mercurial-scm > hg
diff mercurial/localrepo.py @ 3568:23f7d9621783
Merge with upstream
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 27 Oct 2006 23:09:46 +0200 |
parents | eda9e7c9300d 26b556c1d01d |
children | 7f7425306925 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Fri Oct 27 19:24:57 2006 +0200 +++ b/mercurial/localrepo.py Fri Oct 27 23:09:46 2006 +0200 @@ -714,6 +714,18 @@ return n def walk(self, node=None, files=[], match=util.always, badmatch=None): + ''' + walk recursively through the directory tree or a given + changeset, finding all files matched by the match + function + + results are yielded in a tuple (src, filename), where src + is one of: + 'f' the file was found in the directory tree + 'm' the file was only in the dirstate and not in the tree + 'b' file was not found and matched badmatch + ''' + if node: fdict = dict.fromkeys(files) for fn in self.manifest.read(self.changelog.read(node)[0]):