mercurial/cmdutil.py
changeset 38707 6b5ca1d0aa1e
parent 38667 572dff5c946e
child 38769 e252f136b948
--- a/mercurial/cmdutil.py	Sun Jul 15 18:22:40 2018 +0900
+++ b/mercurial/cmdutil.py	Sun Jul 15 18:24:57 2018 +0900
@@ -2555,7 +2555,7 @@
         mapping = {old.node(): (newid,)}
         obsmetadata = None
         if opts.get('note'):
-            obsmetadata = {'note': opts['note']}
+            obsmetadata = {'note': encoding.fromlocal(opts['note'])}
         scmutil.cleanupnodes(repo, mapping, 'amend', metadata=obsmetadata,
                              fixphase=True, targetphase=commitphase)