Mercurial > hg
changeset 51417:e0d329491709
phases: pass an unfiltered repository to _ensure_phase_sets
It seems better for such a low level function to be able to assume it operate on
a real repository.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 21 Feb 2024 14:42:13 +0100 |
parents | 0c04074f5414 |
children | c9c017b34464 |
files | mercurial/phases.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/phases.py Wed Feb 21 13:01:25 2024 +0100 +++ b/mercurial/phases.py Wed Feb 21 14:42:13 2024 +0100 @@ -413,7 +413,7 @@ ) -> Any: # TODO: finish typing this """return a smartset for the given phases""" - self._ensure_phase_sets(repo) # ensure phase's sets are loaded + self._ensure_phase_sets(repo.unfiltered()) phases = set(phases) publicphase = public in phases @@ -536,7 +536,7 @@ # double check self._loadedrevslen to avoid an extra method call as # python is slow for that. if rev >= self._loadedrevslen: - self._ensure_phase_sets(repo) + self._ensure_phase_sets(repo.unfiltered()) for phase in trackedphases: if rev in self._phasesets[phase]: return phase