Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 6720:084c9f1ef2bd
graph: display branch name alongside tags
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Mon, 23 Jun 2008 12:54:27 +0200 |
parents | 8251ffb35725 |
children | f6c00b17387c |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Mon Jun 23 10:36:00 2008 +0200 +++ b/mercurial/hgweb/webcommands.py Mon Jun 23 12:54:27 2008 +0200 @@ -602,7 +602,9 @@ desc = templatefilters.firstline(ctx.description()) desc = cgi.escape(desc) user = cgi.escape(templatefilters.person(ctx.user())) - data.append((node, vtx, edges, desc, user, age, ctx.tags())) + branch = ctx.branch() + branch = branch, web.repo.branchtags().get(branch) == ctx.node() + data.append((node, vtx, edges, desc, user, age, branch, ctx.tags())) return tmpl('graph', rev=rev, revcount=revcount, uprev=uprev, lessrev=lessrev, revcountmore=revcount and 2 * revcount or 1,