changeset 3477:713e26a647f5

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.
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 22 Jan 2018 17:29:56 +0530
parents 1e346044c7cf
children 4a1ccae58323
files hgext3rd/evolve/evolvecmd.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()