changeset 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 66448a53bdac
children 9823e2f50a93
files mercurial/hgweb/webcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)