Mercurial > hg
comparison mercurial/repoview.py @ 38158:4e790f0966fc
phases: define an official tuple of phases we do not share
Same motivation as for `mutablephases`, having a single definition helps with
updating phases logic.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 22 May 2018 18:10:37 +0200 |
parents | 02f992ac26e9 |
children | e7aa113b14f7 |
comparison
equal
deleted
inserted
replaced
38157:02f992ac26e9 | 38158:4e790f0966fc |
---|---|
89 Secret and hidden changeset should not pretend to be here.""" | 89 Secret and hidden changeset should not pretend to be here.""" |
90 assert not repo.changelog.filteredrevs | 90 assert not repo.changelog.filteredrevs |
91 # fast path in simple case to avoid impact of non optimised code | 91 # fast path in simple case to avoid impact of non optimised code |
92 hiddens = filterrevs(repo, 'visible') | 92 hiddens = filterrevs(repo, 'visible') |
93 if phases.hassecret(repo): | 93 if phases.hassecret(repo): |
94 secrets = frozenset(repo._phasecache.getrevset(repo, (phases.secret,))) | 94 secrets = repo._phasecache.getrevset(repo, phases.remotehiddenphases) |
95 return frozenset(hiddens | secrets) | 95 return frozenset(hiddens | frozenset(secrets)) |
96 else: | 96 else: |
97 return hiddens | 97 return hiddens |
98 | 98 |
99 def computemutable(repo, visibilityexceptions=None): | 99 def computemutable(repo, visibilityexceptions=None): |
100 assert not repo.changelog.filteredrevs | 100 assert not repo.changelog.filteredrevs |