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 _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel