928 "lineno": lineno + 1, |
928 "lineno": lineno + 1, |
929 "lineid": "l%d" % (lineno + 1), |
929 "lineid": "l%d" % (lineno + 1), |
930 "linenumber": "% 6d" % (lineno + 1), |
930 "linenumber": "% 6d" % (lineno + 1), |
931 "revdate": f.date()} |
931 "revdate": f.date()} |
932 |
932 |
|
933 diffopts = webutil.difffeatureopts(req, web.repo.ui, 'annotate') |
|
934 diffopts = {k: getattr(diffopts, k) for k in diffopts.defaults} |
|
935 |
933 return tmpl("fileannotate", |
936 return tmpl("fileannotate", |
934 file=f, |
937 file=f, |
935 annotate=annotate, |
938 annotate=annotate, |
936 path=webutil.up(f), |
939 path=webutil.up(f), |
937 symrev=webutil.symrevorshortnode(req, fctx), |
940 symrev=webutil.symrevorshortnode(req, fctx), |
938 rename=webutil.renamelink(fctx), |
941 rename=webutil.renamelink(fctx), |
939 permissions=fctx.manifest().flags(f), |
942 permissions=fctx.manifest().flags(f), |
940 ishead=int(ishead), |
943 ishead=int(ishead), |
|
944 diffopts=diffopts, |
941 **webutil.commonentry(web.repo, fctx)) |
945 **webutil.commonentry(web.repo, fctx)) |
942 |
946 |
943 @webcommand('filelog') |
947 @webcommand('filelog') |
944 def filelog(web, req, tmpl): |
948 def filelog(web, req, tmpl): |
945 """ |
949 """ |