Patchwork D6586: automv: access status fields by name, not index

login
register
mail settings
Submitter phabricator
Date June 28, 2019, 9:13 p.m.
Message ID <differential-rev-PHID-DREV-lc6cqcdxxf5adownp5ts-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/40722/
State Superseded
Headers show

Comments

phabricator - June 28, 2019, 9:13 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6586

AFFECTED FILES
  hgext/automv.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/automv.py b/hgext/automv.py
--- a/hgext/automv.py
+++ b/hgext/automv.py
@@ -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