Skip to content
Snippets Groups Projects
Commit c1b9eb15a51c authored by Gregory Szorc's avatar Gregory Szorc
Browse files

bundle2: don't advertise stream bundle2 capability when feature disabled

The server.uncompressed config option can be used to disable streaming
clones. While the top-level capability to advertise streaming clone
support isn't advertised when this option is set, we were still sending
the bundle2-level capabilities advertising support for stream parts.
It makes sense to not advertise that support when streaming clones
are globally disabled.

If the structure of the new code seems a bit odd, it is because we'll
have to further tweak the behavior in commit(s) ahead.

Differential Revision: https://phab.mercurial-scm.org/D1929
parent 8ed5f7609728
No related branches found
No related tags found
No related merge requests found
Loading
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