Patchwork D7395: uncommit: use field names instead of field numbers on scmutil.status

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

Comments

phabricator - Nov. 15, 2019, 3:38 a.m.
Closed by commit rHGd0310f21ee9e: uncommit: 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/D7395?vs=18085&id=18123

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

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

AFFECTED FILES
  hgext/uncommit.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/uncommit.py b/hgext/uncommit.py
--- a/hgext/uncommit.py
+++ b/hgext/uncommit.py
@@ -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'