py3: do not try to byte-stringify None in cmdutil.tryimportone()
authorYuya Nishihara <yuya@tcha.org>
Sun, 08 Apr 2018 15:32:09 +0900
changeset 37470 d658cbef8041
parent 37469 7edf68862fe3
child 37471 51d5e1ff0613
py3: do not try to byte-stringify None in cmdutil.tryimportone() It's a debug message, so just use '' instead.
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Sun Apr 08 15:22:30 2018 +0900
+++ b/mercurial/cmdutil.py	Sun Apr 08 15:32:09 2018 +0900
@@ -1398,7 +1398,7 @@
         else:
             # launch the editor
             message = None
-        ui.debug('message:\n%s\n' % message)
+        ui.debug('message:\n%s\n' % (message or ''))
 
         if len(parents) == 1:
             parents.append(repo[nullid])