diff 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
line wrap: on
line diff
--- a/mercurial/revset.py	Thu Mar 02 04:11:29 2023 +0100
+++ b/mercurial/revset.py	Tue Mar 07 04:50:29 2023 +0100
@@ -2061,7 +2061,7 @@
 @predicate(b'_notpublic', safe=True)
 def _notpublic(repo, subset, x):
     getargs(x, 0, 0, b"_notpublic takes no arguments")
-    return _phase(repo, subset, phases.draft, phases.secret)
+    return _phase(repo, subset, *phases.not_public_phases)
 
 
 # for internal use