##// END OF EJS Templates
hgweb: wrap {files} of changesetentry() with mappedgenerator...
Yuya Nishihara -
r37969:790ca0c1 default
parent child Browse files
Show More
@@ -463,7 +463,7 b' def symrevorshortnode(req, ctx):'
463 else:
463 else:
464 return short(ctx.node())
464 return short(ctx.node())
465
465
466 def _listfilesgen(tmpl, ctx, stripecount):
466 def _listfilesgen(context, tmpl, ctx, stripecount):
467 parity = paritygen(stripecount)
467 parity = paritygen(stripecount)
468 for blockno, f in enumerate(ctx.files()):
468 for blockno, f in enumerate(ctx.files()):
469 template = 'filenodelink' if f in ctx else 'filenolink'
469 template = 'filenodelink' if f in ctx else 'filenolink'
@@ -502,7 +502,9 b' def changesetentry(web, ctx):'
502 changesettag=showtags,
502 changesettag=showtags,
503 changesetbookmark=showbookmarks,
503 changesetbookmark=showbookmarks,
504 changesetbranch=showbranch,
504 changesetbranch=showbranch,
505 files=list(_listfilesgen(web.tmpl, ctx, web.stripecount)),
505 files=templateutil.mappedgenerator(_listfilesgen,
506 args=(web.tmpl, ctx,
507 web.stripecount)),
506 diffsummary=lambda **x: diffsummary(diffstatsgen),
508 diffsummary=lambda **x: diffsummary(diffstatsgen),
507 diffstat=diffstats,
509 diffstat=diffstats,
508 archives=web.archivelist(ctx.hex()),
510 archives=web.archivelist(ctx.hex()),
General Comments 0
You need to be logged in to leave comments. Login now