Patchwork D7393: split: use field names instead of field numbers on scmutil.status

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

Comments

phabricator - Nov. 15, 2019, 3:37 a.m.
Closed by commit rHG705738def50c: split: 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/D7393?vs=18083&id=18121

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

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

AFFECTED FILES
  hgext/split.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/split.py b/hgext/split.py
--- a/hgext/split.py
+++ b/hgext/split.py
@@ -152,7 +152,9 @@ 
         scmutil.movedirstate(repo, ctx.p1())
 
     # Any modified, added, removed, deleted result means split is incomplete
-    incomplete = lambda repo: any(repo.status()[:4])
+    def incomplete(repo):
+        st = repo.status()
+        return any((st.modified, st.added, st.removed, st.deleted))
 
     # Main split loop
     while incomplete(repo):