Mercurial > public > mercurial-scm > hg
diff mercurial/context.py @ 34343: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 | 0fa781320203 |
children | ac0cd81e2f83 |
line wrap: on
line diff
--- a/mercurial/context.py Fri Sep 29 14:23:41 2017 -0700 +++ b/mercurial/context.py Fri Sep 29 14:19:36 2017 -0700 @@ -1478,8 +1478,9 @@ def walk(self, match): '''Generates matching file names.''' - return sorted(self._repo.dirstate.walk(match, sorted(self.substate), - True, False)) + return sorted(self._repo.dirstate.walk(match, + subrepos=sorted(self.substate), + unknown=True, ignored=False)) def matches(self, match): return sorted(self._repo.dirstate.matches(match))