changeset 37948:40a664bd06fa

hgweb: wrap {bookmarks} by hybridlist() This is also a list of simple values.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 02 Apr 2018 00:03:49 +0900
parents 450de9cb0b36
children f5155bca5023
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: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 = []