Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 34350:255c761a52db
dirstate: use keyword arguments to clarify walk()'s callers
The arguments are especially non-obvious because the order is
different from dirstate.status().
Differential Revision: https://phab.mercurial-scm.org/D846
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 29 Sep 2017 14:19:36 -0700 |
parents | 4647e0a8d3d7 |
children | 2a360445afa0 |
comparison
equal
deleted
inserted
replaced
34349:b3538c03a804 | 34350:255c761a52db |
---|---|
2706 | 2706 |
2707 badmatch = matchmod.badmatch(match, badfn) | 2707 badmatch = matchmod.badmatch(match, badfn) |
2708 dirstate = repo.dirstate | 2708 dirstate = repo.dirstate |
2709 # We don't want to just call wctx.walk here, since it would return a lot of | 2709 # We don't want to just call wctx.walk here, since it would return a lot of |
2710 # clean files, which we aren't interested in and takes time. | 2710 # clean files, which we aren't interested in and takes time. |
2711 for f in sorted(dirstate.walk(badmatch, sorted(wctx.substate), | 2711 for f in sorted(dirstate.walk(badmatch, subrepos=sorted(wctx.substate), |
2712 True, False, full=False)): | 2712 unknown=True, ignored=False, full=False)): |
2713 exact = match.exact(f) | 2713 exact = match.exact(f) |
2714 if exact or not explicitonly and f not in wctx and repo.wvfs.lexists(f): | 2714 if exact or not explicitonly and f not in wctx and repo.wvfs.lexists(f): |
2715 if cca: | 2715 if cca: |
2716 cca(f) | 2716 cca(f) |
2717 names.append(f) | 2717 names.append(f) |