# HG changeset patch # User Yuya Nishihara # Date 1522595199 -32400 # Node ID 3b3d818bde8b8bb5a765909685347a871120b90c # Parent a5d16f23a2c929272f9762e6dbab620941b52a95 hgweb: wrap {branch} and {changesetbranch} by hybridlist() This is also a 0/1-length list of a simple value, can be a hybrid list. Appears that we have many {branch} variants. diff -r a5d16f23a2c9 -r 3b3d818bde8b mercurial/hgweb/webutil.py --- a/mercurial/hgweb/webutil.py Mon Apr 02 00:05:38 2018 +0900 +++ b/mercurial/hgweb/webutil.py Mon Apr 02 00:06:39 2018 +0900 @@ -271,8 +271,8 @@ branches = [] branch = ctx.branch() if branch != 'default': - branches.append({"name": branch}) - return branches + branches.append(branch) + return templateutil.hybridlist(branches, name='name') def showtag(repo, tmpl, t1, node=nullid, **args): args = pycompat.byteskwargs(args)