comparison mercurial/hgweb/hgweb_mod.py @ 34588:0d9928a67254

configitems: register the 'web.maxshortchanges' config
author Boris Feld <boris.feld@octobus.net>
date Wed, 11 Oct 2017 03:39:21 +0200
parents b50c036494dc
children 883d06211973
comparison
equal deleted inserted replaced
34587:b50c036494dc 34588:0d9928a67254
110 110
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', 60) 115 self.maxshortchanges = self.configint('web', 'maxshortchanges')
116 self.maxfiles = self.configint('web', 'maxfiles', 10) 116 self.maxfiles = self.configint('web', 'maxfiles', 10)
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