# HG changeset patch # User Boris Feld # Date 2017-10-11 01:39:21 # Node ID 0d9928a672543256b77c4b8286df804b5dc5a183 # Parent b50c036494dc73ed324ac17ed2981582d2505964 configitems: register the 'web.maxshortchanges' config diff --git a/mercurial/configitems.py b/mercurial/configitems.py --- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -730,6 +730,9 @@ coreconfigitem('web', 'errorlog', coreconfigitem('web', 'ipv6', default=False, ) +coreconfigitem('web', 'maxshortchanges', + default=60, +) coreconfigitem('web', 'motd', default='', ) diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -112,7 +112,7 @@ class requestcontext(object): self.maxchanges = self.configint('web', 'maxchanges', 10) self.stripecount = self.configint('web', 'stripes') - self.maxshortchanges = self.configint('web', 'maxshortchanges', 60) + self.maxshortchanges = self.configint('web', 'maxshortchanges') self.maxfiles = self.configint('web', 'maxfiles', 10) self.allowpull = self.configbool('web', 'allowpull', True)