diff -r a457da5296a5 -r a298f5c61b34 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Mon Apr 24 18:33:23 2017 +0200 +++ b/mercurial/hgweb/webcommands.py Mon Apr 24 10:32:15 2017 +0200 @@ -131,6 +131,7 @@ f = fctx.path() text = fctx.data() parity = paritygen(web.stripecount) + ishead = fctx.filerev() in fctx.filelog().headrevs() if util.binary(text): mt = mimetypes.guess_type(f)[0] or 'application/octet-stream' @@ -150,6 +151,7 @@ symrev=webutil.symrevorshortnode(req, fctx), rename=webutil.renamelink(fctx), permissions=fctx.manifest().flags(f), + ishead=int(ishead), **webutil.commonentry(web.repo, fctx)) @webcommand('file')