diff mercurial/phases.py @ 49475: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 b57c95a0f5f9
children 92f71d40fc1d
line wrap: on
line diff
--- a/mercurial/phases.py	Tue Aug 16 18:20:42 2022 +0200
+++ b/mercurial/phases.py	Tue Aug 16 19:04:23 2022 +0200
@@ -181,7 +181,7 @@
 def supportarchived(repo):
     # type: (localrepo.localrepository) -> bool
     """True if the archived phase can be used on a repository"""
-    return requirements.INTERNAL_PHASE_REQUIREMENT in repo.requirements
+    return requirements.ARCHIVED_PHASE_REQUIREMENT in repo.requirements
 
 
 def _readroots(repo, phasedefaults=None):