diff mercurial/commands.py @ 20276:6545770bd379

backout: add a message after backout that need manual commit In some case Backout silently succeeded to back out but left all the change uncommitted. This may be confusing for user so this changeset add a note reminding to commit. Other backout case already actively informs the user about created commit.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 08 Jan 2014 17:23:26 -0800
parents 2123d27ff75d
children 2cfb720592fe
line wrap: on
line diff
--- a/mercurial/commands.py	Wed Jan 08 14:53:46 2014 -0800
+++ b/mercurial/commands.py	Wed Jan 08 17:23:26 2014 -0800
@@ -465,11 +465,17 @@
         if not opts.get('merge') and op1 != node:
             try:
                 ui.setconfig('ui', 'forcemerge', opts.get('tool', ''))
-                stats = mergemod.update(repo, parent, True, True, False, node, False)
+                stats = mergemod.update(repo, parent, True, True, False,
+                                        node, False)
                 repo.setparents(op1, op2)
                 hg._showstats(repo, stats)
                 if stats[3]:
-                    repo.ui.status(_("use 'hg resolve' to retry unresolved file merges\n"))
+                    repo.ui.status(_("use 'hg resolve' to retry unresolved "
+                                     "file merges\n"))
+                else:
+                    msg = _("changeset %s backed out, "
+                            "don't forget to commit.\n")
+                    ui.status(msg % short(node))
                 return stats[3] > 0
             finally:
                 ui.setconfig('ui', 'forcemerge', '')