[PATCH 3 of 8 py3] dispatch: ensure repr is bytes in _mayberepr
Augie Fackler
raf at durin42.com
Sun Mar 19 02:11:34 EDT 2017
# HG changeset patch
# User Augie Fackler <augie at 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):
More information about the Mercurial-devel
mailing list