# HG changeset patch # User Vadim Gelfer # Date 1151109190 25200 # Node ID 9c660e691e905210f3beaa1cde1f690fde66064a # Parent 2f4addf56715c543078cf979897703c36d41f8ef print message after backout that tells that backout adds new head. diff -r 2f4addf56715 -r 9c660e691e90 mercurial/commands.py --- a/mercurial/commands.py Fri Jun 23 17:21:04 2006 -0700 +++ b/mercurial/commands.py Fri Jun 23 17:33:10 2006 -0700 @@ -836,9 +836,14 @@ return '%d:%s' % (repo.changelog.rev(node), short(node)) ui.status(_('changeset %s backs out changeset %s\n') % (nice(repo.changelog.tip()), nice(node))) - if opts['merge'] and op1 != node: - ui.status(_('merging with changeset %s\n') % nice(op1)) - doupdate(ui, repo, hex(op1), **opts) + if op1 != node: + if opts['merge']: + ui.status(_('merging with changeset %s\n') % nice(op1)) + doupdate(ui, repo, hex(op1), **opts) + else: + ui.status(_('the backout changeset is a new head - ' + 'do not forget to merge\n')) + ui.status(_('(use "backout -m" if you want to auto-merge)\n')) def bundle(ui, repo, fname, dest="default-push", **opts): """create a changegroup file diff -r 2f4addf56715 -r 9c660e691e90 tests/test-backout.out --- a/tests/test-backout.out Fri Jun 23 17:21:04 2006 -0700 +++ b/tests/test-backout.out Fri Jun 23 17:33:10 2006 -0700 @@ -26,4 +26,6 @@ adding b reverting a changeset 3:4cbb1e70196a backs out changeset 1:22bca4c721e5 -b +the backout changeset is a new head - do not forget to merge +(use "backout -m" if you want to auto-merge) +b: No such file or directory