diff mercurial/hgweb/webcommands.py @ 26136:6defc74f3066

hgweb: move archive related attributes to requestcontext As part of this, "archive_specs" was renamed to "archivespecs" to align with naming conventions. "archive_specs" didn't technically need to be moved from hgweb. But it seemed to make sense to have all the archive code in the same class. As part of this, hgweb.configlist is no longer used, so it was deleted.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 22 Aug 2015 15:12:52 -0700
parents 0a9009d56fea
children 1aee2ab0f902
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Sat Aug 22 15:02:41 2015 -0700
+++ b/mercurial/hgweb/webcommands.py	Sat Aug 22 15:12:52 2015 -0700
@@ -1078,7 +1078,7 @@
                 raise ErrorResponse(HTTP_NOT_FOUND,
                     'file(s) not found: %s' % file[0])
 
-    mimetype, artype, extension, encoding = web.archive_specs[type_]
+    mimetype, artype, extension, encoding = web.archivespecs[type_]
     headers = [
         ('Content-Disposition', 'attachment; filename=%s%s' % (name, extension))
         ]