evolve: don't allow updating or commiting when there is interrupted evolve
authorPulkit Goyal <7895pulkit@gmail.com>
Thu, 29 Mar 2018 16:38:00 +0530
changeset 3641 ed50f10aacbd
parent 3640 5a127bc27419
child 3642 319b1f0f4de2
evolve: don't allow updating or commiting when there is interrupted evolve We should make things simple in the starting and restrict user from doing things which can lead to problems. This is same as the rebase behavior.
hgext3rd/evolve/__init__.py
--- a/hgext3rd/evolve/__init__.py	Wed Mar 28 17:47:49 2018 +0530
+++ b/hgext3rd/evolve/__init__.py	Thu Mar 29 16:38:00 2018 +0530
@@ -1340,7 +1340,7 @@
 
 @eh.uisetup
 def setupevolveunfinished(ui):
-    data = ('evolvestate', True, False, _('evolve in progress'),
+    data = ('evolvestate', False, False, _('evolve in progress'),
             _("use 'hg evolve --continue' or 'hg update -C .' to abort"))
     cmdutil.unfinishedstates.append(data)