Mercurial > public > mercurial-scm > hg
diff mercurial/localrepo.py @ 49451:0c70d888a484
phase: introduce a dedicated requirement for the `archived` phase
See inline documentation for details.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 16 Aug 2022 19:04:23 +0200 |
parents | 0540c1628fd4 |
children | 74fb1842f8b9 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Tue Aug 16 18:20:42 2022 +0200 +++ b/mercurial/localrepo.py Tue Aug 16 19:04:23 2022 +0200 @@ -1281,6 +1281,7 @@ """ _basesupported = { + requirementsmod.ARCHIVED_PHASE_REQUIREMENT, requirementsmod.BOOKMARKS_IN_STORE_REQUIREMENT, requirementsmod.CHANGELOGV2_REQUIREMENT, requirementsmod.COPIESSDC_REQUIREMENT, @@ -3664,6 +3665,10 @@ if ui.configbool(b'format', b'internal-phase'): requirements.add(requirementsmod.INTERNAL_PHASE_REQUIREMENT) + # experimental config: format.exp-archived-phase + if ui.configbool(b'format', b'exp-archived-phase'): + requirements.add(requirementsmod.ARCHIVED_PHASE_REQUIREMENT) + if createopts.get(b'narrowfiles'): requirements.add(requirementsmod.NARROW_REQUIREMENT)