Mercurial > public > mercurial-scm > hg-stable
diff mercurial/phases.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 | 3118766266ae |
children | 4e790f0966fc |
line wrap: on
line diff
--- a/mercurial/phases.py Mon May 21 17:33:50 2018 +0200 +++ b/mercurial/phases.py Tue May 22 18:10:00 2018 +0200 @@ -126,6 +126,7 @@ allphases = public, draft, secret = range(3) trackedphases = allphases[1:] phasenames = ['public', 'draft', 'secret'] +mutablephases = tuple(allphases[1:]) def _readroots(repo, phasedefaults=None): """Read phase roots from disk