mercurial/repoview.py
changeset 25149 3f0744eeaeaf
parent 25086 140c2d1e57e7
child 25972 f279191124f3
equal deleted inserted replaced
25148:3b5cd6f13dcc 25149:3f0744eeaeaf
   194     """compute the set of revision that should be filtered when used a server
   194     """compute the set of revision that should be filtered when used a server
   195 
   195 
   196     Secret and hidden changeset should not pretend to be here."""
   196     Secret and hidden changeset should not pretend to be here."""
   197     assert not repo.changelog.filteredrevs
   197     assert not repo.changelog.filteredrevs
   198     # fast check to avoid revset call on huge repo
   198     # fast check to avoid revset call on huge repo
   199     if util.any(repo._phasecache.phaseroots[1:]):
   199     if any(repo._phasecache.phaseroots[1:]):
   200         getphase = repo._phasecache.phase
   200         getphase = repo._phasecache.phase
   201         maymutable = filterrevs(repo, 'base')
   201         maymutable = filterrevs(repo, 'base')
   202         return frozenset(r for r in maymutable if getphase(repo, r))
   202         return frozenset(r for r in maymutable if getphase(repo, r))
   203     return frozenset()
   203     return frozenset()
   204 
   204