D3632: py3: use stringutil.pprint() to prevent b'' prefixes in output
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Mon May 21 18:36:30 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb0144fc8b681: py3: use stringutil.pprint() to prevent b'' prefixes in output (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3632?vs=8840&id=8857
REVISION DETAIL
https://phab.mercurial-scm.org/D3632
AFFECTED FILES
mercurial/dispatch.py
CHANGE DETAILS
diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -288,8 +288,8 @@
req.args[2] != 'serve' or
req.args[3] != '--stdio'):
raise error.Abort(
- _('potentially unsafe serve --stdio invocation: %r') %
- (req.args,))
+ _('potentially unsafe serve --stdio invocation: %s') %
+ (stringutil.pprint(req.args),))
try:
debugger = 'pdb'
To: pulkit, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list