Mercurial > hg-stable
changeset 3178:0d0d7317bbc8
hgweb: yield filenode as well as node in annotate, use filenode in annotateline
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Wed, 27 Sep 2006 12:08:32 -0700 |
parents | 8683c7a637ad |
children | 76ab39df0917 |
files | mercurial/hgweb/hgweb_mod.py templates/map templates/map-gitweb |
diffstat | 3 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Wed Sep 27 12:08:30 2006 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Wed Sep 27 12:08:32 2006 -0700 @@ -407,7 +407,8 @@ last = fnode yield {"parity": parity, - "node": hex(fnode), + "node": hex(f.node()), + "filenode": hex(fnode), "rev": f.rev(), "author": name, "file": f.path(),
--- a/templates/map Wed Sep 27 12:08:30 2006 -0700 +++ b/templates/map Wed Sep 27 12:08:32 2006 -0700 @@ -22,7 +22,7 @@ filelog = filelog.tmpl fileline = '<div class="parity#parity#"><span class="lineno">#linenumber#</span>#line|escape#</div>' filelogentry = filelogentry.tmpl -annotateline = '<tr class="parity#parity#"><td class="annotate"><a href="?fa=#node|short#;file=#file|urlescape#">#author|obfuscate#@#rev#</a></td><td><pre>#line|escape#</pre></td></tr>' +annotateline = '<tr class="parity#parity#"><td class="annotate"><a href="?fa=#filenode|short#;file=#file|urlescape#">#author|obfuscate#@#rev#</a></td><td><pre>#line|escape#</pre></td></tr>' difflineplus = '<span class="plusline">#line|escape#</span>' difflineminus = '<span class="minusline">#line|escape#</span>' difflineat = '<span class="atline">#line|escape#</span>'
--- a/templates/map-gitweb Wed Sep 27 12:08:30 2006 -0700 +++ b/templates/map-gitweb Wed Sep 27 12:08:32 2006 -0700 @@ -20,7 +20,7 @@ fileannotate = fileannotate-gitweb.tmpl filelog = filelog-gitweb.tmpl fileline = '<div style="font-family:monospace" class="parity#parity#"><pre><span class="linenr"> #linenumber#</span> #line|escape#</pre></div>' -annotateline = '<tr style="font-family:monospace" class="parity#parity#"><td class="linenr" style="text-align: right;"><a href="?fa=#node|short#;file=#file|urlescape#;style=gitweb">#author|obfuscate#@#rev#</a></td><td><pre>#line|escape#</pre></td></tr>' +annotateline = '<tr style="font-family:monospace" class="parity#parity#"><td class="linenr" style="text-align: right;"><a href="?fa=#filenode|short#;file=#file|urlescape#;style=gitweb">#author|obfuscate#@#rev#</a></td><td><pre>#line|escape#</pre></td></tr>' difflineplus = '<div style="color:#008800;">#line|escape#</div>' difflineminus = '<div style="color:#cc0000;">#line|escape#</div>' difflineat = '<div style="color:#990099;">#line|escape#</div>'