##// 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 264 yield tmpl('searchentry',
265 265 parity=parity.next(),
266 266 author=ctx.user(),
267 parent=webutil.parents(ctx),
268 child=webutil.children(ctx),
267 parent=lambda **x: webutil.parents(ctx),
268 child=lambda **x: webutil.children(ctx),
269 269 changelogtag=showtags,
270 270 desc=ctx.description(),
271 271 extra=ctx.extra(),
@@ -1000,8 +1000,8 b' def filelog(web, req, tmpl):'
1000 1000 "author": iterfctx.user(),
1001 1001 "date": iterfctx.date(),
1002 1002 "rename": webutil.renamelink(iterfctx),
1003 "parent": webutil.parents(iterfctx),
1004 "child": webutil.children(iterfctx),
1003 "parent": lambda **x: webutil.parents(iterfctx),
1004 "child": lambda **x: webutil.children(iterfctx),
1005 1005 "desc": iterfctx.description(),
1006 1006 "extra": iterfctx.extra(),
1007 1007 "tags": webutil.nodetagsdict(repo, iterfctx.node()),
@@ -297,8 +297,8 b' def changelistentry(web, ctx, tmpl):'
297 297
298 298 return {
299 299 "author": ctx.user(),
300 "parent": parents(ctx, rev - 1),
301 "child": children(ctx, rev + 1),
300 "parent": lambda **x: parents(ctx, rev - 1),
301 "child": lambda **x: children(ctx, rev + 1),
302 302 "changelogtag": showtags,
303 303 "desc": ctx.description(),
304 304 "extra": ctx.extra(),
General Comments 0
You need to be logged in to leave comments. Login now