##// END OF EJS Templates
configitems: register the 'web.allowpull' config
Boris Feld -
r34603:56816cfc default
parent child Browse files
Show More
@@ -718,6 +718,9 coreconfigitem('web', 'allowbz2',
718 coreconfigitem('web', 'allowgz',
718 coreconfigitem('web', 'allowgz',
719 default=None,
719 default=None,
720 )
720 )
721 coreconfigitem('web', 'allowpull',
722 default=True,
723 )
721 coreconfigitem('web', 'accesslog',
724 coreconfigitem('web', 'accesslog',
722 default='-',
725 default='-',
723 )
726 )
@@ -114,7 +114,7 class requestcontext(object):
114 self.stripecount = self.configint('web', 'stripes')
114 self.stripecount = self.configint('web', 'stripes')
115 self.maxshortchanges = self.configint('web', 'maxshortchanges')
115 self.maxshortchanges = self.configint('web', 'maxshortchanges')
116 self.maxfiles = self.configint('web', 'maxfiles')
116 self.maxfiles = self.configint('web', 'maxfiles')
117 self.allowpull = self.configbool('web', 'allowpull', True)
117 self.allowpull = self.configbool('web', 'allowpull')
118
118
119 # we use untrusted=False to prevent a repo owner from using
119 # we use untrusted=False to prevent a repo owner from using
120 # web.templates in .hg/hgrc to get access to any file readable
120 # web.templates in .hg/hgrc to get access to any file readable
General Comments 0
You need to be logged in to leave comments. Login now