automv: access status fields by name, not index
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 28 Jun 2019 14:13:00 -0700
changeset 42544 2702dfc7e029
parent 42543 abd902a85040
child 42546 904e0da2e195
automv: access status fields by name, not index Differential Revision: https://phab.mercurial-scm.org/D6586
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