# HG changeset patch # User Aurelien Campeas # Date 1346327683 -7200 # Node ID 45ccaba212f9ffcca3e2bf12b8459e8e614ee39e # Parent 87c41ef95ebf76233db8c7781d4e1b23c859cb1b a better msg for this tricky situation diff -r 87c41ef95ebf -r 45ccaba212f9 hgext/evolve.py --- a/hgext/evolve.py Thu Aug 30 13:50:17 2012 +0200 +++ b/hgext/evolve.py Thu Aug 30 13:54:43 2012 +0200 @@ -1574,8 +1574,14 @@ repo.ui.status(_("use 'hg resolve' to retry unresolved file merges " "or 'hg update -C .' to abandon\n")) if stats[3] > 0: - raise util.Abort('GASP! Merge Conflict! You are on you own chap!', - hint='/!\\ hg evolve --continue will NOT work /!\\') + raise util.Abort('Merge conflict between several amendments, and this is not yet automated', + hint="""/!\ You can try: +/!\ * manual merge + resolve => new cset X +/!\ * hg up to the parent of the amended changeset (which are named W and Z) +/!\ * hg revert --all -r X +/!\ * hg ci -m "same message as the amended changeset" => new cset Y +/!\ * hg kill -n Y W Z +""") tr = repo.transaction('stabilize-conflicting') try: repo.dirstate.setparents(conflicting.node(), node.nullid) diff -r 87c41ef95ebf -r 45ccaba212f9 tests/test-stabilize-result.t --- a/tests/test-stabilize-result.t Thu Aug 30 13:50:17 2012 +0200 +++ b/tests/test-stabilize-result.t Thu Aug 30 13:54:43 2012 +0200 @@ -314,6 +314,12 @@ merging a incomplete! (edit conflicts, then use 'hg resolve --mark') 0 files updated, 0 files merged, 0 files removed, 1 files unresolved use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon - abort: GASP! Merge Conflict! You are on you own chap! - (/!\ hg evolve --continue will NOT work /!\) + abort: Merge conflict between several amendments, and this is not yet automated + (/!\ You can try: + /!\ * manual merge + resolve => new cset X + /!\ * hg up to the parent of the amended changeset (which are named W and Z) + /!\ * hg revert --all -r X + /!\ * hg ci -m "same message as the amended changeset" => new cset Y + /!\ * hg kill -n Y W Z + ) [255]