This is an archive of the discontinued Mercurial Phabricator instance.

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

Authored by indygreg on Jan 20 2018, 7:44 PM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Jan 20 2018, 7:44 PM
lothiraldan accepted this revision.Jan 22 2018, 10:54 AM
indygreg updated this revision to Diff 4987.Jan 22 2018, 3:32 PM
durin42 accepted this revision.Jan 22 2018, 4:10 PM
This revision is now accepted and ready to land.Jan 22 2018, 4:10 PM
This revision was automatically updated to reflect the committed changes.