changeset 16308 | 2695aaf4eb72 |
parent 16129 | 5e50982c633c |
child 16448 | e6b45e9a75dc |
--- a/mercurial/hgweb/webcommands.py Wed Mar 21 06:45:07 2012 +0100 +++ b/mercurial/hgweb/webcommands.py Fri Mar 23 01:31:31 2012 +0100 @@ -262,10 +262,10 @@ files = [] parity = paritygen(web.stripecount) - for f in ctx.files(): + for blockno, f in enumerate(ctx.files()): template = f in ctx and 'filenodelink' or 'filenolink' files.append(tmpl(template, - node=ctx.hex(), file=f, + node=ctx.hex(), file=f, blockno=blockno + 1, parity=parity.next())) style = web.config('web', 'style', 'paper')