equal
deleted
inserted
replaced
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 |