changeset 31501:faf75a701aca

dispatch: ensure repr is bytes in _mayberepr Fixes command line arguments containing spaces on Python 3.
author Augie Fackler <augie@google.com>
date Sun, 19 Mar 2017 00:22:04 -0400
parents 7e9c7d1d65cb
children d1937bdcee8c
files mercurial/dispatch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):