evolve: store divergent nodes in evolvestate when resolving content-divergence
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 29 Apr 2018 17:54:01 +0530
changeset 3734 aae54e80c95c
parent 3733 7aa22aadb7bb
child 3735 bdf7fb6af7b8
evolve: store divergent nodes in evolvestate when resolving content-divergence We need to store the divergent nodes in evolvestate so that we can continue an interrupted phase divergence resolution.
hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py	Wed May 02 11:59:06 2018 +0200
+++ b/hgext3rd/evolve/evolvecmd.py	Sun Apr 29 17:54:01 2018 +0530
@@ -338,6 +338,7 @@
     """
     repo = repo.unfiltered()
     divergent = repo[divergent.rev()]
+    evolvestate['divergent'] = divergent.node()
     base, others = divergentdata(divergent)
     if len(others) > 1:
         othersstr = "[%s]" % (','.join([str(i) for i in others]))
@@ -355,6 +356,7 @@
         ui.write_err(msg)
         return (False, '')
     other = others[0]
+    evolvestate['other-divergent'] = other.node()
     if len(other.parents()) > 1:
         msg = _("skipping %s: %s changeset can't be "
                 "a merge (yet)\n") % (divergent, TROUBLES['CONTENTDIVERGENT'])