Mercurial > public > mercurial-scm > hg
diff mercurial/dirstate.py @ 6827:c978d6752dbb
dirstate.walk: push sorting up
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 22 Jul 2008 13:03:19 -0500 |
parents | eca20fee0728 |
children | 55d65a33da52 |
line wrap: on
line diff
--- a/mercurial/dirstate.py Tue Jul 22 13:03:18 2008 -0500 +++ b/mercurial/dirstate.py Tue Jul 22 13:03:19 2008 -0500 @@ -469,8 +469,6 @@ _join = self._join work = [] wadd = work.append - found = [] - add = found.append seen = {'.hg': 1} @@ -532,14 +530,12 @@ if not ignore(nf): wadd(nf) if nf in dmap and match(nf): - add((nf, None)) + yield nf, None elif imatch(nf): if supported(nf, st.st_mode): - add((nf, st)) + yield nf, st elif nf in dmap: - add((nf, None)) - for e in util.sort(found): - yield e + yield nf, None # step 3: report unseen items in the dmap hash for f in util.sort(dmap):