Mercurial > hg
diff mercurial/localrepo.py @ 39298:7a9f15ed3b96
phases: add a repository requirement about internal phase
For internal changeset to be properly hidden, the client version needs to
support it. So we introduce a new repository requirement that will make sure
clients touching a repository that uses internal phase supports the feature.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 24 May 2018 09:59:10 +0200 |
parents | 46da52f4b820 |
children | 5763216ba311 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sat Aug 25 01:19:48 2018 +0200 +++ b/mercurial/localrepo.py Thu May 24 09:59:10 2018 +0200 @@ -394,6 +394,7 @@ 'relshared', 'dotencode', 'exp-sparse', + 'internal-phase' } openerreqs = { 'revlogv1', @@ -2427,5 +2428,8 @@ # generaldelta is implied by revlogv2. requirements.discard('generaldelta') requirements.add(REVLOGV2_REQUIREMENT) + # experimental config: format.internal-phase + if repo.ui.configbool('format', 'internal-phase'): + requirements.add('internal-phase') return requirements