# HG changeset patch # User Martin von Zweigbergk # Date 2019-06-28 21:13:00 # Node ID 2702dfc7e029f562fc2652703a40f666c15dbc2e # Parent abd902a8504077e1ad30ae3d5dd180a1db9b8875 automv: access status fields by name, not index Differential Revision: https://phab.mercurial-scm.org/D6586 diff --git a/hgext/automv.py b/hgext/automv.py --- a/hgext/automv.py +++ b/hgext/automv.py @@ -81,8 +81,8 @@ def _interestingfiles(repo, matcher): """ stat = repo.status(match=matcher) - added = stat[1] - removed = stat[2] + added = stat.added + removed = stat.removed copy = copies.pathcopies(repo['.'], repo[None], matcher) # remove the copy files for which we already have copy info