mercurial/repoview.py
changeset 18274 254b708fd37d
parent 18273 a2d54f68e13c
child 18293 1f35d6737ed8
equal deleted inserted replaced
18273:a2d54f68e13c 18274:254b708fd37d
    56 
    56 
    57     Secret and hidden changeset should not pretend to be here."""
    57     Secret and hidden changeset should not pretend to be here."""
    58     assert not repo.changelog.filteredrevs
    58     assert not repo.changelog.filteredrevs
    59     # fast check to avoid revset call on huge repo
    59     # fast check to avoid revset call on huge repo
    60     if util.any(repo._phasecache.phaseroots[1:]):
    60     if util.any(repo._phasecache.phaseroots[1:]):
    61         return frozenset(repo.revs('draft() + secret()'))
    61         getphase = repo._phasecache.phase
       
    62         maymutable = filteredrevs(repo, 'impactable')
       
    63         return frozenset(r for r in maymutable if getphase(repo, r))
    62     return frozenset()
    64     return frozenset()
    63 
    65 
    64 def computeimpactable(repo):
    66 def computeimpactable(repo):
    65     """Everything impactable by mutable revision
    67     """Everything impactable by mutable revision
    66 
    68