tests/test-ssh-proto.t
changeset 36076 465858451347
parent 35989 c64b9adfb371
child 36215 464bedc0fdb4
equal deleted inserted replaced
36075:ac33dc94e1d5 36076:465858451347
   391   0
   391   0
   392   0
   392   0
   393   0
   393   0
   394   0
   394   0
   395   0
   395   0
       
   396 
       
   397 Send a valid command before the handshake
       
   398 
       
   399   $ hg -R server serve --stdio << EOF
       
   400   > heads
       
   401   > hello
       
   402   > between
       
   403   > pairs 81
       
   404   > 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
       
   405   > EOF
       
   406   41
       
   407   68986213bd4485ea51533535e3fc9e78007a711f
       
   408   384
       
   409   capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
       
   410   1
       
   411   
       
   412 
       
   413 And a variation that doesn't send the between command
       
   414 
       
   415   $ hg -R server serve --stdio << EOF
       
   416   > heads
       
   417   > hello
       
   418   > EOF
       
   419   41
       
   420   68986213bd4485ea51533535e3fc9e78007a711f
       
   421   384
       
   422   capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
   396 
   423 
   397 Send an upgrade request to a server that doesn't support that command
   424 Send an upgrade request to a server that doesn't support that command
   398 
   425 
   399   $ hg -R server serve --stdio << EOF
   426   $ hg -R server serve --stdio << EOF
   400   > upgrade 2e82ab3f-9ce3-4b4e-8f8c-6fd1c0e9e23a proto=irrelevant1%2Cirrelevant2
   427   > upgrade 2e82ab3f-9ce3-4b4e-8f8c-6fd1c0e9e23a proto=irrelevant1%2Cirrelevant2