comparison tests/test-ssh.t @ 30568:e118233172fe

wireproto: only advertise HTTP-specific capabilities to HTTP peers (BC) Previously, the capabilities list was protocol agnostic and we advertised the same capabilities list to all clients, regardless of transport protocol. A few capabilities are specific to HTTP. I see no good reason why we should advertise them to SSH clients. So this patch limits their advertisement to HTTP clients. This patch is BC, but SSH clients shouldn't be using the removed capabilities so there should be no impact.
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 28 Nov 2016 20:46:42 -0800
parents ad56204f733e
children f3807a135e43
comparison
equal deleted inserted replaced
30567:b3a9ef3d30e8 30568:e118233172fe
465 $ hg pull --debug ssh://user@dummy/remote 465 $ hg pull --debug ssh://user@dummy/remote
466 pulling from ssh://user@dummy/remote 466 pulling from ssh://user@dummy/remote
467 running python ".*/dummyssh" user@dummy ('|")hg -R remote serve --stdio('|") (re) 467 running python ".*/dummyssh" user@dummy ('|")hg -R remote serve --stdio('|") (re)
468 sending hello command 468 sending hello command
469 sending between command 469 sending between command
470 remote: 371 470 remote: 355
471 remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 471 remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN
472 remote: 1 472 remote: 1
473 query 1; heads 473 query 1; heads
474 sending batch command 474 sending batch command
475 searching for changes 475 searching for changes
476 all remote heads known locally 476 all remote heads known locally