##// END OF EJS Templates
hgweb: compute changeset parents and children for log pages lazily...
av6 -
r26894:41957e50 default
parent child Browse files
Show More
@@ -264,8 +264,8 b' def _search(web, req, tmpl):'
264 yield tmpl('searchentry',
264 yield tmpl('searchentry',
265 parity=parity.next(),
265 parity=parity.next(),
266 author=ctx.user(),
266 author=ctx.user(),
267 parent=webutil.parents(ctx),
267 parent=lambda **x: webutil.parents(ctx),
268 child=webutil.children(ctx),
268 child=lambda **x: webutil.children(ctx),
269 changelogtag=showtags,
269 changelogtag=showtags,
270 desc=ctx.description(),
270 desc=ctx.description(),
271 extra=ctx.extra(),
271 extra=ctx.extra(),
@@ -1000,8 +1000,8 b' def filelog(web, req, tmpl):'
1000 "author": iterfctx.user(),
1000 "author": iterfctx.user(),
1001 "date": iterfctx.date(),
1001 "date": iterfctx.date(),
1002 "rename": webutil.renamelink(iterfctx),
1002 "rename": webutil.renamelink(iterfctx),
1003 "parent": webutil.parents(iterfctx),
1003 "parent": lambda **x: webutil.parents(iterfctx),
1004 "child": webutil.children(iterfctx),
1004 "child": lambda **x: webutil.children(iterfctx),
1005 "desc": iterfctx.description(),
1005 "desc": iterfctx.description(),
1006 "extra": iterfctx.extra(),
1006 "extra": iterfctx.extra(),
1007 "tags": webutil.nodetagsdict(repo, iterfctx.node()),
1007 "tags": webutil.nodetagsdict(repo, iterfctx.node()),
@@ -297,8 +297,8 b' def changelistentry(web, ctx, tmpl):'
297
297
298 return {
298 return {
299 "author": ctx.user(),
299 "author": ctx.user(),
300 "parent": parents(ctx, rev - 1),
300 "parent": lambda **x: parents(ctx, rev - 1),
301 "child": children(ctx, rev + 1),
301 "child": lambda **x: children(ctx, rev + 1),
302 "changelogtag": showtags,
302 "changelogtag": showtags,
303 "desc": ctx.description(),
303 "desc": ctx.description(),
304 "extra": ctx.extra(),
304 "extra": ctx.extra(),
General Comments 0
You need to be logged in to leave comments. Login now