Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgwebdir_mod.py @ 37515:8a5ee6aa8870
hgweb: wrap {archives} 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:41:49 +0900 |
parents | 40a7c1dd2df9 |
children | a728e3695325 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py Sun Apr 01 22:40:15 2018 +0900 +++ b/mercurial/hgweb/hgwebdir_mod.py Sun Apr 01 22:41:49 2018 +0900 @@ -172,7 +172,7 @@ 'description_sort': "", 'lastchange': d, 'lastchange_sort': d[1] - d[0], - 'archives': [], + 'archives': templateutil.mappinglist([]), 'isdirectory': True, 'labels': templateutil.hybridlist([], name='label'), }