Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgweb_mod.py @ 34589:883d06211973
configitems: register the 'web.maxfiles' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 11 Oct 2017 03:41:01 +0200 |
parents | 0d9928a67254 |
children | 95f4e5b1ec92 |
comparison
equal
deleted
inserted
replaced
34588:0d9928a67254 | 34589:883d06211973 |
---|---|
111 self.archivespecs = archivespecs | 111 self.archivespecs = archivespecs |
112 | 112 |
113 self.maxchanges = self.configint('web', 'maxchanges', 10) | 113 self.maxchanges = self.configint('web', 'maxchanges', 10) |
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', 10) | 116 self.maxfiles = self.configint('web', 'maxfiles') |
117 self.allowpull = self.configbool('web', 'allowpull', True) | 117 self.allowpull = self.configbool('web', 'allowpull', True) |
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 |