# HG changeset patch # User Dirkjan Ochtman # Date 1227649981 -3600 # Node ID f1111704061e0484d3f588e021b03683b427971e # Parent 0fa3b6677027bcb91efe80633745dafabbd6afdb coal/paper: show branch name in changeset view diff -r 0fa3b6677027 -r f1111704061e mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Tue Nov 25 21:54:28 2008 +0100 +++ b/mercurial/hgweb/webcommands.py Tue Nov 25 22:53:01 2008 +0100 @@ -227,6 +227,7 @@ def changeset(web, req, tmpl): ctx = webutil.changectx(web.repo, req) showtags = webutil.showtag(web.repo, tmpl, 'changesettag', ctx.node()) + showbranch = webutil.nodebranchnodefault(ctx) parents = ctx.parents() files = [] @@ -246,6 +247,7 @@ parent=webutil.siblings(parents), child=webutil.siblings(ctx.children()), changesettag=showtags, + changesetbranch=showbranch, author=ctx.user(), desc=ctx.description(), date=ctx.date(), diff -r 0fa3b6677027 -r f1111704061e templates/coal/changeset.tmpl --- a/templates/coal/changeset.tmpl Tue Nov 25 21:54:28 2008 +0100 +++ b/templates/coal/changeset.tmpl Tue Nov 25 22:53:01 2008 +0100 @@ -26,7 +26,7 @@

{repo|escape}

-

changeset {rev}:{node|short} {changesettag}

+

changeset {rev}:{node|short} {changesetbranch%changelogbranchname} {changesettag}