comparison mercurial/configitems.py @ 50439:4077d6222cf1

hgweb: add support to explicitly access hidden changesets This changeset adds a "global" `access-hidden` argument to hgweb. This argument lift the "hidden" filtering. This means the request has access to hidden (eg: obsolete) changesets. Secret changesets remains filtered. This feature has multiple applications. The first main use case is to allow the hgweb interface to display more obsolescence related data, such as the Anton Shestakov work to add `obslog` support to hgweb. The second foreseen usecase is support for a `--remote-hidden` argument to `hg pull` and `hg clone`. This flag will make it possible to retrieve hidden (typically obsolete) changeset under some conditions. This is useful when digging up obsolescence history or when doing full mirroring. More on this feature coming in later changesets. To avoid exposing information by mistake, access to this feature is currently controlled with the `experimental.server.allow-hidden-access` config option. The option works the same way as `web.allow-push`. The current default is to not allow any hidden access. However we might change it before the feature stop being experimental.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 13 Apr 2019 01:17:56 +0200
parents 771294224bf6
children f57f5ab0e220
comparison
equal deleted inserted replaced
50438:3973b1dc3ee3 50439:4077d6222cf1
1242 b'rust.index', 1242 b'rust.index',
1243 default=False, 1243 default=False,
1244 ) 1244 )
1245 coreconfigitem( 1245 coreconfigitem(
1246 b'experimental', 1246 b'experimental',
1247 b'server.allow-hidden-access',
1248 default=list,
1249 )
1250 coreconfigitem(
1251 b'experimental',
1247 b'server.filesdata.recommended-batch-size', 1252 b'server.filesdata.recommended-batch-size',
1248 default=50000, 1253 default=50000,
1249 ) 1254 )
1250 coreconfigitem( 1255 coreconfigitem(
1251 b'experimental', 1256 b'experimental',