# HG changeset patch # User Martin von Zweigbergk # Date 1416445647 28800 # Node ID aa0a430d9c75e3fcd0589c1620796857b32d2497 # Parent 99a8864180007201aa5c95bcf304b911e82f53f4 revert: access status fields by name rather than index For better readability. diff -r 99a886418000 -r aa0a430d9c75 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Wed Nov 19 18:35:14 2014 +0900 +++ b/mercurial/cmdutil.py Wed Nov 19 17:07:27 2014 -0800 @@ -2590,13 +2590,13 @@ m = scmutil.matchfiles(repo, names) - modified = set(changes[0]) - added = set(changes[1]) - removed = set(changes[2]) - _deleted = set(changes[3]) - unknown = set(changes[4]) - unknown.update(changes[5]) - clean = set(changes[6]) + modified = set(changes.modified) + added = set(changes.added) + removed = set(changes.removed) + _deleted = set(changes.deleted) + unknown = set(changes.unknown) + unknown.update(changes.ignored) + clean = set(changes.clean) modadded = set() # split between files known in target manifest and the others @@ -2618,9 +2618,9 @@ modified, added, removed = set(), set(), set() else: changes = repo.status(node1=parent, match=m) - dsmodified = set(changes[0]) - dsadded = set(changes[1]) - dsremoved = set(changes[2]) + dsmodified = set(changes.modified) + dsadded = set(changes.added) + dsremoved = set(changes.removed) # only take into account for removes between wc and target clean |= dsremoved - removed