# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1521444511 -19800 # Node ID 34330381b76b62b4510ab3a00f2f5a49ced647de # Parent 2477bcdd95ff4dfbe91551b1e1c8b11f66a3e3b0 evolve: preserve the order of merge parents in `hg evolve --continue` This patch makes sure we preserves the order of merge parents in case of `hg evolve --continue`. diff -r 2477bcdd95ff -r 34330381b76b hgext3rd/evolve/evolvecmd.py --- a/hgext3rd/evolve/evolvecmd.py Mon Mar 12 15:41:51 2018 -0700 +++ b/hgext3rd/evolve/evolvecmd.py Mon Mar 19 12:58:31 2018 +0530 @@ -1208,8 +1208,8 @@ # directory parent should be successor of p2, so we should # set dirstate parents to (succ of p2, p1) with repo.dirstate.parentchange(): - repo.dirstate.setparents(currentp1, - ctxparents[0].node()) + repo.dirstate.setparents(ctxparents[0].node(), + currentp1) else: # both the parents were obsolete, not sure what logic will diff -r 2477bcdd95ff -r 34330381b76b tests/test-evolve-orphan-merge.t --- a/tests/test-evolve-orphan-merge.t Mon Mar 12 15:41:51 2018 -0700 +++ b/tests/test-evolve-orphan-merge.t Mon Mar 19 12:58:31 2018 +0530 @@ -245,8 +245,8 @@ $ hg parents changeset: 12:c5405d2da7a1 tag: tip + parent: 9:d0f84b25d4e3 parent: 11:31c317b7bdb1 - parent: 9:d0f84b25d4e3 user: test date: Thu Jan 01 00:00:00 1970 +0000 summary: foobar to c