( )⚙ D4776 wireprotov2: client support for advertising redirect targets

This is an archive of the discontinued Mercurial Phabricator instance.

wireprotov2: client support for advertising redirect targets
ClosedPublic

Authored by indygreg on Sep 26 2018, 9:09 PM.

Details

Summary

With the server now able to emit a redirect target descriptor, we can
start to teach the client to recognize it.

This commit implements support for filtering the advertised
redirect targets against supported features and for advertising
compatible redirect targets as part of command requests. It also
adds the minimal boilerplate required to fail when a content
redirect is seen.

The server doesn't yet do anything with the advertised redirect
targets. And the client can't yet follow redirects if it did. But
at least we're putting bytes on the wire.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped