This is an archive of the discontinued Mercurial Phabricator instance.

wireprotov2: always advertise raw repo requirements
ClosedPublic

Authored by indygreg on Oct 3 2018, 2:13 PM.

Details

Summary

I'm pretty sure my original thinking behind making it conditional
on stream clone support was that the behavior mirrored wire protocol
version 1.

I don't see a compelling reason for us to not advertise the server's
storage requirements. The proper way to advertise stream clone support
in wireprotov2 would be to not advertise the command(s) required to
perform stream clone or to advertise a separate capability denoting
stream clone support.

Stream clone isn't yet implemented on wireprotov2, so we can cross
this bridge later.

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.Oct 3 2018, 2:13 PM

I don't see a compelling reason for us to not advertise the server's storage requirements.

I don't see much harm in it either, but it also seems like most of the requirements should not matter to the client. I feel like it would be better to explicitly expose requirements that the client needs to care about.

This revision was automatically updated to reflect the committed changes.