# HG changeset patch # User Pierre-Yves David # Date 2024-02-21 11:01:09 # Node ID 89b638afeb079804fc32bfb6da613f8e94d8f015 # Parent 774e4eff6e472070ba8c626703e848a09a17857d phases: fix an overzealous invalidation of the phase sets If `len(cl) == self._loadedrevslen` the cache is up to date. diff --git a/mercurial/phases.py b/mercurial/phases.py --- a/mercurial/phases.py +++ b/mercurial/phases.py @@ -384,7 +384,7 @@ class phasecache: """detect if there are revisions with non-public phase""" repo = repo.unfiltered() cl = repo.changelog - if len(cl) >= self._loadedrevslen: + if len(cl) > self._loadedrevslen: self.invalidate() self.loadphaserevs(repo) return any( @@ -401,7 +401,7 @@ class phasecache: """ repo = repo.unfiltered() cl = repo.changelog - if len(cl) >= self._loadedrevslen: + if len(cl) > self._loadedrevslen: self.invalidate() self.loadphaserevs(repo) return set().union(