Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 6829:fec1da46006e
dirstate.walk: build a dict rather than yield
Since we're already building a seen dict, we might as well put our
results in it to go slightly faster.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 22 Jul 2008 13:03:21 -0500 |
parents | c978d6752dbb |
children | 835a01a0cdb3 |
line wrap: on
line diff
--- a/mercurial/context.py Tue Jul 22 13:03:20 2008 -0500 +++ b/mercurial/context.py Tue Jul 22 13:03:21 2008 -0500 @@ -598,8 +598,7 @@ return self._parents[0].ancestor(c2) # punt on two parents for now def walk(self, match): - for fn, st in util.sort(self._repo.dirstate.walk(match, True, False)): - yield fn + return util.sort(self._repo.dirstate.walk(match, True, False).keys()) class workingfilectx(filectx): """A workingfilectx object makes access to data related to a particular