Show More
@@ -1006,7 +1006,8 b" coreconfigitem('web', 'allowbz2'," | |||||
1006 | coreconfigitem('web', 'allowgz', |
|
1006 | coreconfigitem('web', 'allowgz', | |
1007 | default=False, |
|
1007 | default=False, | |
1008 | ) |
|
1008 | ) | |
1009 | coreconfigitem('web', 'allowpull', |
|
1009 | coreconfigitem('web', 'allow-pull', | |
|
1010 | alias=[('web', 'allowpull')], | |||
1010 | default=True, |
|
1011 | default=True, | |
1011 | ) |
|
1012 | ) | |
1012 | coreconfigitem('web', 'allow_push', |
|
1013 | coreconfigitem('web', 'allow_push', |
@@ -2287,7 +2287,7 b' The full set of options is:' | |||||
2287 | revisions. |
|
2287 | revisions. | |
2288 | (default: False) |
|
2288 | (default: False) | |
2289 |
|
2289 | |||
2290 | ``allowpull`` |
|
2290 | ``allow-pull`` | |
2291 | Whether to allow pulling from the repository. (default: True) |
|
2291 | Whether to allow pulling from the repository. (default: True) | |
2292 |
|
2292 | |||
2293 | ``allow_push`` |
|
2293 | ``allow_push`` |
@@ -114,7 +114,7 b' 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') |
|
117 | self.allowpull = self.configbool('web', 'allow-pull') | |
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