hgweb: wrap {tags} by hybridlist()
authorYuya Nishihara <yuya@tcha.org>
Mon, 02 Apr 2018 00:02:36 +0900
changeset 37947 450de9cb0b36
parent 37946 2095331ff926
child 37948 40a664bd06fa
hgweb: wrap {tags} by hybridlist() This one is a list of simple values, which can be a hybrid list.
mercurial/hgweb/webutil.py
--- a/mercurial/hgweb/webutil.py	Mon Apr 02 00:00:29 2018 +0900
+++ b/mercurial/hgweb/webutil.py	Mon Apr 02 00:02:36 2018 +0900
@@ -238,7 +238,7 @@
     return templateutil.mappinglist([])
 
 def nodetagsdict(repo, node):
-    return [{"name": i} for i in repo.nodetags(node)]
+    return templateutil.hybridlist(repo.nodetags(node), name='name')
 
 def nodebookmarksdict(repo, node):
     return [{"name": i} for i in repo.nodebookmarks(node)]