D7394: transplant: use field names instead of field numbers on scmutil.status
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Fri Nov 15 03:37:54 UTC 2019
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
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,
To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list