diff -r 17a9a1f5cee2 -r 2695aaf4eb72 mercurial/hgweb/webcommands.py --- 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')