Mercurial > hg
comparison mercurial/repoview.py @ 38157: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 | 5b592ac502ef |
children | 4e790f0966fc |
comparison
equal
deleted
inserted
replaced
38156:5b592ac502ef | 38157:02f992ac26e9 |
---|---|
75 if hidden: | 75 if hidden: |
76 hidden = set(hidden - pinnedrevs(repo)) | 76 hidden = set(hidden - pinnedrevs(repo)) |
77 if visibilityexceptions: | 77 if visibilityexceptions: |
78 hidden -= visibilityexceptions | 78 hidden -= visibilityexceptions |
79 pfunc = repo.changelog.parentrevs | 79 pfunc = repo.changelog.parentrevs |
80 mutablephases = (phases.draft, phases.secret) | 80 mutable = repo._phasecache.getrevset(repo, phases.mutablephases) |
81 mutable = repo._phasecache.getrevset(repo, mutablephases) | |
82 | 81 |
83 visible = mutable - hidden | 82 visible = mutable - hidden |
84 _revealancestors(pfunc, hidden, visible) | 83 _revealancestors(pfunc, hidden, visible) |
85 return frozenset(hidden) | 84 return frozenset(hidden) |
86 | 85 |