changeset 37903:450de9cb0b36

hgweb: wrap {tags} by hybridlist() This one is a list of simple values, which can be a hybrid list.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 02 Apr 2018 00:02:36 +0900
parents 2095331ff926
children 40a664bd06fa
files mercurial/hgweb/webutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)]