comparison mercurial/hgweb/webcommands.py @ 7182:295af5bc1bcc

hgweb: remove links to non-existent file versions
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Mon, 20 Oct 2008 12:41:09 +0200
parents 125c8fedcbe0
children 099b4f9be5ab
comparison
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',