# HG changeset patch # User Brendan Cully # Date 1159373431 25200 # Node ID fc379b91f6022703cfe0f5e147e9593e633449fc # Parent 833f2d1fc508f76a3f8d939bdffbe3b3efc418a9 hgweb: make annotate line revisions point to annotation for that rev diff -r 833f2d1fc508 -r fc379b91f602 mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Wed Sep 27 09:10:29 2006 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Wed Sep 27 09:10:31 2006 -0700 @@ -398,16 +398,16 @@ def annotate(**map): parity = 0 last = None - for f, l in fctx.annotate(): - cnode = f.node() + for f, l in fctx.annotate(follow=True): + fnode = f.filenode() name = self.repo.ui.shortuser(f.user()) - if last != cnode: + if last != fnode: parity = 1 - parity - last = cnode + last = fnode yield {"parity": parity, - "node": hex(cnode), + "node": hex(fnode), "rev": f.rev(), "author": name, "file": f.path(), diff -r 833f2d1fc508 -r fc379b91f602 templates/map --- a/templates/map Wed Sep 27 09:10:29 2006 -0700 +++ b/templates/map Wed Sep 27 09:10:31 2006 -0700 @@ -22,7 +22,7 @@ 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 -r 833f2d1fc508 -r fc379b91f602 templates/map-gitweb --- a/templates/map-gitweb Wed Sep 27 09:10:29 2006 -0700 +++ b/templates/map-gitweb Wed Sep 27 09:10:31 2006 -0700 @@ -20,7 +20,7 @@ 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#
'