changeset 43643:d0310f21ee9e

uncommit: 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/D7395
author Augie Fackler <augie@google.com>
date Thu, 14 Nov 2019 15:26:05 -0500
parents 96edd0c38740
children e01e0641f18a
files hgext/uncommit.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/uncommit.py	Thu Nov 14 15:25:57 2019 -0500
+++ b/hgext/uncommit.py	Thu Nov 14 15:26:05 2019 -0500
@@ -157,7 +157,8 @@
 
     with repo.wlock(), repo.lock():
 
-        m, a, r, d = repo.status()[:4]
+        st = repo.status()
+        m, a, r, d = st.modified, st.added, st.removed, st.deleted
         isdirtypath = any(set(m + a + r + d) & set(pats))
         allowdirtywcopy = opts[
             b'allow_dirty_working_copy'