Mercurial > public > mercurial-scm > hg-stable
diff mercurial/obsolete.py @ 38190:02f992ac26e9
phases: define an official tuple of mutable phases
Such tuple was already manually defined in a couple of place. Having an
official definition makes it easy to introduce of new phases.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 22 May 2018 18:10:00 +0200 |
parents | d30810d09d6f |
children | 6b5ca1d0aa1e |
line wrap: on
line diff
--- a/mercurial/obsolete.py Mon May 21 17:33:50 2018 +0200 +++ b/mercurial/obsolete.py Tue May 22 18:10:00 2018 +0200 @@ -853,7 +853,7 @@ def _mutablerevs(repo): """the set of mutable revision in the repository""" - return repo._phasecache.getrevset(repo, (phases.draft, phases.secret)) + return repo._phasecache.getrevset(repo, phases.mutablephases) @cachefor('obsolete') def _computeobsoleteset(repo):