# HG changeset patch # User Martin von Zweigbergk # Date 1561756380 25200 # Node ID 2702dfc7e029f562fc2652703a40f666c15dbc2e # Parent abd902a8504077e1ad30ae3d5dd180a1db9b8875 automv: access status fields by name, not index Differential Revision: https://phab.mercurial-scm.org/D6586 diff -r abd902a85040 -r 2702dfc7e029 hgext/automv.py --- a/hgext/automv.py Fri Jun 28 14:07:09 2019 -0700 +++ b/hgext/automv.py Fri Jun 28 14:13:00 2019 -0700 @@ -81,8 +81,8 @@ """ 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