Patchwork D3632: py3: use stringutil.pprint() to prevent b'' prefixes in output

login
register
mail settings
Submitter phabricator
Date May 21, 2018, 6:36 p.m.
Message ID <42d7f0ab7404408ac011ba4f51fc9a64@localhost.localdomain>
Download mbox | patch
Permalink /patch/31787/
State Not Applicable
Headers show

Comments

phabricator - May 21, 2018, 6:36 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb0144fc8b681: py3: use stringutil.pprint() to prevent b&#039;&#039; 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




To: pulkit, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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'