--- 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