changeset 30735 | 9823e2f50a93 |
parent 30636 | f1c9fafcbf46 |
child 30748 | 319914d57b9e |
--- a/mercurial/hgweb/hgweb_mod.py Sun Jan 08 01:24:45 2017 +0800 +++ b/mercurial/hgweb/hgweb_mod.py Sun Jan 08 00:52:54 2017 +0800 @@ -134,7 +134,8 @@ def archivelist(self, nodeid): allowed = self.configlist('web', 'allow_archive') - for typ, spec in self.archivespecs.iteritems(): + for typ in self.archives: + spec = self.archivespecs[typ] if typ in allowed or self.configbool('web', 'allow%s' % typ): yield {'type': typ, 'extension': spec[2], 'node': nodeid}