# HG changeset patch # User Brendan Cully # Date 1159384112 25200 # Node ID 0d0d7317bbc8542754bd47c306829ffe8b71a3d3 # Parent 8683c7a637adb9bddb7c572a9feed64e40ff7aa9 hgweb: yield filenode as well as node in annotate, use filenode in annotateline diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -407,7 +407,8 @@ class hgweb(object): last = fnode yield {"parity": parity, - "node": hex(fnode), + "node": hex(f.node()), + "filenode": hex(fnode), "rev": f.rev(), "author": name, "file": f.path(), diff --git a/templates/map b/templates/map --- a/templates/map +++ b/templates/map @@ -22,7 +22,7 @@ filediff = filediff.tmpl filelog = filelog.tmpl fileline = '
#linenumber##line|escape#
' filelogentry = filelogentry.tmpl -annotateline = '#author|obfuscate#@#rev#
#line|escape#
' +annotateline = '#author|obfuscate#@#rev#
#line|escape#
' difflineplus = '#line|escape#' difflineminus = '#line|escape#' difflineat = '#line|escape#' diff --git a/templates/map-gitweb b/templates/map-gitweb --- a/templates/map-gitweb +++ b/templates/map-gitweb @@ -20,7 +20,7 @@ filerevision = filerevision-gitweb.tmpl fileannotate = fileannotate-gitweb.tmpl filelog = filelog-gitweb.tmpl fileline = '
   #linenumber# #line|escape#
' -annotateline = '#author|obfuscate#@#rev#
#line|escape#
' +annotateline = '#author|obfuscate#@#rev#
#line|escape#
' difflineplus = '
#line|escape#
' difflineminus = '
#line|escape#
' difflineat = '
#line|escape#
'