Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webutil.py @ 25278:858618d43524
hgweb: remove an extra call to nodebranchnodefault() in changesetentry()
showbranch variable already contains the result of nodebranchnodefault(ctx), so
it can be reused.
author | Anton Shestakov <engored@ya.ru> |
---|---|
date | Tue, 26 May 2015 22:58:30 +0800 |
parents | bbf1ae6b6a44 |
children | 85fb416f2fa7 |
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py Fri May 22 12:14:23 2015 -0500 +++ b/mercurial/hgweb/webutil.py Tue May 26 22:58:30 2015 +0800 @@ -331,7 +331,7 @@ archives=web.archivelist(ctx.hex()), tags=nodetagsdict(web.repo, ctx.node()), bookmarks=nodebookmarksdict(web.repo, ctx.node()), - branch=nodebranchnodefault(ctx), + branch=showbranch, inbranch=nodeinbranch(web.repo, ctx), branches=nodebranchdict(web.repo, ctx))