D5074: webcommands: use stringutil.pprint() to repr invalid archive types
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sat Oct 13 08:21:37 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb24c23f7c1f9: webcommands: use stringutil.pprint() to repr invalid archive types (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5074?vs=12051&id=12057
REVISION DETAIL
https://phab.mercurial-scm.org/D5074
AFFECTED FILES
mercurial/hgweb/webcommands.py
CHANGE DETAILS
diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py
+++ b/mercurial/hgweb/webcommands.py
@@ -1172,7 +1172,7 @@
key = web.req.qsparams['node']
if type_ not in webutil.archivespecs:
- msg = 'Unsupported archive type: %s' % type_
+ msg = 'Unsupported archive type: %s' % stringutil.pprint(type_)
raise ErrorResponse(HTTP_NOT_FOUND, msg)
if not ((type_ in allowed or
To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list