Mercurial > evolve
comparison hgext/evolve.py @ 534:45ccaba212f9 stable
a better msg for this tricky situation
author | Aurelien Campeas <aurelien.campeas@logilab.fr> |
---|---|
date | Thu, 30 Aug 2012 13:54:43 +0200 |
parents | 87c41ef95ebf |
children | 9555231a66b2 |
comparison
equal
deleted
inserted
replaced
533:87c41ef95ebf | 534:45ccaba212f9 |
---|---|
1572 hg._showstats(repo, stats) | 1572 hg._showstats(repo, stats) |
1573 if stats[3]: | 1573 if stats[3]: |
1574 repo.ui.status(_("use 'hg resolve' to retry unresolved file merges " | 1574 repo.ui.status(_("use 'hg resolve' to retry unresolved file merges " |
1575 "or 'hg update -C .' to abandon\n")) | 1575 "or 'hg update -C .' to abandon\n")) |
1576 if stats[3] > 0: | 1576 if stats[3] > 0: |
1577 raise util.Abort('GASP! Merge Conflict! You are on you own chap!', | 1577 raise util.Abort('Merge conflict between several amendments, and this is not yet automated', |
1578 hint='/!\\ hg evolve --continue will NOT work /!\\') | 1578 hint="""/!\ You can try: |
1579 /!\ * manual merge + resolve => new cset X | |
1580 /!\ * hg up to the parent of the amended changeset (which are named W and Z) | |
1581 /!\ * hg revert --all -r X | |
1582 /!\ * hg ci -m "same message as the amended changeset" => new cset Y | |
1583 /!\ * hg kill -n Y W Z | |
1584 """) | |
1579 tr = repo.transaction('stabilize-conflicting') | 1585 tr = repo.transaction('stabilize-conflicting') |
1580 try: | 1586 try: |
1581 repo.dirstate.setparents(conflicting.node(), node.nullid) | 1587 repo.dirstate.setparents(conflicting.node(), node.nullid) |
1582 oldlen = len(repo) | 1588 oldlen = len(repo) |
1583 amend(ui, repo) | 1589 amend(ui, repo) |