##// END OF EJS Templates
hgwebdir: reduce memory usage for index generation...
Wagner Bruna -
r13436:b391c0c9 stable
parent child Browse files
Show More
@@ -203,11 +203,13 b' class hgwebdir(object):'
203
203
204 def archivelist(ui, nodeid, url):
204 def archivelist(ui, nodeid, url):
205 allowed = ui.configlist("web", "allow_archive", untrusted=True)
205 allowed = ui.configlist("web", "allow_archive", untrusted=True)
206 archives = []
206 for i in [('zip', '.zip'), ('gz', '.tar.gz'), ('bz2', '.tar.bz2')]:
207 for i in [('zip', '.zip'), ('gz', '.tar.gz'), ('bz2', '.tar.bz2')]:
207 if i[0] in allowed or ui.configbool("web", "allow" + i[0],
208 if i[0] in allowed or ui.configbool("web", "allow" + i[0],
208 untrusted=True):
209 untrusted=True):
209 yield {"type" : i[0], "extension": i[1],
210 archives.append({"type" : i[0], "extension": i[1],
210 "node": nodeid, "url": url}
211 "node": nodeid, "url": url})
212 return archives
211
213
212 def rawentries(subdir="", **map):
214 def rawentries(subdir="", **map):
213
215
General Comments 0
You need to be logged in to leave comments. Login now