wireproto: provide accessors for client capabilities
For HTTP, this refactors the existing logic, including the parsing of the compression engine capability. For SSH, this adds a ssh-only capability "protocaps" and a command for informing the server on what the client supports. Since SSH is stateful, keep track of the capabilities in the server instance. Differential Revision: https://phab.mercurial-scm.org/D1944
Showing
- mercurial/help/internals/wireprotocol.txt 21 additions, 0 deletionsmercurial/help/internals/wireprotocol.txt
- mercurial/sshpeer.py 23 additions, 1 deletionmercurial/sshpeer.py
- mercurial/wireproto.py 19 additions, 0 deletionsmercurial/wireproto.py
- mercurial/wireprotoserver.py 21 additions, 11 deletionsmercurial/wireprotoserver.py
- mercurial/wireprototypes.py 6 additions, 0 deletionsmercurial/wireprototypes.py
- tests/test-debugcommands.t 5 additions, 2 deletionstests/test-debugcommands.t
- tests/test-ssh-bundle1.t 3 additions, 2 deletionstests/test-ssh-bundle1.t
- tests/test-ssh-proto-unbundle.t 75 additions, 75 deletionstests/test-ssh-proto-unbundle.t
- tests/test-ssh-proto.t 162 additions, 140 deletionstests/test-ssh-proto.t
- tests/test-ssh.t 5 additions, 2 deletionstests/test-ssh.t
Loading
Please register or sign in to comment