tests/test-ssh.t
branchstable
changeset 48796 c00d3ce4e94b
parent 48649 a746d13987a6
child 48874 af0b21d5a930
equal deleted inserted replaced
48776:b84ff512b645 48796:c00d3ce4e94b
     1 #testcases sshv1 sshv2
       
     2 
       
     3 #if sshv2
       
     4   $ cat >> $HGRCPATH << EOF
       
     5   > [experimental]
       
     6   > sshpeer.advertise-v2 = true
       
     7   > sshserver.support-v2 = true
       
     8   > EOF
       
     9 #endif
       
    10 
       
    11 This test tries to exercise the ssh functionality with a dummy script
     1 This test tries to exercise the ssh functionality with a dummy script
    12 
     2 
    13 creating 'remote' repo
     3 creating 'remote' repo
    14 
     4 
    15   $ hg init remote
     5   $ hg init remote
   535 debug output
   525 debug output
   536 
   526 
   537   $ hg pull --debug ssh://user@dummy/remote --config devel.debug.peer-request=yes
   527   $ hg pull --debug ssh://user@dummy/remote --config devel.debug.peer-request=yes
   538   pulling from ssh://user@dummy/remote
   528   pulling from ssh://user@dummy/remote
   539   running .* ".*[/\\]dummyssh" ['"]user@dummy['"] ['"]hg -R remote serve --stdio['"] (re)
   529   running .* ".*[/\\]dummyssh" ['"]user@dummy['"] ['"]hg -R remote serve --stdio['"] (re)
   540   sending upgrade request: * proto=exp-ssh-v2-0003 (glob) (sshv2 !)
       
   541   devel-peer-request: hello+between
   530   devel-peer-request: hello+between
   542   devel-peer-request:   pairs: 81 bytes
   531   devel-peer-request:   pairs: 81 bytes
   543   sending hello command
   532   sending hello command
   544   sending between command
   533   sending between command
   545   remote: 444 (sshv1 no-rust !)
   534   remote: \d+ (re)
   546   remote: 463 (sshv1 rust !)
   535   remote: capabilities: batch branchmap \$USUAL_BUNDLE2_CAPS\$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=[^ ,]+(,[^ ,]+)* unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (re)
   547   protocol upgraded to exp-ssh-v2-0003 (sshv2 !)
   536   remote: 1
   548   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-rust !)
       
   549   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,persistent-nodemap,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (rust !)
       
   550   remote: 1 (sshv1 !)
       
   551   devel-peer-request: protocaps
   537   devel-peer-request: protocaps
   552   devel-peer-request:   caps: * bytes (glob)
   538   devel-peer-request:   caps: * bytes (glob)
   553   sending protocaps command
   539   sending protocaps command
   554   query 1; heads
   540   query 1; heads
   555   devel-peer-request: batched-content
   541   devel-peer-request: batched-content