evolve: add a hint about how to abort an evolve with conflict stable
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 19 Jun 2015 10:44:25 -0700
branchstable
changeset 1395 362e2c8c5677
parent 1394 e12082872afc
child 1396 ba95cec18fe9
child 1401 20ff4ef75b87
evolve: add a hint about how to abort an evolve with conflict The whole evolve --continue is hacky, but the way to abort it have been arcane knowledge, carried from sith lord to its apprentice for centuries. We add a hint to help the use discover it. One day a clean solution will come.
hgext/evolve.py
tests/test-stabilize-conflict.t
tests/test-stabilize-result.t
--- a/hgext/evolve.py	Fri Jun 19 00:17:34 2015 -0700
+++ b/hgext/evolve.py	Fri Jun 19 10:44:25 2015 -0700
@@ -1392,7 +1392,8 @@
             repo.opener.write('graftstate', orig.hex() + '\n')
             repo.ui.write_err(_('evolve failed!\n'))
             repo.ui.write_err(
-                _('fix conflict and run "hg evolve --continue"\n'))
+                _('fix conflict and run "hg evolve --continue"'
+                  ' or use "hg update -C" to abort\n'))
             raise
 
 def _solvebumped(ui, repo, bumped, dryrun=False, confirm=False,
--- a/tests/test-stabilize-conflict.t	Fri Jun 19 00:17:34 2015 -0700
+++ b/tests/test-stabilize-conflict.t	Fri Jun 19 10:44:25 2015 -0700
@@ -130,7 +130,7 @@
   warning: conflicts during merge.
   merging babar incomplete! (edit conflicts, then use 'hg resolve --mark')
   evolve failed!
-  fix conflict and run "hg evolve --continue"
+  fix conflict and run "hg evolve --continue" or use "hg update -C" to abort
   abort: unresolved merge conflicts (see hg help resolve)
   [255]
   $ hg resolve -l
@@ -220,7 +220,7 @@
   was merge successful (yn)? n
   merging babar failed!
   evolve failed!
-  fix conflict and run "hg evolve --continue"
+  fix conflict and run "hg evolve --continue" or use "hg update -C" to abort
   abort: unresolved merge conflicts (see hg help resolve)
   [255]
   $ hg resolve -l
--- a/tests/test-stabilize-result.t	Fri Jun 19 00:17:34 2015 -0700
+++ b/tests/test-stabilize-result.t	Fri Jun 19 10:44:25 2015 -0700
@@ -85,7 +85,7 @@
   warning: conflicts during merge.
   merging a incomplete! (edit conflicts, then use 'hg resolve --mark')
   evolve failed!
-  fix conflict and run "hg evolve --continue"
+  fix conflict and run "hg evolve --continue" or use "hg update -C" to abort
   abort: unresolved merge conflicts (see hg help resolve)
   [255]
   $ hg revert -r 'unstable()' a