mercurial/hgweb/webcommands.py
changeset 29388 f694e20193f2
parent 29382 e4b777fe1576
child 29471 c4fc33c477da
--- 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,