D7393: split: use field names instead of field numbers on scmutil.status
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Thu Nov 14 22:37:28 EST 2019
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
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):
To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list