mercurial/commands.py
changeset 42600 3bc400ccbf99
parent 42599 3fb0493812c0
child 42612 3c16b9c0b099
--- a/mercurial/commands.py	Wed Jun 26 22:15:07 2019 +0530
+++ b/mercurial/commands.py	Sun Jun 30 01:07:14 2019 +0530
@@ -4024,6 +4024,14 @@
         return hg.merge(repo, node, force=force, mergeforce=force,
                         labels=labels, abort=abort)
 
+statemod.addunfinished(
+    'merge', fname=None, clearable=True, allowcommit=True,
+    cmdmsg=_('outstanding uncommitted merge'), abortfunc=hg.abortmerge,
+    statushint=_('To continue:    hg commit\n'
+                 'To abort:       hg merge --abort'),
+    cmdhint=_("use 'hg commit' or 'hg merge --abort'")
+)
+
 @command('outgoing|out',
     [('f', 'force', None, _('run even when the destination is unrelated')),
     ('r', 'rev', [],