Mercurial > hg
comparison tests/test-ssh.t @ 37393:afcfdf53e4b5
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
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Sat, 24 Mar 2018 17:57:22 +0100 |
parents | 36b2a304216c |
children | 33af46d639b4 |
comparison
equal
deleted
inserted
replaced
37392:a4f02a17420d | 37393:afcfdf53e4b5 |
---|---|
493 devel-peer-request: hello | 493 devel-peer-request: hello |
494 sending hello command | 494 sending hello command |
495 devel-peer-request: between | 495 devel-peer-request: between |
496 devel-peer-request: pairs: 81 bytes | 496 devel-peer-request: pairs: 81 bytes |
497 sending between command | 497 sending between command |
498 remote: 403 (sshv1 !) | 498 remote: 413 (sshv1 !) |
499 protocol upgraded to exp-ssh-v2-0001 (sshv2 !) | 499 protocol upgraded to exp-ssh-v2-0001 (sshv2 !) |
500 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch | 500 remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch |
501 remote: 1 (sshv1 !) | 501 remote: 1 (sshv1 !) |
502 devel-peer-request: protocaps | |
503 devel-peer-request: caps: * bytes (glob) | |
504 sending protocaps command | |
502 query 1; heads | 505 query 1; heads |
503 devel-peer-request: batched-content | 506 devel-peer-request: batched-content |
504 devel-peer-request: - heads (0 arguments) | 507 devel-peer-request: - heads (0 arguments) |
505 devel-peer-request: - known (1 arguments) | 508 devel-peer-request: - known (1 arguments) |
506 devel-peer-request: batch | 509 devel-peer-request: batch |