# HG changeset patch # User Yuya Nishihara # Date 2018-04-01 15:04:53 # Node ID f5155bca5023656152f17d73300f12e205ef9c0e # Parent 40a664bd06fa7dfe0b123ef64c41ab6771d0d653 hgweb: wrap {branches} by hybridlist() This is 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 @@ -253,8 +253,8 @@ def nodebranchdict(repo, ctx): except error.RepoLookupError: branchnode = None if branchnode == ctx.node(): - branches.append({"name": branch}) - return branches + branches.append(branch) + return templateutil.hybridlist(branches, name='name') def nodeinbranch(repo, ctx): branches = []