# HG changeset patch # User Augie Fackler # Date 2019-11-14 20:26:05 # Node ID d0310f21ee9ef868c22d6c70c16f3abf4f457095 # Parent 96edd0c38740ac6232f7c2a4a896fd0145145b4f 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 diff --git a/hgext/uncommit.py b/hgext/uncommit.py --- a/hgext/uncommit.py +++ b/hgext/uncommit.py @@ -157,7 +157,8 @@ def uncommit(ui, repo, *pats, **opts): 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'