Read about our upcoming Code of Conduct on this issue

Commit 125d674f authored by Jörg Sonnenberger's avatar Jörg Sonnenberger
Browse files

repoview: use the phasecache directly to determine mutable revisions

This speeds up no-change updates from 1.3s to 0.85s for my NetBSD test
repository.

Differential Revision: https://phab.mercurial-scm.org/D8670
parent e2d17974a869
......@@ -130,9 +130,7 @@ def computemutable(repo, visibilityexceptions=None):
assert not repo.changelog.filteredrevs
# fast check to avoid revset call on huge repo
if repo._phasecache.hasnonpublicphases(repo):
getphase = repo._phasecache.phase
maymutable = filterrevs(repo, b'base')
return frozenset(r for r in maymutable if getphase(repo, r))
return frozenset(repo._phasecache.getrevset(repo, phases.mutablephases))
return frozenset()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment