# HG changeset patch # User Anton Shestakov # Date 1483809885 -28800 # Node ID b9e49f7b022069e4285cbe44c188852320a047ba # Parent 66448a53bdac48ce64fc49c0b0bd21c6eaed948f hgweb: use archivespecs (dict) instead of archives (tuple) for "in" check diff -r 66448a53bdac -r b9e49f7b0220 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Sun Jan 08 14:37:44 2017 -0500 +++ b/mercurial/hgweb/webcommands.py Sun Jan 08 01:24:45 2017 +0800 @@ -1034,7 +1034,7 @@ allowed = web.configlist("web", "allow_archive") key = req.form['node'][0] - if type_ not in web.archives: + if type_ not in web.archivespecs: msg = 'Unsupported archive type: %s' % type_ raise ErrorResponse(HTTP_NOT_FOUND, msg)