comparison mercurial/branchmap.py @ 42126:ef0e3cc684b3

repoview: introduce a filter for serving hidden changesets There are multiple usecase for being able to explicitly view or pull obsolete from a server. We need to be able to do so without exposing the secret changesets. We introduces a dedicated repository "view" to do so. Way to expose this "view" to the user will come later. To keep a behavior consistent with expected client/server behavior, the general idea is for the obsolete access to be explicitly requested by the code generating the request. In addition, the will be server side configuration to restrict the access to this feature.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 21 May 2018 17:28:35 +0200
parents be5eeaf5c24a
children b26455ffa7fa
comparison
equal deleted inserted replaced
42125:bc15e37ecc16 42126:ef0e3cc684b3
38 # This create and ordering used for branchmap purpose. 38 # This create and ordering used for branchmap purpose.
39 # the ordering may be partial 39 # the ordering may be partial
40 subsettable = {None: 'visible', 40 subsettable = {None: 'visible',
41 'visible-hidden': 'visible', 41 'visible-hidden': 'visible',
42 'visible': 'served', 42 'visible': 'served',
43 'served.hidden': 'served',
43 'served': 'immutable', 44 'served': 'immutable',
44 'immutable': 'base'} 45 'immutable': 'base'}
45 46
46 47
47 class BranchMapCache(object): 48 class BranchMapCache(object):