mercurial/commands.py
changeset 38238 2b8c8b8d1a06
parent 38220 ad50f0399e1e
child 38276 fa4a286410a5
--- a/mercurial/commands.py	Sat May 26 02:57:36 2018 +0530
+++ b/mercurial/commands.py	Sat May 26 03:01:14 2018 +0530
@@ -2230,6 +2230,8 @@
                 opts['date'] = statedata['date']
             if statedata.get('user'):
                 opts['user'] = statedata['user']
+            if statedata.get('log'):
+                opts['log'] = True
             nodes = statedata['nodes']
             revs = [repo[node].rev() for node in nodes]
         else:
@@ -2344,6 +2346,7 @@
         message = ctx.description()
         if opts.get('log'):
             message += '\n(grafted from %s)' % ctx.hex()
+            statedata['log'] = True
 
         # we don't merge the first commit when continuing
         if not cont:
@@ -2363,10 +2366,7 @@
                 statedata['nodes'] = nodes
                 stateversion = 1
                 graftstate.save(stateversion, statedata)
-                extra = ''
-                if opts.get('log'):
-                    extra += ' --log'
-                hint=_("use 'hg resolve' and 'hg graft --continue%s'") % extra
+                hint = _("use 'hg resolve' and 'hg graft --continue'")
                 raise error.Abort(
                     _("unresolved conflicts, can't continue"),
                     hint=hint)