# HG changeset patch # User Boris Feld # Date 1507686061 -7200 # Node ID 883d062119736690e9669515220228d789ea2883 # Parent 0d9928a672543256b77c4b8286df804b5dc5a183 configitems: register the 'web.maxfiles' config diff -r 0d9928a67254 -r 883d06211973 mercurial/configitems.py --- a/mercurial/configitems.py Wed Oct 11 03:39:21 2017 +0200 +++ b/mercurial/configitems.py Wed Oct 11 03:41:01 2017 +0200 @@ -730,6 +730,9 @@ coreconfigitem('web', 'ipv6', default=False, ) +coreconfigitem('web', 'maxfiles', + default=10, +) coreconfigitem('web', 'maxshortchanges', default=60, ) diff -r 0d9928a67254 -r 883d06211973 mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Wed Oct 11 03:39:21 2017 +0200 +++ b/mercurial/hgweb/hgweb_mod.py Wed Oct 11 03:41:01 2017 +0200 @@ -113,7 +113,7 @@ self.maxchanges = self.configint('web', 'maxchanges', 10) self.stripecount = self.configint('web', 'stripes') self.maxshortchanges = self.configint('web', 'maxshortchanges') - self.maxfiles = self.configint('web', 'maxfiles', 10) + self.maxfiles = self.configint('web', 'maxfiles') self.allowpull = self.configbool('web', 'allowpull', True) # we use untrusted=False to prevent a repo owner from using