Mercurial > hg-stable
changeset 37950:a5d16f23a2c9
hgweb: wrap {inbranch} by hybridlist()
This is also a 0/1-length list of a simple value, can be a hybrid list.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 02 Apr 2018 00:05:38 +0900 |
parents | f5155bca5023 |
children | 3b3d818bde8b |
files | mercurial/hgweb/webutil.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py Mon Apr 02 00:04:53 2018 +0900 +++ b/mercurial/hgweb/webutil.py Mon Apr 02 00:05:38 2018 +0900 @@ -264,8 +264,8 @@ 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 = []