Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 30734:b9e49f7b0220
hgweb: use archivespecs (dict) instead of archives (tuple) for "in" check
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 08 Jan 2017 01:24:45 +0800 |
parents | d83ca854fa21 |
children | 96f811bceb85 |
line wrap: on
line diff
--- 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)