# HG changeset patch # User Benoit Boissinot # Date 1360356946 -3600 # Node ID 3490c91a1fcb13859000e2d50b1bf5ba8997728e # Parent 97761496c65ae836d6b0983a3f48959dd3112364 templates: export extra as a dict to templates Currently only useful with the json filter. diff -r 97761496c65a -r 3490c91a1fcb mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Fri Feb 08 22:42:07 2013 +0000 +++ b/mercurial/hgweb/webcommands.py Fri Feb 08 21:55:46 2013 +0100 @@ -89,6 +89,7 @@ author=fctx.user(), date=fctx.date(), desc=fctx.description(), + extra=fctx.extra(), branch=webutil.nodebranchnodefault(fctx), parent=webutil.parents(fctx), child=webutil.children(fctx), @@ -162,6 +163,7 @@ child=webutil.children(ctx), changelogtag=showtags, desc=ctx.description(), + extra=ctx.extra(), date=ctx.date(), files=files, rev=ctx.rev(), @@ -216,6 +218,7 @@ "child": webutil.children(ctx, i + 1), "changelogtag": showtags, "desc": ctx.description(), + "extra": ctx.extra(), "date": ctx.date(), "files": files, "rev": i, @@ -299,6 +302,7 @@ changesetbranch=showbranch, author=ctx.user(), desc=ctx.description(), + extra=ctx.extra(), date=ctx.date(), files=files, diffsummary=lambda **x: webutil.diffsummary(diffstatgen), @@ -531,6 +535,7 @@ parity=parity.next(), author=ctx.user(), desc=ctx.description(), + extra=ctx.extra(), date=ctx.date(), rev=i, node=hn, @@ -590,6 +595,7 @@ rev=ctx.rev(), date=ctx.date(), desc=ctx.description(), + extra=ctx.extra(), author=ctx.user(), rename=rename, branch=webutil.nodebranchnodefault(ctx), @@ -651,6 +657,7 @@ rev=ctx.rev(), date=ctx.date(), desc=ctx.description(), + extra=ctx.extra(), author=ctx.user(), rename=rename, branch=webutil.nodebranchnodefault(ctx), @@ -689,6 +696,7 @@ "rev": f.rev(), "author": f.user(), "desc": f.description(), + "extra": f.extra(), "file": f.path(), "targetline": targetline, "line": l, @@ -705,6 +713,7 @@ author=fctx.user(), date=fctx.date(), desc=fctx.description(), + extra=fctx.extra(), rename=webutil.renamelink(fctx), branch=webutil.nodebranchnodefault(fctx), parent=webutil.parents(fctx), @@ -770,6 +779,7 @@ "parent": webutil.parents(iterfctx), "child": webutil.children(iterfctx), "desc": iterfctx.description(), + "extra": iterfctx.extra(), "tags": webutil.nodetagsdict(repo, iterfctx.node()), "bookmarks": webutil.nodebookmarksdict( repo, iterfctx.node()),