changeset 51414:630d5283ee82

phases: change the way we warm the phasecache in repocache Same logic as for the previous chngeset. We are about to rename and change the method used here.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 22 Feb 2024 10:58:54 +0100
parents 8fc92193a2cf
children 1df8d84e7c99
files mercurial/repocache.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/repocache.py	Thu Feb 22 10:56:05 2024 +0100
+++ b/mercurial/repocache.py	Thu Feb 22 10:58:54 2024 +0100
@@ -119,7 +119,8 @@
     repo.obsstore.children
     for name in obsolete.cachefuncs:
         obsolete.getrevs(repo, name)
-    repo._phasecache.loadphaserevs(repo)
+    # ensure the phase cache is fully initialized
+    repo._phasecache.phase(repo, repo.changelog.tiprev())
 
 
 # TODO: think about proper API of attaching preloaded attributes