evolve: create a state object in all case
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 22 Jan 2018 17:29:56 +0530
changeset 3477 713e26a647f5
parent 3476 1e346044c7cf
child 3478 4a1ccae58323
evolve: create a state object in all case Let's create a state object even when we are not in the continue mode. This will help us passing the state object to rest of the functions.
hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py	Sun Feb 04 14:29:18 2018 +0100
+++ b/hgext3rd/evolve/evolvecmd.py	Mon Jan 22 17:29:56 2018 +0530
@@ -1107,9 +1107,9 @@
         if revopt or allopt:
             ui.progress(_('evolve'), seen, unit=_('changesets'), total=count)
 
+    evolvestate = state.cmdstate(repo)
     # Continuation handling
     if contopt:
-        evolvestate = state.cmdstate(repo)
         if not evolvestate:
             raise error.Abort('no evolve to continue')
         evolvestate.load()