# HG changeset patch # User Pierre-Yves David # Date 1708595934 -3600 # Node ID 630d5283ee82e974f8ca0a846bfbfc1d381a0597 # Parent 8fc92193a2cfc10e8358ab9f26ec400a7d1e81a0 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. diff -r 8fc92193a2cf -r 630d5283ee82 mercurial/repocache.py --- 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