Patchwork D7394: transplant: use field names instead of field numbers on scmutil.status

login
register
mail settings
Submitter phabricator
Date Nov. 15, 2019, 3:37 a.m.
Message ID <73859a99f5684de399260c0ebca225fa@localhost.localdomain>
Download mbox | patch
Permalink /patch/43234/
State Not Applicable
Headers show

Comments

phabricator - Nov. 15, 2019, 3:37 a.m.
Closed by commit rHG96edd0c38740: transplant: use field names instead of field numbers on scmutil.status (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7394?vs=18084&id=18122

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

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

AFFECTED FILES
  hgext/transplant.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/hgext/transplant.py b/hgext/transplant.py
--- a/hgext/transplant.py
+++ b/hgext/transplant.py
@@ -443,7 +443,13 @@ 
                 )
             if merge:
                 repo.setparents(p1, parents[1])
-            modified, added, removed, deleted = repo.status()[:4]
+            st = repo.status()
+            modified, added, removed, deleted = (
+                st.modified,
+                st.added,
+                st.removed,
+                st.deleted,
+            )
             if merge or modified or added or removed or deleted:
                 n = repo.commit(
                     message,