Comments
Patch
@@ -596,7 +596,7 @@
Phabsend requires a linear range of commits
$ hg phabsend -r 0+2+3
- abort: cannot phabsend multiple head revisions: c44b38f24a45
+ abort: cannot phabsend multiple head revisions: c44b38f24a45 aaef04066140
(the revisions must form a linear chain)
[255]
@@ -1311,8 +1311,8 @@
# --fold option implies this, and the auto restacking of orphans requires
# it. Otherwise A+C in A->B->C will cause B to be orphaned, and C' to
# get A' as a parent.
- def _fail_nonlinear_revs(revs, skiprev, revtype):
- badnodes = [repo[r].node() for r in revs if r != skiprev]
+ def _fail_nonlinear_revs(revs, revtype):
+ badnodes = [repo[r].node() for r in revs]
raise error.Abort(
_(b"cannot phabsend multiple %s revisions: %s")
% (revtype, scmutil.nodesummaries(repo, badnodes)),
@@ -1321,11 +1321,11 @@
heads = repo.revs(b'heads(%ld)', revs)
if len(heads) > 1:
- _fail_nonlinear_revs(heads, heads.max(), b"head")
+ _fail_nonlinear_revs(heads, b"head")
roots = repo.revs(b'roots(%ld)', revs)
if len(roots) > 1:
- _fail_nonlinear_revs(roots, roots.min(), b"root")
+ _fail_nonlinear_revs(roots, b"root")
fold = opts.get(b'fold')
if fold: