mercurial/hgweb/webcommands.py
changeset 35095 4bc74bc78efd
parent 34809 3a65012be661
child 35096 23bba755cf80
--- a/mercurial/hgweb/webcommands.py	Sun Nov 19 14:02:50 2017 +0800
+++ b/mercurial/hgweb/webcommands.py	Mon Nov 20 21:47:11 2017 +0800
@@ -1255,7 +1255,7 @@
             user = url.escape(templatefilters.person(encodestr(ctx.user())))
             branch = url.escape(encodestr(ctx.branch()))
             try:
-                branchnode = web.repo.branchtip(branch)
+                branchnode = web.repo.branchtip(ctx.branch())
             except error.RepoLookupError:
                 branchnode = None
             branch = branch, branchnode == ctx.node()