##// END OF EJS Templates
hgweb: wrap {lines} of filerevision with mappinggenerator...
Yuya Nishihara -
r38071:aeccb08a default
parent child Browse files
Show More
@@ -149,7 +149,7 b' def _filerevision(web, fctx):'
149 149 mt = mimetypes.guess_type(f)[0] or 'application/octet-stream'
150 150 text = '(binary:%s)' % mt
151 151
152 def lines():
152 def lines(context):
153 153 for lineno, t in enumerate(text.splitlines(True)):
154 154 yield {"line": t,
155 155 "lineid": "l%d" % (lineno + 1),
@@ -160,7 +160,7 b' def _filerevision(web, fctx):'
160 160 'filerevision',
161 161 file=f,
162 162 path=webutil.up(f),
163 text=lines(),
163 text=templateutil.mappinggenerator(lines),
164 164 symrev=webutil.symrevorshortnode(web.req, fctx),
165 165 rename=webutil.renamelink(fctx),
166 166 permissions=fctx.manifest().flags(f),
General Comments 0
You need to be logged in to leave comments. Login now