This is an archive of the discontinued Mercurial Phabricator instance.

wireproto: add media type to version 2 capabilities response
ClosedPublic

Authored by indygreg on Apr 12 2018, 3:59 PM.

Details

Summary

This is useful to advertise because servers reject unsupported
media types. A client may wish to speak multiple media types and
choose the one the server supports.

I doubt we'll ever use multiple media types or negotiation in core.
But during the course of developing this protocol, I may end up
making extensions that backport and forward port protocol support
as needed to support Mercurial deploys in the wild. e.g. I may
deploy support for an older protocol on a server so old clients
can continue using it.

It's worth pursuing changing the SSH protocol's upgrade mechanism
to support multiple media types as well...

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Apr 12 2018, 3:59 PM
durin42 accepted this revision.Apr 13 2018, 6:06 PM
This revision is now accepted and ready to land.Apr 13 2018, 6:06 PM
This revision was automatically updated to reflect the committed changes.