mercurial/hgweb/webcommands.py
changeset 7182 295af5bc1bcc
parent 7107 125c8fedcbe0
child 7183 099b4f9be5ab
equal deleted inserted replaced
7181:1e39a2459359 7182:295af5bc1bcc
   232     p1 = parents[0].node()
   232     p1 = parents[0].node()
   233 
   233 
   234     files = []
   234     files = []
   235     parity = paritygen(web.stripecount)
   235     parity = paritygen(web.stripecount)
   236     for f in ctx.files():
   236     for f in ctx.files():
   237         files.append(tmpl("filenodelink",
   237         template = f in ctx and 'filenodelink' or 'filenolink'
       
   238         files.append(tmpl(template,
   238                           node=hex(n), file=f,
   239                           node=hex(n), file=f,
   239                           parity=parity.next()))
   240                           parity=parity.next()))
   240 
   241 
   241     diffs = web.diff(tmpl, p1, n, None)
   242     diffs = web.diff(tmpl, p1, n, None)
   242     return tmpl('changeset',
   243     return tmpl('changeset',