mercurial/debugcommands.py
changeset 38707 6b5ca1d0aa1e
parent 38647 0f4c2c70e26e
child 38781 0a57945aaf7f
--- a/mercurial/debugcommands.py	Sun Jul 15 18:22:40 2018 +0900
+++ b/mercurial/debugcommands.py	Sun Jul 15 18:24:57 2018 +0900
@@ -1619,7 +1619,7 @@
         if opts['rev']:
             raise error.Abort('cannot select revision when creating marker')
         metadata = {}
-        metadata['user'] = opts['user'] or ui.username()
+        metadata['user'] = encoding.fromlocal(opts['user'] or ui.username())
         succs = tuple(parsenodeid(succ) for succ in successors)
         l = repo.lock()
         try: