Mercurial > hg
comparison mercurial/hgweb/hgweb_mod.py @ 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 | 95f4e5b1ec92 |
children | 625202a44d88 |
comparison
equal
deleted
inserted
replaced
34601:8f4d54b74206 | 34602:56816cfc4951 |
---|---|
112 | 112 |
113 self.maxchanges = self.configint('web', 'maxchanges') | 113 self.maxchanges = self.configint('web', 'maxchanges') |
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 |
121 # by the user running the CGI script | 121 # by the user running the CGI script |
122 self.templatepath = self.config('web', 'templates', untrusted=False) | 122 self.templatepath = self.config('web', 'templates', untrusted=False) |