# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1516622396 -19800 # Node ID 713e26a647f566142312bf2b77dccfaaec578c7c # Parent 1e346044c7cf926fd91f673e3311d68762838bbd 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. diff -r 1e346044c7cf -r 713e26a647f5 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()