# HG changeset patch # User Pierre-Yves David # Date 2015-06-15 23:16:02 # Node ID 97528adbf74b30335b67cc21d88046d58fa564af # Parent d89045a66e01c2076ec60f3f0b808de045690070 revset: ensure we have loaded phases data in '_notpublic()' If we are the very first rev access (or if the phase cache just got invalidated) the phasesets will be None even if we support the native computation. So we explicitly trigger a computation if needed. This was not an issue before because requesting any phase information would have triggered such computation. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -1513,6 +1513,7 @@ def present(repo, subset, x): # for internal use def _notpublic(repo, subset, x): getargs(x, 0, 0, "_notpublic takes no arguments") + repo._phasecache.loadphaserevs(repo) # ensure phase's sets are loaded if repo._phasecache._phasesets: s = set() for u in repo._phasecache._phasesets[1:]: