This is an archive of the discontinued Mercurial Phabricator instance.

wireproto: move version 2 command handlers to wireprotov2server
ClosedPublic

Authored by indygreg on Apr 10 2018, 9:28 PM.

Details

Summary

This is relatively straightforward.

As part of this, we introduced a local @wireprotocommand that
wraps the main one and defines a v2 only policy by default.

Because the hacky HTTPv2 peer isn't using capabilities response
yet, we had to move some code around to force import of
wireprotov2server so commands are registered. This is super
hacky. But this code will go away once the HTTPv2 peer is using
the capabilities response to derive permissions.

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 10 2018, 9:28 PM
durin42 accepted this revision.Apr 11 2018, 12:37 PM
This revision is now accepted and ready to land.Apr 11 2018, 12:37 PM
This revision was automatically updated to reflect the committed changes.