Mercurial > hg
changeset 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 | 0f2dcbccf9c9 |
children | 8c8af4d8aca3 |
files | mercurial/hgweb/webutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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))