Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.py @ 3869:ad6f34c83c3d
Add instructions how to redo/finish failed merge with local working directory.
b2ae81a7df29 already implemented this for branch merges.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 11 Dec 2006 18:09:52 +0100 |
parents | 4f6db0233606 |
children | abaee83ce0a6 0f9381cf9723 |
line wrap: on
line diff
--- a/mercurial/hg.py Mon Dec 11 14:30:50 2006 +0100 +++ b/mercurial/hg.py Mon Dec 11 18:09:52 2006 +0100 @@ -234,11 +234,19 @@ def update(repo, node): """update the working directory to node, merging linear changes""" + pl = repo.parents() stats = _merge.update(repo, node, False, False, None, None) _showstats(repo, stats) if stats[3]: repo.ui.status(_("There are unresolved merges with" " locally modified files.\n")) + if stats[1]: + repo.ui.status(_("You can finish the partial merge using:\n")) + else: + repo.ui.status(_("You can redo the full merge using:\n")) + # len(pl)==1, otherwise _merge.update() would have raised util.Abort: + repo.ui.status(_(" hg update %s\n hg update %s\n") + % (pl[0].rev(), repo.changectx(node).rev())) return stats[3] def clean(repo, node, wlock=None, show_stats=True):