comparison mercurial/revset.py @ 50421:92f71d40fc1d

revset: include all non-public phases in _notpublic We forgot up to update this when new phases were added.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 07 Mar 2023 04:50:29 +0100
parents 1bd33932713d
children 386737600689
comparison
equal deleted inserted replaced
50420:db6d210e9618 50421:92f71d40fc1d
2059 2059
2060 # for internal use 2060 # for internal use
2061 @predicate(b'_notpublic', safe=True) 2061 @predicate(b'_notpublic', safe=True)
2062 def _notpublic(repo, subset, x): 2062 def _notpublic(repo, subset, x):
2063 getargs(x, 0, 0, b"_notpublic takes no arguments") 2063 getargs(x, 0, 0, b"_notpublic takes no arguments")
2064 return _phase(repo, subset, phases.draft, phases.secret) 2064 return _phase(repo, subset, *phases.not_public_phases)
2065 2065
2066 2066
2067 # for internal use 2067 # for internal use
2068 @predicate(b'_phaseandancestors(phasename, set)', safe=True) 2068 @predicate(b'_phaseandancestors(phasename, set)', safe=True)
2069 def _phaseandancestors(repo, subset, x): 2069 def _phaseandancestors(repo, subset, x):