Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Fri Sep 29 14:23:41 2017 -0700 +++ b/mercurial/cmdutil.py Fri Sep 29 14:19:36 2017 -0700 @@ -2708,8 +2708,8 @@ dirstate = repo.dirstate # We don't want to just call wctx.walk here, since it would return a lot of # clean files, which we aren't interested in and takes time. - for f in sorted(dirstate.walk(badmatch, sorted(wctx.substate), - True, False, full=False)): + for f in sorted(dirstate.walk(badmatch, subrepos=sorted(wctx.substate), + unknown=True, ignored=False, full=False)): exact = match.exact(f) if exact or not explicitonly and f not in wctx and repo.wvfs.lexists(f): if cca: