hgweb: remove an extra call to nodebranchnodefault() in changesetentry()
authorAnton Shestakov <engored@ya.ru>
Tue, 26 May 2015 22:58:30 +0800
changeset 25278 858618d43524
parent 25277 0f2dcbccf9c9
child 25280 8c8af4d8aca3
hgweb: remove an extra call to nodebranchnodefault() in changesetentry() showbranch variable already contains the result of nodebranchnodefault(ctx), so it can be reused.
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))