Mercurial > public > mercurial-scm > hg
diff 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 |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Mon Oct 20 10:20:35 2008 +0200 +++ b/mercurial/hgweb/webcommands.py Mon Oct 20 12:41:09 2008 +0200 @@ -234,7 +234,8 @@ files = [] parity = paritygen(web.stripecount) for f in ctx.files(): - files.append(tmpl("filenodelink", + template = f in ctx and 'filenodelink' or 'filenolink' + files.append(tmpl(template, node=hex(n), file=f, parity=parity.next()))