This is an archive of the discontinued Mercurial Phabricator instance.

wireprotov2: expose rich arguments metadata
ClosedPublic

Authored by indygreg on Sep 17 2018, 5:24 PM.

Details

Summary

Now that we internally store rich metadata about arguments, it makes
sense to make that metadata available to the client. This will allow
clients to validate outgoing command requests before they are sent
over the wire.

Strictly speaking, we should bump the wire protocol version for this
change since it is backwards incompatible. But no client-side code
touches the arguments map and I don't want to incur the work.

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.