grab: add grab info to cmdutil.afterresolvedstates
authorPulkit Goyal <7895pulkit@gmail.com>
Fri, 02 Feb 2018 15:37:00 +0530
changeset 3473 b2f591aa4507
parent 3472 05bd493d496d
child 3474 05fe5239fca2
grab: add grab info to cmdutil.afterresolvedstates This will help us in showing how to continue the grab when user resolves all the conflicts.
hgext3rd/evolve/__init__.py
tests/test-grab.t
--- a/hgext3rd/evolve/__init__.py	Sat Jan 27 21:15:27 2018 +0530
+++ b/hgext3rd/evolve/__init__.py	Fri Feb 02 15:37:00 2018 +0530
@@ -1347,7 +1347,9 @@
     cmdutil.unfinishedstates.append(data)
 
     afterresolved = ('evolvestate', _('hg evolve --continue'))
+    grabresolved = ('grabstate', _('hg grab --continue'))
     cmdutil.afterresolvedstates.append(afterresolved)
+    cmdutil.afterresolvedstates.append(grabresolved)
 
 @eh.wrapfunction(hg, 'clean')
 def clean(orig, repo, *args, **kwargs):
--- a/tests/test-grab.t	Sat Jan 27 21:15:27 2018 +0530
+++ b/tests/test-grab.t	Fri Feb 02 15:37:00 2018 +0530
@@ -166,6 +166,7 @@
   $ echo foobar > c
   $ hg resolve --all --mark
   (no more unresolved files)
+  continue: hg grab --continue
   $ hg grab --continue
   $ hg glog
   @  8:44e155eb95c7 add c