evolve: store a list of temprevs in evolvestate
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 23 May 2018 02:43:23 +0530
changeset 3756 26b9b89f8dac
parent 3755 a19703c6d2bb
child 3757 2bc60fcac354
evolve: store a list of temprevs in evolvestate There are temporary revisions which are created as a part of divergence resolution which needs to be stripped off if user runs `hg evolve --abort`. We need to save the nodeids of those temporary revisions in the evolvestate. The temprevs list will help in the above mentioned use cases.
hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py	Wed May 23 02:36:14 2018 +0530
+++ b/hgext3rd/evolve/evolvecmd.py	Wed May 23 02:43:23 2018 +0530
@@ -1275,7 +1275,7 @@
                      'revs': list(revs), 'confirm': confirmopt,
                      'startnode': startnode.node(), 'skippedrevs': [],
                      'command': 'evolve', 'orphanmerge': False,
-                     'bookmarkchanges': []}
+                     'bookmarkchanges': [], 'temprevs': []}
         evolvestate.addopts(stateopts)
         for rev in revs:
             curctx = repo[rev]