# HG changeset patch # User Matt Harbison # Date 1579037865 18000 # Node ID a7c4bcf7018abeebf4f5a3f25d338f8857ad1e92 # Parent 2122ffa903ea9afa9f48e062a14e23cd6f3fb383 phabricator: post revisions in ascending topological order (issue6241) The parent in phabricator ends up being the last revision posted, so sorting the user input into ascending order should be enough to preserve the proper relationships. Differential Revision: https://phab.mercurial-scm.org/D7874 diff -r 2122ffa903ea -r a7c4bcf7018a hgext/phabricator.py --- a/hgext/phabricator.py Tue Jan 14 16:29:03 2020 -0500 +++ b/hgext/phabricator.py Tue Jan 14 16:37:45 2020 -0500 @@ -1065,6 +1065,7 @@ opts = pycompat.byteskwargs(opts) revs = list(revs) + opts.get(b'rev', []) revs = scmutil.revrange(repo, revs) + revs.sort() # ascending order to preserve topological parent/child in phab if not revs: raise error.Abort(_(b'phabsend requires at least one changeset'))