# HG changeset patch # User Benoit Allard # Date 1227646468 -3600 # Node ID 0fa3b6677027bcb91efe80633745dafabbd6afdb # Parent f031a12dfc31a6dd2fb8d45c123d93565276b2e7 coal/paper: display tags and branch in filelog page diff -r f031a12dfc31 -r 0fa3b6677027 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Tue Nov 25 22:32:11 2008 +0100 +++ b/mercurial/hgweb/webcommands.py Tue Nov 25 21:54:28 2008 +0100 @@ -555,8 +555,12 @@ "rename": webutil.renamelink(fctx), "parent": webutil.siblings(fctx.parents()), "child": webutil.siblings(fctx.children()), - "desc": ctx.description()}) - + "desc": ctx.description(), + "tags": webutil.nodetagsdict(web.repo, ctx.node()), + "branch": webutil.nodebranchnodefault(ctx), + "inbranch": webutil.nodeinbranch(web.repo, ctx), + "branches": webutil.nodebranchdict(web.repo, ctx)}) + if limit > 0: l = l[:limit] diff -r f031a12dfc31 -r 0fa3b6677027 templates/coal/filelogentry.tmpl --- a/templates/coal/filelogentry.tmpl Tue Nov 25 22:32:11 2008 +0100 +++ b/templates/coal/filelogentry.tmpl Tue Nov 25 21:54:28 2008 +0100 @@ -1,5 +1,5 @@ {date|age} {author|person} - {desc|strip|firstline|escape} + {desc|strip|firstline|escape}{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}