##// END OF EJS Templates
hgwebdir: wrap {entries} with mappinggenerator...
Yuya Nishihara -
r37526:30a7b328 default
parent child Browse files
Show More
@@ -35,6 +35,7 b' from .. import ('
35 pycompat,
35 pycompat,
36 scmutil,
36 scmutil,
37 templater,
37 templater,
38 templateutil,
38 ui as uimod,
39 ui as uimod,
39 util,
40 util,
40 )
41 )
@@ -246,9 +247,8 b' def rawindexentries(ui, repos, req, subd'
246
247
247 yield row
248 yield row
248
249
249 def indexentries(ui, repos, req, stripecount, sortcolumn='',
250 def _indexentriesgen(context, ui, repos, req, stripecount, sortcolumn,
250 descending=False, subdir=''):
251 descending, subdir):
251
252 rows = rawindexentries(ui, repos, req, subdir=subdir)
252 rows = rawindexentries(ui, repos, req, subdir=subdir)
253
253
254 sortdefault = None, False
254 sortdefault = None, False
@@ -262,6 +262,11 b' def indexentries(ui, repos, req, stripec'
262 row['parity'] = parity
262 row['parity'] = parity
263 yield row
263 yield row
264
264
265 def indexentries(ui, repos, req, stripecount, sortcolumn='',
266 descending=False, subdir=''):
267 args = (ui, repos, req, stripecount, sortcolumn, descending, subdir)
268 return templateutil.mappinggenerator(_indexentriesgen, args=args)
269
265 class hgwebdir(object):
270 class hgwebdir(object):
266 """HTTP server for multiple repositories.
271 """HTTP server for multiple repositories.
267
272
General Comments 0
You need to be logged in to leave comments. Login now