changeset 42551:2702dfc7e029

automv: access status fields by name, not index Differential Revision: https://phab.mercurial-scm.org/D6586
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 28 Jun 2019 14:13:00 -0700
parents abd902a85040
children 904e0da2e195
files hgext/automv.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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