Patchwork D7874: phabricator: post revisions in ascending topological order (issue6241)

login
register
mail settings
Submitter phabricator
Date Jan. 14, 2020, 10:34 p.m.
Message ID <da750400b2272bda7284617d54aa2acf@localhost.localdomain>
Download mbox | patch
Permalink /patch/44345/
State Not Applicable
Headers show

Comments

phabricator - Jan. 14, 2020, 10:34 p.m.
Closed by commit rHGa7c4bcf7018a: phabricator: post revisions in ascending topological order (issue6241) (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7874?vs=19267&id=19271

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

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

AFFECTED FILES
  hgext/phabricator.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, pulkit
Cc: Kwan, mercurial-devel

Patch

diff --git a/hgext/phabricator.py b/hgext/phabricator.py
--- a/hgext/phabricator.py
+++ b/hgext/phabricator.py
@@ -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'))