Mercurial > hg
diff mercurial/hgweb/webutil.py @ 37514:034a422aeaff
hgweb: forward archivelist() of hgweb to webutil
self.configlist() is ui.configlist(untrusted=True), and url=None in templater
effectively means 'url' is undefined.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 01 Apr 2018 22:40:15 +0900 |
parents | 40a7c1dd2df9 |
children | 8a5ee6aa8870 |
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py Sun Apr 01 22:37:03 2018 +0900 +++ b/mercurial/hgweb/webutil.py Sun Apr 01 22:40:15 2018 +0900 @@ -49,7 +49,7 @@ ('bz2', ('application/x-bzip2', 'tbz2', '.tar.bz2', None)), )) -def archivelist(ui, nodeid, url): +def archivelist(ui, nodeid, url=None): allowed = ui.configlist('web', 'allow_archive', untrusted=True) archives = []