# HG changeset patch # User Yuya Nishihara # Date 1459660607 -32400 # Node ID 16bbb15406c95a4fc8c60d28485e98c8c695cde5 # Parent c97b936d8bb5a5b1968767348bdf5e35cb442ac5 hgweb: evaluate the "default" value as template Strictly speaking, everything in the map file is a template. So let's not take out an unparsed template string. diff -r c97b936d8bb5 -r 16bbb15406c9 mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Fri Mar 16 21:39:32 2018 +0900 +++ b/mercurial/hgweb/hgweb_mod.py Sun Apr 03 14:16:47 2016 +0900 @@ -386,7 +386,7 @@ self.check_perm(rctx, req, None) if cmd == '': - req.qsparams['cmd'] = rctx.tmpl.cache['default'] + req.qsparams['cmd'] = rctx.tmpl.render('default', {}) cmd = req.qsparams['cmd'] # Don't enable caching if using a CSP nonce because then it wouldn't