# HG changeset patch # User Anton Shestakov # Date 1432652310 -28800 # Node ID 858618d4352401ea1b4d51272d20831a4ab62a53 # Parent 0f2dcbccf9c983230b2037f000ce74bf5ba6b7ee hgweb: remove an extra call to nodebranchnodefault() in changesetentry() showbranch variable already contains the result of nodebranchnodefault(ctx), so it can be reused. diff -r 0f2dcbccf9c9 -r 858618d43524 mercurial/hgweb/webutil.py --- 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))