# HG changeset patch
# User Augie Fackler <au...@google.com>
# Date 1489897324 14400
#      Sun Mar 19 00:22:04 2017 -0400
# Node ID 6823ee960b6e67f6fb6e91f6266b060deac8e7d0
# Parent  18c8a3ed2c4da13676038dccbf8359e00f55a5b1
dispatch: ensure repr is bytes in _mayberepr

Fixes command line arguments containing spaces on Python 3.

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -94,7 +94,7 @@ def _formatparse(write, inst):
 
 def _mayberepr(a):
     if ' ' in a:
-        return repr(a)
+        return encoding.strtolocal(repr(a))
     return a
 
 def _formatargs(args):
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to