diff hgext/transplant.py @ 43642:96edd0c38740

transplant: use field names instead of field numbers on scmutil.status As part of my pytype adventures I want to make scmutil.status no longer a subclass of tuple. This is part of that process. Differential Revision: https://phab.mercurial-scm.org/D7394
author Augie Fackler <augie@google.com>
date Thu, 14 Nov 2019 15:25:57 -0500
parents 9f70512ae2cf
children d50b4ad1d4a5
line wrap: on
line diff
--- a/hgext/transplant.py	Thu Nov 14 15:25:48 2019 -0500
+++ b/hgext/transplant.py	Thu Nov 14 15:25:57 2019 -0500
@@ -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,