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

login
register
mail settings
Submitter phabricator
Date June 29, 2019, 11:04 p.m.
Message ID <49b43e6fd0d15649194cfd350424cd92@localhost.localdomain>
Download mbox | patch
Permalink /patch/40726/
State Not Applicable
Headers show

Comments

phabricator - June 29, 2019, 11:04 p.m.
Closed by commit rHGff89280c626d: automv: access status fields by name, not index (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6586?vs=15704&id=15710

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6586/new/

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

AFFECTED FILES
  hgext/automv.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
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