mercurial/hgweb/hgwebdir_mod.py
changeset 2358 8819fc1dcf4b
parent 2356 2db831b33e8f
child 2359 a392eaa81f29
--- a/mercurial/hgweb/hgwebdir_mod.py	Wed May 31 14:16:21 2006 -0700
+++ b/mercurial/hgweb/hgwebdir_mod.py	Thu Jun 01 10:02:24 2006 -0500
@@ -58,8 +58,9 @@
                                              "footer": footer})
 
         def archivelist(ui, nodeid, url):
+            al = ui.config("web", "allow_archive", "").split()
             for i in ['zip', 'gz', 'bz2']:
-                if ui.configbool("web", "allow" + i, False):
+                if i in al or ui.configbool("web", "allow" + i, False):
                     yield {"type" : i, "node": nodeid, "url": url}
 
         def entries(sortcolumn="", descending=False, **map):