##// END OF EJS Templates
hgweb: wrap {annotate} with mappinggenerator...
Yuya Nishihara -
r38152:3e625343 default
parent child Browse files
Show More
@@ -943,7 +943,7 b' def annotate(web):'
943 943 for p in parentscache[rev]:
944 944 yield p
945 945
946 def annotate(**map):
946 def annotate(context):
947 947 if fctx.isbinary():
948 948 mt = (mimetypes.guess_type(fctx.path())[0]
949 949 or 'application/octet-stream')
@@ -986,7 +986,7 b' def annotate(web):'
986 986 return web.sendtemplate(
987 987 'fileannotate',
988 988 file=f,
989 annotate=annotate,
989 annotate=templateutil.mappinggenerator(annotate),
990 990 path=webutil.up(f),
991 991 symrev=webutil.symrevorshortnode(web.req, fctx),
992 992 rename=webutil.renamelink(fctx),
General Comments 0
You need to be logged in to leave comments. Login now