( )⚙ D3256 httppeer: basic implementation of capabilities interface

This is an archive of the discontinued Mercurial Phabricator instance.

httppeer: basic implementation of capabilities interface
ClosedPublic

Authored by indygreg on Apr 11 2018, 7:42 PM.

Details

Summary

This is a bit crude. The capabilities mechanism for version 2 of
the wire protocol is a bit different from version 1. And code
in core is relying on strings passed to capable() matching strings
advertised by the "capabilities" wire protocol command. I may
refactor the internal checking mechanism to be a bit more
abstract or based on interfaces. Time will tell...

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