# HG changeset patch # User Pierre-Yves David # Date 2024-02-22 14:49:21 # Node ID 330d747506684f79c73b8f052c3600490a396df0 # Parent 71ae6fee2b9da09cacff17eadbf3bbc1f753298b phases: fast path public phase advance when everything is public Everything is already public, so we have nothing to do here. diff --git a/mercurial/phases.py b/mercurial/phases.py --- a/mercurial/phases.py +++ b/mercurial/phases.py @@ -597,6 +597,8 @@ class phasecache: Returns a set of revs whose phase is changed or should be changed """ + if targetphase == public and not self.hasnonpublicphases(repo): + return set() # Be careful to preserve shallow-copied values: do not update # phaseroots values, replace them. if revs is None: