evolve: move deletion of evolvestate out of continueevolve() function
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 16 Mar 2018 16:11:22 +0530
changeset 3557 77a400149758
parent 3556 b0438c9101ad
child 3558 cec6e21b3bcf
evolve: move deletion of evolvestate out of continueevolve() function We need to extract some data at evolve() function from evolvestate.
hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py	Fri Mar 16 16:04:28 2018 +0530
+++ b/hgext3rd/evolve/evolvecmd.py	Fri Mar 16 16:11:22 2018 +0530
@@ -1129,8 +1129,8 @@
         if not evolvestate:
             raise error.Abort('no evolve to continue')
         evolvestate.load()
-        return continueevolve(ui, repo, evolvestate, progresscb)
-
+        continueevolve(ui, repo, evolvestate, progresscb)
+        evolvestate.delete()
     else:
         cmdutil.bailifchanged(repo)
 
@@ -1242,5 +1242,4 @@
                         evolvestate['skippedrevs'].append(curctx.node())
 
             _cleanup(ui, repo, unfi[startnode], True)
-        evolvestate.delete()
         return