--- a/mercurial/hgweb/webcommands.py Sat Sep 30 09:08:01 2017 +0100
+++ b/mercurial/hgweb/webcommands.py Sat Sep 30 09:01:36 2017 +0100
@@ -930,6 +930,9 @@
"linenumber": "% 6d" % (lineno + 1),
"revdate": f.date()}
+ diffopts = webutil.difffeatureopts(req, web.repo.ui, 'annotate')
+ diffopts = {k: getattr(diffopts, k) for k in diffopts.defaults}
+
return tmpl("fileannotate",
file=f,
annotate=annotate,
@@ -938,6 +941,7 @@
rename=webutil.renamelink(fctx),
permissions=fctx.manifest().flags(f),
ishead=int(ishead),
+ diffopts=diffopts,
**webutil.commonentry(web.repo, fctx))
@webcommand('filelog')