comparison mercurial/configitems.py @ 41840:d6569f1e9b37

server: allow customizing the default repo filter hgweb has the (undocument) configuration option web.view that allows restricting visible revisions to immutable. This is useful for serving the same storage as publishing and non-publishing repo. Add the new server.view option to serve the same purpose by changing the default behavior of `getdispatchrepo`. Drop the hard-coded 'served' filter in the batch handler of v1 of the wire proto, this is a left-over from the days before `getdispatchrepo` existed. Differential Revision: https://phab.mercurial-scm.org/D5946
author Joerg Sonnenberger <joerg@bec.de>
date Tue, 12 Feb 2019 19:08:17 +0100
parents 688fc33e105d
children c1d83d916e85
comparison
equal deleted inserted replaced
41839:38de3300414f 41840:d6569f1e9b37
1039 default=True, 1039 default=True,
1040 ) 1040 )
1041 coreconfigitem('server', 'uncompressedallowsecret', 1041 coreconfigitem('server', 'uncompressedallowsecret',
1042 default=False, 1042 default=False,
1043 ) 1043 )
1044 coreconfigitem('server', 'view',
1045 default='served',
1046 )
1044 coreconfigitem('server', 'validate', 1047 coreconfigitem('server', 'validate',
1045 default=False, 1048 default=False,
1046 ) 1049 )
1047 coreconfigitem('server', 'zliblevel', 1050 coreconfigitem('server', 'zliblevel',
1048 default=-1, 1051 default=-1,