mercurial/hgweb/hgwebdir_mod.py
changeset 37511 356e61e82c2a
parent 37510 876d54f800cf
child 37513 40a7c1dd2df9
equal deleted inserted replaced
37510:876d54f800cf 37511:356e61e82c2a
   107 
   107 
   108 def archivelist(ui, nodeid, url):
   108 def archivelist(ui, nodeid, url):
   109     allowed = ui.configlist('web', 'allow_archive', untrusted=True)
   109     allowed = ui.configlist('web', 'allow_archive', untrusted=True)
   110     archives = []
   110     archives = []
   111 
   111 
   112     for typ, spec in hgweb_mod.archivespecs.iteritems():
   112     for typ, spec in webutil.archivespecs.iteritems():
   113         if typ in allowed or ui.configbool('web', 'allow' + typ,
   113         if typ in allowed or ui.configbool('web', 'allow' + typ,
   114                                            untrusted=True):
   114                                            untrusted=True):
   115             archives.append({
   115             archives.append({
   116                 'type': typ,
   116                 'type': typ,
   117                 'extension': spec[2],
   117                 'extension': spec[2],