Mercurial > hg-stable
comparison mercurial/scmutil.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 | f61f5af5ed31 |
comparison
equal
deleted
inserted
replaced
34349:b3538c03a804 | 34350:255c761a52db |
---|---|
758 added, unknown, deleted, removed, forgotten = [], [], [], [], [] | 758 added, unknown, deleted, removed, forgotten = [], [], [], [], [] |
759 audit_path = pathutil.pathauditor(repo.root, cached=True) | 759 audit_path = pathutil.pathauditor(repo.root, cached=True) |
760 | 760 |
761 ctx = repo[None] | 761 ctx = repo[None] |
762 dirstate = repo.dirstate | 762 dirstate = repo.dirstate |
763 walkresults = dirstate.walk(matcher, sorted(ctx.substate), True, False, | 763 walkresults = dirstate.walk(matcher, subrepos=sorted(ctx.substate), |
764 full=False) | 764 unknown=True, ignored=False, full=False) |
765 for abs, st in walkresults.iteritems(): | 765 for abs, st in walkresults.iteritems(): |
766 dstate = dirstate[abs] | 766 dstate = dirstate[abs] |
767 if dstate == '?' and audit_path.check(abs): | 767 if dstate == '?' and audit_path.check(abs): |
768 unknown.append(abs) | 768 unknown.append(abs) |
769 elif dstate != 'r' and not st: | 769 elif dstate != 'r' and not st: |