Skip to content
Snippets Groups Projects
Commit bc15e37ecc16 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

repoview: fix conditional around unserved changesets

The conditional could lead to wrong computation since we have more unserved
changesets than just the "secret" phase.

In addition, now that we have efficient caching of phased changesets, we don't
need the conditional anymore.
parent d6437f414437
No related branches found
No related tags found
No related merge requests found
......@@ -93,8 +93,8 @@
assert not repo.changelog.filteredrevs
# fast path in simple case to avoid impact of non optimised code
hiddens = filterrevs(repo, 'visible')
if phases.hassecret(repo):
secrets = repo._phasecache.getrevset(repo, phases.remotehiddenphases)
secrets = repo._phasecache.getrevset(repo, phases.remotehiddenphases)
if secrets:
return frozenset(hiddens | frozenset(secrets))
else:
return hiddens
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment