Mercurial > hg-stable
changeset 34602:56816cfc4951
configitems: register the 'web.allowpull' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 11 Oct 2017 04:12:50 +0200 |
parents | 8f4d54b74206 |
children | cc5445ced177 |
files | mercurial/configitems.py mercurial/hgweb/hgweb_mod.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/configitems.py Wed Oct 11 04:12:34 2017 +0200 +++ b/mercurial/configitems.py Wed Oct 11 04:12:50 2017 +0200 @@ -718,6 +718,9 @@ coreconfigitem('web', 'allowgz', default=None, ) +coreconfigitem('web', 'allowpull', + default=True, +) coreconfigitem('web', 'accesslog', default='-', )
--- a/mercurial/hgweb/hgweb_mod.py Wed Oct 11 04:12:34 2017 +0200 +++ b/mercurial/hgweb/hgweb_mod.py Wed Oct 11 04:12:50 2017 +0200 @@ -114,7 +114,7 @@ self.stripecount = self.configint('web', 'stripes') self.maxshortchanges = self.configint('web', 'maxshortchanges') self.maxfiles = self.configint('web', 'maxfiles') - self.allowpull = self.configbool('web', 'allowpull', True) + self.allowpull = self.configbool('web', 'allowpull') # we use untrusted=False to prevent a repo owner from using # web.templates in .hg/hgrc to get access to any file readable