# HG changeset patch # User Pierre-Yves David # Date 2023-03-07 03:50:29 # Node ID 92f71d40fc1d219b047eb0cdef533d66b5a3891c # Parent db6d210e961828a1b4e1188fd6a07f2e7a7cab05 revset: include all non-public phases in _notpublic We forgot up to update this when new phases were added. diff --git a/mercurial/phases.py b/mercurial/phases.py --- a/mercurial/phases.py +++ b/mercurial/phases.py @@ -154,6 +154,7 @@ archived = 32 # non-continuous for comp internal = 96 # non-continuous for compatibility allphases = (public, draft, secret, archived, internal) trackedphases = (draft, secret, archived, internal) +not_public_phases = trackedphases # record phase names cmdphasenames = [b'public', b'draft', b'secret'] # known to `hg phase` command phasenames = dict(enumerate(cmdphasenames)) diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -2061,7 +2061,7 @@ def present(repo, subset, x, order): @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