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

phases: introduce a performant efficient way to access revision in a set

This will be useful in the next changesets.
parent 821c45fec2c4
No related branches found
No related tags found
No related merge requests found
......@@ -414,6 +414,27 @@
]
)
def get_raw_set(
self,
repo: "localrepo.localrepository",
phase: int,
) -> Set[int]:
"""return the set of revision in that phase
The returned set is not filtered and might contains revision filtered
for the passed repoview.
The returned set might be the internal one and MUST NOT be mutated to
avoid side effect.
"""
if phase == public:
raise error.ProgrammingError("cannot get_set for public phase")
self._ensure_phase_sets(repo.unfiltered())
revs = self._phasesets.get(phase)
if revs is None:
return set()
return revs
def getrevset(
self,
repo: "localrepo.localrepository",
......
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