changeset 51407:71ae6fee2b9d

phases: fast path retract of public phase There are no boundary to retract, so lets do nothing.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 21 Feb 2024 15:24:22 +0100
parents f8bf1a8e9181
children 330d74750668
files mercurial/phases.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/phases.py	Tue Feb 20 21:40:13 2024 +0100
+++ b/mercurial/phases.py	Wed Feb 21 15:24:22 2024 +0100
@@ -674,6 +674,8 @@
         repo.invalidatevolatilesets()
 
     def _retractboundary(self, repo, tr, targetphase, nodes=None, revs=None):
+        if targetphase == public:
+            return False
         # Be careful to preserve shallow-copied values: do not update
         # phaseroots values, replace them.
         if revs is None: