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.
--- 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()