# HG changeset patch # User Yuya Nishihara # Date 2018-04-01 15:05:38 # Node ID a5d16f23a2c929272f9762e6dbab620941b52a95 # Parent f5155bca5023656152f17d73300f12e205ef9c0e hgweb: wrap {inbranch} by hybridlist() This is also a 0/1-length list of a simple value, can be a hybrid list. diff --git a/mercurial/hgweb/webutil.py b/mercurial/hgweb/webutil.py --- a/mercurial/hgweb/webutil.py +++ b/mercurial/hgweb/webutil.py @@ -264,8 +264,8 @@ def nodeinbranch(repo, ctx): except error.RepoLookupError: branchnode = None if branch != 'default' and branchnode != ctx.node(): - branches.append({"name": branch}) - return branches + branches.append(branch) + return templateutil.hybridlist(branches, name='name') def nodebranchnodefault(ctx): branches = []