Mercurial > hg
diff mercurial/hgweb/webcommands.py @ 37510:876d54f800cf
hgweb: wrap {labels} by hybridlist()
This one is a simple list of strings, which can support map operation.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 01 Apr 2018 22:20:44 +0900 |
parents | 448f7ec247e2 |
children | aac97d043e6d |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Sun Apr 01 22:14:36 2018 +0900 +++ b/mercurial/hgweb/webcommands.py Sun Apr 01 22:20:44 2018 +0900 @@ -765,6 +765,7 @@ desc = web.config("web", "description") if not desc: desc = 'unknown' + labels = web.configlist('web', 'labels') return web.sendtemplate( 'summary', @@ -779,7 +780,7 @@ node=tip.hex(), symrev='tip', archives=web.archivelist('tip'), - labels=web.configlist('web', 'labels')) + labels=templateutil.hybridlist(labels, name='label')) @webcommand('filediff') def filediff(web):