changeset 37509:cb7b275c0cd0

hgweb: wrap {pathdef} with mappinglist No bare list of mappings should be put in a template mapping.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 01 Apr 2018 22:14:36 +0900
parents 30a7b32897f1
children 876d54f800cf
files mercurial/hgweb/hgweb_mod.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Sun Apr 01 22:11:58 2018 +0900
+++ b/mercurial/hgweb/hgweb_mod.py	Sun Apr 01 22:14:36 2018 +0900
@@ -31,6 +31,7 @@
     repoview,
     templatefilters,
     templater,
+    templateutil,
     ui as uimod,
     util,
     wireprotoserver,
@@ -80,7 +81,7 @@
             break
         breadcrumb.append({'url': urlel, 'name': pathel})
         urlel = os.path.dirname(urlel)
-    return reversed(breadcrumb)
+    return templateutil.mappinglist(reversed(breadcrumb))
 
 class requestcontext(object):
     """Holds state/context for an individual request.