dispatch: ensure repr is bytes in _mayberepr
authorAugie Fackler <augie@google.com>
Sun, 19 Mar 2017 00:22:04 -0400
changeset 31494 faf75a701aca
parent 31493 7e9c7d1d65cb
child 31495 d1937bdcee8c
dispatch: ensure repr is bytes in _mayberepr Fixes command line arguments containing spaces on Python 3.
mercurial/dispatch.py
--- a/mercurial/dispatch.py	Sun Mar 19 00:21:26 2017 -0400
+++ b/mercurial/dispatch.py	Sun Mar 19 00:22:04 2017 -0400
@@ -94,7 +94,7 @@
 
 def _mayberepr(a):
     if ' ' in a:
-        return repr(a)
+        return encoding.strtolocal(repr(a))
     return a
 
 def _formatargs(args):