comparison mercurial/phases.py @ 51408:330d74750668

phases: fast path public phase advance when everything is public Everything is already public, so we have nothing to do here.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 22 Feb 2024 15:49:21 +0100
parents 71ae6fee2b9d
children 2f39c7aeb549
comparison
equal deleted inserted replaced
51407:71ae6fee2b9d 51408:330d74750668
595 595
596 If dryrun is True, no actions will be performed 596 If dryrun is True, no actions will be performed
597 597
598 Returns a set of revs whose phase is changed or should be changed 598 Returns a set of revs whose phase is changed or should be changed
599 """ 599 """
600 if targetphase == public and not self.hasnonpublicphases(repo):
601 return set()
600 # Be careful to preserve shallow-copied values: do not update 602 # Be careful to preserve shallow-copied values: do not update
601 # phaseroots values, replace them. 603 # phaseroots values, replace them.
602 if revs is None: 604 if revs is None:
603 revs = [] 605 revs = []
604 if not revs and not nodes: 606 if not revs and not nodes: