##// END OF EJS Templates
hgweb: forward archivelist() of hgweb to webutil...
Yuya Nishihara -
r37532:034a422a default
parent child Browse files
Show More
@@ -128,10 +128,7 b' class requestcontext(object):'
128 128 untrusted=untrusted)
129 129
130 130 def archivelist(self, nodeid):
131 allowed = self.configlist('web', 'allow_archive')
132 for typ, spec in webutil.archivespecs.iteritems():
133 if typ in allowed or self.configbool('web', 'allow%s' % typ):
134 yield {'type': typ, 'extension': spec[2], 'node': nodeid}
131 return webutil.archivelist(self.repo.ui, nodeid)
135 132
136 133 def templater(self, req):
137 134 # determine scheme, port and server name
@@ -49,7 +49,7 b' archivespecs = util.sortdict(('
49 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 53 allowed = ui.configlist('web', 'allow_archive', untrusted=True)
54 54 archives = []
55 55
General Comments 0
You need to be logged in to leave comments. Login now