evolve: declare updated and pctx variables in stopevolve()
They will used in next patch.
--- a/hgext3rd/evolve/evolvecmd.py Sun Jun 10 22:52:11 2018 +0530
+++ b/hgext3rd/evolve/evolvecmd.py Mon Jun 11 00:43:39 2018 +0530
@@ -1474,8 +1474,11 @@
def stopevolve(ui, repo, evolvestate):
"""logic for handling of `hg evolve --stop`"""
- pctx = repo['.']
- hg.updaterepo(repo, pctx.node(), True)
+ updated = False
+ pctx = None
+ if not updated:
+ pctx = repo['.']
+ hg.updaterepo(repo, pctx.node(), True)
ui.status(_('stopped the interrupted evolve\n'))
ui.status(_('working directory is now at %s\n') % pctx)