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

phases: avoid a `heads` call when computing remote draft heads

The heads can only be in the initial heads, so we can speed things up a bit.

It is unclear if it actually makes a difference, but lets benchmarks.
parent fbf3cf982d30
No related tags found
No related merge requests found
......@@ -1177,7 +1177,12 @@
self.public_heads: Collection[int] = heads
self.draft_roots: Collection[int] = roots
# Get the list of all "heads" revs draft on remote
dheads = unfi.revs(b'heads(%ld::%ld)', roots, remote_subset)
dheads = unfi.revs(
b'%ld and %ld::%ld',
remote_subset,
roots,
remote_subset,
)
self.draft_heads: Collection[int] = dheads
......
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