Show More
@@ -463,11 +463,11 b' def symrevorshortnode(req, ctx):' | |||||
463 | else: |
|
463 | else: | |
464 | return short(ctx.node()) |
|
464 | return short(ctx.node()) | |
465 |
|
465 | |||
466 |
def _listfilesgen(context |
|
466 | def _listfilesgen(context, 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' | |
470 |
yield |
|
470 | yield context.process(template, { | |
471 | 'node': ctx.hex(), |
|
471 | 'node': ctx.hex(), | |
472 | 'file': f, |
|
472 | 'file': f, | |
473 | 'blockno': blockno + 1, |
|
473 | 'blockno': blockno + 1, | |
@@ -503,8 +503,7 b' def changesetentry(web, ctx):' | |||||
503 | changesetbookmark=showbookmarks, |
|
503 | changesetbookmark=showbookmarks, | |
504 | changesetbranch=showbranch, |
|
504 | changesetbranch=showbranch, | |
505 | files=templateutil.mappedgenerator(_listfilesgen, |
|
505 | files=templateutil.mappedgenerator(_listfilesgen, | |
506 |
args=(web. |
|
506 | args=(ctx, web.stripecount)), | |
507 | web.stripecount)), |
|
|||
508 | diffsummary=lambda **x: diffsummary(diffstatsgen), |
|
507 | diffsummary=lambda **x: diffsummary(diffstatsgen), | |
509 | diffstat=diffstats, |
|
508 | diffstat=diffstats, | |
510 | archives=web.archivelist(ctx.hex()), |
|
509 | archives=web.archivelist(ctx.hex()), |
General Comments 0
You need to be logged in to leave comments.
Login now