Skip to content
Snippets Groups Projects
Commit 4bc74bc7 authored by Anton Shestakov's avatar Anton Shestakov
Browse files

hgweb: check changeset's original branch in graphdata()

This piece of code checks if a changeset is the tip of its branch, but as can
be seen above in the context, "branch" was prepared for being displayed in
hgweb by making it unicode and passing it through url.escape. It's better to
use the original ctx.branch().
parent 38fe3fe4
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment