47 ('zip', ('application/zip', 'zip', '.zip', None)), |
47 ('zip', ('application/zip', 'zip', '.zip', None)), |
48 ('gz', ('application/x-gzip', 'tgz', '.tar.gz', None)), |
48 ('gz', ('application/x-gzip', 'tgz', '.tar.gz', None)), |
49 ('bz2', ('application/x-bzip2', 'tbz2', '.tar.bz2', None)), |
49 ('bz2', ('application/x-bzip2', 'tbz2', '.tar.bz2', None)), |
50 )) |
50 )) |
51 |
51 |
52 def archivelist(ui, nodeid, url): |
52 def archivelist(ui, nodeid, url=None): |
53 allowed = ui.configlist('web', 'allow_archive', untrusted=True) |
53 allowed = ui.configlist('web', 'allow_archive', untrusted=True) |
54 archives = [] |
54 archives = [] |
55 |
55 |
56 for typ, spec in archivespecs.iteritems(): |
56 for typ, spec in archivespecs.iteritems(): |
57 if typ in allowed or ui.configbool('web', 'allow' + typ, |
57 if typ in allowed or ui.configbool('web', 'allow' + typ, |