Skip to content

fix(rev_store): only negotiate with relevant tips#13698

Open
Alizter wants to merge 2 commits intoocaml:mainfrom
Alizter:push-ukxyzqyspvrk
Open

fix(rev_store): only negotiate with relevant tips#13698
Alizter wants to merge 2 commits intoocaml:mainfrom
Alizter:push-ukxyzqyspvrk

Conversation

@Alizter
Copy link
Collaborator

@Alizter Alizter commented Mar 1, 2026

As discussed in #13671, we restrict how we negotiate from the rev_store to a server to use only the relevant tips.

This is done by name spacing the recorded references by (the hash of) their URL. This way we can provide only the relevant references during negotiation.

This should both speed up negotiation (and hence downloads) and avoid unnecessary communication of rev_store contents.

--negotiation-tip is an argument that was introduced in the minimum supported Git version that we currently have.

I've updated the doc/dev/rev_store.md about this new behaviour.

Signed-off-by: Ali Caglayan <alizter@gmail.com>
Copy link
Contributor

@shym shym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, thank you!

This ensures that the reference subdirectories remain readable.

Signed-off-by: Ali Caglayan <alizter@gmail.com>
@Alizter Alizter force-pushed the push-ukxyzqyspvrk branch from 4e5fce5 to a50902d Compare March 2, 2026 14:46
@Alizter Alizter requested a review from rgrinberg March 2, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rev_store: negotiate only with relevant tips

3 participants