diff -r 6b77adc2c7b5 -r f694e20193f2 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Thu Jun 02 16:26:50 2016 +0200 +++ b/mercurial/hgweb/webcommands.py Tue Jun 07 12:10:01 2016 +0200 @@ -872,14 +872,19 @@ else: lines = enumerate(fctx.annotate(follow=True, linenumber=True, diffopts=diffopts)) + previousrev = None for lineno, ((f, targetline), l) in lines: + rev = f.rev() + blockhead = rev != previousrev or None + previousrev = rev yield {"parity": next(parity), "node": f.hex(), - "rev": f.rev(), + "rev": rev, "author": f.user(), "desc": f.description(), "extra": f.extra(), "file": f.path(), + "blockhead": blockhead, "targetline": targetline, "line": l, "lineno": lineno + 1,