hgweb: wrap {bookmarks} by hybridlist()
authorYuya Nishihara <yuya@tcha.org>
Mon, 02 Apr 2018 00:03:49 +0900
changeset 37904 40a664bd06fa
parent 37903 450de9cb0b36
child 37905 f5155bca5023
hgweb: wrap {bookmarks} by hybridlist() This is also a list of simple values.
mercurial/hgweb/webutil.py
--- a/mercurial/hgweb/webutil.py	Mon Apr 02 00:02:36 2018 +0900
+++ b/mercurial/hgweb/webutil.py	Mon Apr 02 00:03:49 2018 +0900
@@ -241,7 +241,7 @@
     return templateutil.hybridlist(repo.nodetags(node), name='name')
 
 def nodebookmarksdict(repo, node):
-    return [{"name": i} for i in repo.nodebookmarks(node)]
+    return templateutil.hybridlist(repo.nodebookmarks(node), name='name')
 
 def nodebranchdict(repo, ctx):
     branches = []