# HG changeset patch # User Martin von Zweigbergk # Date 1477692280 25200 # Node ID 9fd15f27c91c510081b013539c9f2fd4053bfad7 # Parent 19e32420e150164b81e215dbe3129776882b0d5c evolve: suggest "hg update -C .", including '.', to abort evolve The user will probably not also want to change commit when they abort evolve, like "hg update -C" (without the '.') would do. Note that we already do recommend aborting by using "hg update -C ." in another place. diff -r 19e32420e150 -r 9fd15f27c91c README --- a/README Fri Oct 28 17:03:53 2016 +0200 +++ b/README Fri Oct 28 15:04:40 2016 -0700 @@ -66,6 +66,7 @@ - split: avoid crash on empty commit (issue5191), - next: improve locking to avoid issue with working copy parent (issue5244) - prev: improve locking to avoid issue with working copy parent (issue5244) + - evolve: fix abort suggestion to include '.' in 'hg update -C .' 5.4.1 -- 2016-08-01 diff -r 19e32420e150 -r 9fd15f27c91c hgext/evolve.py --- a/hgext/evolve.py Fri Oct 28 17:03:53 2016 +0200 +++ b/hgext/evolve.py Fri Oct 28 15:04:40 2016 -0700 @@ -1946,7 +1946,7 @@ repo.ui.write_err(_('evolve failed!\n')) repo.ui.write_err( _('fix conflict and run "hg evolve --continue"' - ' or use "hg update -C" to abort\n')) + ' or use "hg update -C ." to abort\n')) raise def _solvebumped(ui, repo, bumped, dryrun=False, confirm=False, diff -r 19e32420e150 -r 9fd15f27c91c tests/test-evolve.t --- a/tests/test-evolve.t Fri Oct 28 17:03:53 2016 +0200 +++ b/tests/test-evolve.t Fri Oct 28 15:04:40 2016 -0700 @@ -1435,7 +1435,7 @@ merging newfile warning: conflicts while merging newfile! (edit, then use 'hg resolve --mark') evolve failed! - fix conflict and run "hg evolve --continue" or use "hg update -C" to abort + fix conflict and run "hg evolve --continue" or use "hg update -C ." to abort abort: unresolved merge conflicts (see hg help resolve) [255] diff -r 19e32420e150 -r 9fd15f27c91c tests/test-stabilize-conflict.t --- a/tests/test-stabilize-conflict.t Fri Oct 28 17:03:53 2016 +0200 +++ b/tests/test-stabilize-conflict.t Fri Oct 28 15:04:40 2016 -0700 @@ -129,7 +129,7 @@ merging babar warning: conflicts while merging babar! (edit, then use 'hg resolve --mark') evolve failed! - fix conflict and run "hg evolve --continue" or use "hg update -C" to abort + 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 @@ -219,7 +219,7 @@ was merge successful (yn)? n merging babar failed! evolve failed! - fix conflict and run "hg evolve --continue" or use "hg update -C" to abort + 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 diff -r 19e32420e150 -r 9fd15f27c91c tests/test-stabilize-result.t --- a/tests/test-stabilize-result.t Fri Oct 28 17:03:53 2016 +0200 +++ b/tests/test-stabilize-result.t Fri Oct 28 15:04:40 2016 -0700 @@ -84,7 +84,7 @@ merging a warning: conflicts while merging a! (edit, then use 'hg resolve --mark') evolve failed! - fix conflict and run "hg evolve --continue" or use "hg update -C" to abort + 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