diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -234,7 +234,8 @@ def changeset(web, req, tmpl): 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())) diff --git a/templates/coal/map b/templates/coal/map --- a/templates/coal/map +++ b/templates/coal/map @@ -16,6 +16,7 @@ navgraphentry = '{label|escape} ' filedifflink = '{file|escape} ' filenodelink = '{file|escape} ' +filenolink = '{file|escape} ' fileellipses = '...' changelogentry = shortlogentry.tmpl searchentry = shortlogentry.tmpl diff --git a/templates/gitweb/map b/templates/gitweb/map --- a/templates/gitweb/map +++ b/templates/gitweb/map @@ -13,6 +13,7 @@ navgraphentry = '{label|escape} ' filedifflink = '#file|escape# ' filenodelink = '#file|escape#file | annotate | diff | revisions' +filenolink = '#file|escape#file | annotate | diff | revisions' fileellipses = '...' changelogentry = changelogentry.tmpl searchentry = changelogentry.tmpl diff --git a/templates/map b/templates/map --- a/templates/map +++ b/templates/map @@ -13,6 +13,7 @@ navgraphentry = '{label|escape} ' filedifflink = '#file|escape# ' filenodelink = '#file|escape# ' +filenolink = '{file|escape} ' fileellipses = '...' changelogentry = changelogentry.tmpl searchentry = changelogentry.tmpl diff --git a/templates/monoblue/map b/templates/monoblue/map --- a/templates/monoblue/map +++ b/templates/monoblue/map @@ -13,6 +13,7 @@ navgraphentry = '{label|escape}' filedifflink = '#file|escape# ' filenodelink = '#file|escape#file | annotate | diff | revisions' +filenolink = '#file|escape#file | annotate | diff | revisions' fileellipses = '...' changelogentry = changelogentry.tmpl searchentry = changelogentry.tmpl diff --git a/templates/paper/map b/templates/paper/map --- a/templates/paper/map +++ b/templates/paper/map @@ -16,6 +16,7 @@ navgraphentry = '{label|escape} ' filedifflink = '{file|escape} ' filenodelink = '{file|escape} ' +filenolink = '{file|escape} ' fileellipses = '...' changelogentry = ../coal/shortlogentry.tmpl searchentry = ../coal/shortlogentry.tmpl