# HG changeset patch # User Yuya Nishihara # Date 1522588476 -32400 # Node ID cb7b275c0cd02797e1b804acccb31c723d22554c # Parent 30a7b32897f1a076fe032fa6a8154eee3b13e893 hgweb: wrap {pathdef} with mappinglist No bare list of mappings should be put in a template mapping. diff -r 30a7b32897f1 -r cb7b275c0cd0 mercurial/hgweb/hgweb_mod.py --- 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.