Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 37946:2095331ff926
hgweb: wrap {rename} with mappinglist
No bare list of mappings should be put in a template mapping.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 02 Apr 2018 00:00:29 +0900 |
parents | 7738ae638b62 |
children | 7fae76c2c564 |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Fri Apr 27 11:23:41 2018 -0400 +++ b/mercurial/hgweb/webcommands.py Mon Apr 02 00:00:29 2018 +0900 @@ -819,7 +819,7 @@ rename = webutil.renamelink(fctx) ctx = fctx else: - rename = [] + rename = templateutil.mappinglist([]) ctx = ctx return web.sendtemplate( @@ -892,7 +892,7 @@ rename = webutil.renamelink(fctx) ctx = fctx else: - rename = [] + rename = templateutil.mappinglist([]) ctx = ctx return web.sendtemplate(