--- a/tests/test-ssh-proto.t Tue Feb 27 14:56:03 2018 -0800
+++ b/tests/test-ssh-proto.t Tue Feb 27 15:06:10 2018 -0800
@@ -1273,6 +1273,33 @@
e> malformed handshake protocol: missing pairs 81\n
e> -\n
+Legacy commands are not exposed to version 2 of protocol
+
+ $ hg --config experimental.sshpeer.advertise-v2=true debugwireproto --localssh << EOF
+ > command branches
+ > nodes 0000000000000000000000000000000000000000
+ > EOF
+ creating ssh peer from handshake results
+ sending branches command
+ response:
+
+ $ hg --config experimental.sshpeer.advertise-v2=true debugwireproto --localssh << EOF
+ > command changegroup
+ > roots 0000000000000000000000000000000000000000
+ > EOF
+ creating ssh peer from handshake results
+ sending changegroup command
+ response:
+
+ $ hg --config experimental.sshpeer.advertise-v2=true debugwireproto --localssh << EOF
+ > command changegroupsubset
+ > bases 0000000000000000000000000000000000000000
+ > heads 0000000000000000000000000000000000000000
+ > EOF
+ creating ssh peer from handshake results
+ sending changegroupsubset command
+ response:
+
$ cd ..
Test listkeys for listing namespaces