diff mercurial/localrepo.py @ 49452:74fb1842f8b9

phase: rename the requirement for internal-phase (BC) The previous requirements covers both `internal` and `archived` phase. However, the `archived` phase is not ready for usage (while the internal one is mostly ready for years). So we split the archived on in a dedicated requirements (see previous changeset for details) and rename the one for internal-phase. This will avoid older client trying to use the archived phase on `internal` only repositories. Since the requirements stayed experimental since its introduction. It seems fine to drop the previous version.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 16 Aug 2022 20:09:31 +0200
parents 0c70d888a484
children f59e49f6bee4
line wrap: on
line diff
--- a/mercurial/localrepo.py	Tue Aug 16 19:04:23 2022 +0200
+++ b/mercurial/localrepo.py	Tue Aug 16 20:09:31 2022 +0200
@@ -3662,7 +3662,7 @@
         requirements.discard(requirementsmod.REVLOGV1_REQUIREMENT)
         requirements.add(requirementsmod.REVLOGV2_REQUIREMENT)
     # experimental config: format.internal-phase
-    if ui.configbool(b'format', b'internal-phase'):
+    if ui.configbool(b'format', b'use-internal-phase'):
         requirements.add(requirementsmod.INTERNAL_PHASE_REQUIREMENT)
 
     # experimental config: format.exp-archived-phase