tests/test-ssh-proto.t
changeset 37413 33af46d639b4
parent 37393 afcfdf53e4b5
child 37533 df4985497986
equal deleted inserted replaced
37412:1d459f61b42a 37413:33af46d639b4
    62   sending hello command
    62   sending hello command
    63   devel-peer-request: between
    63   devel-peer-request: between
    64   devel-peer-request:   pairs: 81 bytes
    64   devel-peer-request:   pairs: 81 bytes
    65   sending between command
    65   sending between command
    66   remote: 413
    66   remote: 413
    67   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
    67   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
    68   remote: 1
    68   remote: 1
    69   devel-peer-request: protocaps
    69   devel-peer-request: protocaps
    70   devel-peer-request:   caps: * bytes (glob)
    70   devel-peer-request:   caps: * bytes (glob)
    71   sending protocaps command
    71   sending protocaps command
    72   url: ssh://user@dummy/server
    72   url: ssh://user@dummy/server
    85   i> write(6) -> 6:
    85   i> write(6) -> 6:
    86   i>     hello\n
    86   i>     hello\n
    87   o> readline() -> 4:
    87   o> readline() -> 4:
    88   o>     413\n
    88   o>     413\n
    89   o> readline() -> 413:
    89   o> readline() -> 413:
    90   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
    90   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
    91 
    91 
    92 `hg debugserve --sshstdio` works
    92 `hg debugserve --sshstdio` works
    93 
    93 
    94   $ cd server
    94   $ cd server
    95   $ hg debugserve --sshstdio << EOF
    95   $ hg debugserve --sshstdio << EOF
    96   > hello
    96   > hello
    97   > EOF
    97   > EOF
    98   413
    98   413
    99   capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
    99   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   100 
   100 
   101 I/O logging works
   101 I/O logging works
   102 
   102 
   103   $ hg debugserve --sshstdio --logiofd 1 << EOF
   103   $ hg debugserve --sshstdio --logiofd 1 << EOF
   104   > hello
   104   > hello
   105   > EOF
   105   > EOF
   106   o> write(4) -> 4:
   106   o> write(4) -> 4:
   107   o>     413\n
   107   o>     413\n
   108   o> write(413) -> 413:
   108   o> write(413) -> 413:
   109   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   109   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   110   413
   110   413
   111   capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
   111   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   112   o> flush() -> None
   112   o> flush() -> None
   113 
   113 
   114   $ hg debugserve --sshstdio --logiofile $TESTTMP/io << EOF
   114   $ hg debugserve --sshstdio --logiofile $TESTTMP/io << EOF
   115   > hello
   115   > hello
   116   > EOF
   116   > EOF
   117   413
   117   413
   118   capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
   118   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   119 
   119 
   120   $ cat $TESTTMP/io
   120   $ cat $TESTTMP/io
   121   o> write(4) -> 4:
   121   o> write(4) -> 4:
   122   o>     413\n
   122   o>     413\n
   123   o> write(413) -> 413:
   123   o> write(413) -> 413:
   124   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   124   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   125   o> flush() -> None
   125   o> flush() -> None
   126 
   126 
   127   $ cd ..
   127   $ cd ..
   128 
   128 
   129 >=0.9.1 clients send a "hello" + "between" for the null range as part of handshake.
   129 >=0.9.1 clients send a "hello" + "between" for the null range as part of handshake.
   146   i> write(6) -> 6:
   146   i> write(6) -> 6:
   147   i>     hello\n
   147   i>     hello\n
   148   o> readline() -> 4:
   148   o> readline() -> 4:
   149   o>     413\n
   149   o>     413\n
   150   o> readline() -> 413:
   150   o> readline() -> 413:
   151   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   151   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   152   i> write(98) -> 98:
   152   i> write(98) -> 98:
   153   i>     between\n
   153   i>     between\n
   154   i>     pairs 81\n
   154   i>     pairs 81\n
   155   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   155   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   156   o> readline() -> 2:
   156   o> readline() -> 2:
   184   remote: banner: line 6
   184   remote: banner: line 6
   185   remote: banner: line 7
   185   remote: banner: line 7
   186   remote: banner: line 8
   186   remote: banner: line 8
   187   remote: banner: line 9
   187   remote: banner: line 9
   188   remote: 413
   188   remote: 413
   189   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
   189   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   190   remote: 1
   190   remote: 1
   191   devel-peer-request: protocaps
   191   devel-peer-request: protocaps
   192   devel-peer-request:   caps: * bytes (glob)
   192   devel-peer-request:   caps: * bytes (glob)
   193   sending protocaps command
   193   sending protocaps command
   194   url: ssh://user@dummy/server
   194   url: ssh://user@dummy/server
   243   o> readline() -> 15:
   243   o> readline() -> 15:
   244   o>     banner: line 9\n
   244   o>     banner: line 9\n
   245   o> readline() -> 4:
   245   o> readline() -> 4:
   246   o>     413\n
   246   o>     413\n
   247   o> readline() -> 413:
   247   o> readline() -> 413:
   248   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   248   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   249   i> write(98) -> 98:
   249   i> write(98) -> 98:
   250   i>     between\n
   250   i>     between\n
   251   i>     pairs 81\n
   251   i>     pairs 81\n
   252   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   252   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   253   o> readline() -> 2:
   253   o> readline() -> 2:
   300   i> write(98) -> 98:
   300   i> write(98) -> 98:
   301   i>     between\n
   301   i>     between\n
   302   i>     pairs 81\n
   302   i>     pairs 81\n
   303   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   303   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   304   o> readline() -> 413:
   304   o> readline() -> 413:
   305   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   305   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   306   o> readline() -> 2:
   306   o> readline() -> 2:
   307   o>     1\n
   307   o>     1\n
   308 
   308 
   309   $ hg --config sshpeer.mode=extra-handshake-commands --config sshpeer.handshake-mode=pre-no-args --debug debugpeer ssh://user@dummy/server
   309   $ hg --config sshpeer.mode=extra-handshake-commands --config sshpeer.handshake-mode=pre-no-args --debug debugpeer ssh://user@dummy/server
   310   running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !)
   310   running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !)
   315   devel-peer-request: between
   315   devel-peer-request: between
   316   devel-peer-request:   pairs: 81 bytes
   316   devel-peer-request:   pairs: 81 bytes
   317   sending between command
   317   sending between command
   318   remote: 0
   318   remote: 0
   319   remote: 413
   319   remote: 413
   320   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
   320   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   321   remote: 1
   321   remote: 1
   322   devel-peer-request: protocaps
   322   devel-peer-request: protocaps
   323   devel-peer-request:   caps: * bytes (glob)
   323   devel-peer-request:   caps: * bytes (glob)
   324   sending protocaps command
   324   sending protocaps command
   325   url: ssh://user@dummy/server
   325   url: ssh://user@dummy/server
   365   i> write(6) -> 6:
   365   i> write(6) -> 6:
   366   i>     hello\n
   366   i>     hello\n
   367   o> readline() -> 4:
   367   o> readline() -> 4:
   368   o>     413\n
   368   o>     413\n
   369   o> readline() -> 413:
   369   o> readline() -> 413:
   370   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   370   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   371   i> write(98) -> 98:
   371   i> write(98) -> 98:
   372   i>     between\n
   372   i>     between\n
   373   i>     pairs 81\n
   373   i>     pairs 81\n
   374   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   374   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   375   o> readline() -> 2:
   375   o> readline() -> 2:
   390   sending between command
   390   sending between command
   391   remote: 0
   391   remote: 0
   392   remote: 0
   392   remote: 0
   393   remote: 0
   393   remote: 0
   394   remote: 413
   394   remote: 413
   395   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
   395   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   396   remote: 1
   396   remote: 1
   397   devel-peer-request: protocaps
   397   devel-peer-request: protocaps
   398   devel-peer-request:   caps: * bytes (glob)
   398   devel-peer-request:   caps: * bytes (glob)
   399   sending protocaps command
   399   sending protocaps command
   400   url: ssh://user@dummy/server
   400   url: ssh://user@dummy/server
   448   i> write(6) -> 6:
   448   i> write(6) -> 6:
   449   i>     hello\n
   449   i>     hello\n
   450   o> readline() -> 4:
   450   o> readline() -> 4:
   451   o>     413\n
   451   o>     413\n
   452   o> readline() -> 413:
   452   o> readline() -> 413:
   453   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   453   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   454   i> write(98) -> 98:
   454   i> write(98) -> 98:
   455   i>     between\n
   455   i>     between\n
   456   i>     pairs 81\n
   456   i>     pairs 81\n
   457   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   457   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   458   o> readline() -> 2:
   458   o> readline() -> 2:
   495   i> write(6) -> 6:
   495   i> write(6) -> 6:
   496   i>     hello\n
   496   i>     hello\n
   497   o> readline() -> 4:
   497   o> readline() -> 4:
   498   o>     413\n
   498   o>     413\n
   499   o> readline() -> 413:
   499   o> readline() -> 413:
   500   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   500   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   501   i> write(98) -> 98:
   501   i> write(98) -> 98:
   502   i>     between\n
   502   i>     between\n
   503   i>     pairs 81\n
   503   i>     pairs 81\n
   504   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   504   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   505   o> readline() -> 2:
   505   o> readline() -> 2:
   540   i> write(6) -> 6:
   540   i> write(6) -> 6:
   541   i>     hello\n
   541   i>     hello\n
   542   o> readline() -> 4:
   542   o> readline() -> 4:
   543   o>     413\n
   543   o>     413\n
   544   o> readline() -> 413:
   544   o> readline() -> 413:
   545   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   545   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   546   i> write(98) -> 98:
   546   i> write(98) -> 98:
   547   i>     between\n
   547   i>     between\n
   548   i>     pairs 81\n
   548   i>     pairs 81\n
   549   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   549   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   550   o> readline() -> 2:
   550   o> readline() -> 2:
   610   i> write(6) -> 6:
   610   i> write(6) -> 6:
   611   i>     hello\n
   611   i>     hello\n
   612   o> readline() -> 4:
   612   o> readline() -> 4:
   613   o>     413\n
   613   o>     413\n
   614   o> readline() -> 413:
   614   o> readline() -> 413:
   615   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   615   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   616 
   616 
   617 Incomplete dictionary send
   617 Incomplete dictionary send
   618 
   618 
   619   $ hg debugwireproto --localssh --peer raw << EOF
   619   $ hg debugwireproto --localssh --peer raw << EOF
   620   > raw
   620   > raw
   692   i> write(6) -> 6:
   692   i> write(6) -> 6:
   693   i>     hello\n
   693   i>     hello\n
   694   o> readline() -> 4:
   694   o> readline() -> 4:
   695   o>     413\n
   695   o>     413\n
   696   o> readline() -> 413:
   696   o> readline() -> 413:
   697   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   697   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   698   i> write(98) -> 98:
   698   i> write(98) -> 98:
   699   i>     between\n
   699   i>     between\n
   700   i>     pairs 81\n
   700   i>     pairs 81\n
   701   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   701   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   702   o> readline() -> 2:
   702   o> readline() -> 2:
   726   i> write(6) -> 6:
   726   i> write(6) -> 6:
   727   i>     hello\n
   727   i>     hello\n
   728   o> readline() -> 4:
   728   o> readline() -> 4:
   729   o>     413\n
   729   o>     413\n
   730   o> readline() -> 413:
   730   o> readline() -> 413:
   731   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   731   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   732   i> write(98) -> 98:
   732   i> write(98) -> 98:
   733   i>     between\n
   733   i>     between\n
   734   i>     pairs 81\n
   734   i>     pairs 81\n
   735   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   735   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   736   o> readline() -> 2:
   736   o> readline() -> 2:
   769   i> write(6) -> 6:
   769   i> write(6) -> 6:
   770   i>     hello\n
   770   i>     hello\n
   771   o> readline() -> 4:
   771   o> readline() -> 4:
   772   o>     413\n
   772   o>     413\n
   773   o> readline() -> 413:
   773   o> readline() -> 413:
   774   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   774   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   775   i> write(98) -> 98:
   775   i> write(98) -> 98:
   776   i>     between\n
   776   i>     between\n
   777   i>     pairs 81\n
   777   i>     pairs 81\n
   778   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   778   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   779   o> readline() -> 2:
   779   o> readline() -> 2:
   798   i> write(6) -> 6:
   798   i> write(6) -> 6:
   799   i>     hello\n
   799   i>     hello\n
   800   o> readline() -> 4:
   800   o> readline() -> 4:
   801   o>     413\n
   801   o>     413\n
   802   o> readline() -> 413:
   802   o> readline() -> 413:
   803   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   803   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   804   i> write(105) -> 105:
   804   i> write(105) -> 105:
   805   i>     between\n
   805   i>     between\n
   806   i>     pairs 81\n
   806   i>     pairs 81\n
   807   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000unknown
   807   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000unknown
   808   o> readline() -> 2:
   808   o> readline() -> 2:
   839   i>     pairs 81\n
   839   i>     pairs 81\n
   840   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   840   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   841   o> readline() -> 4:
   841   o> readline() -> 4:
   842   o>     413\n
   842   o>     413\n
   843   o> readline() -> 413:
   843   o> readline() -> 413:
   844   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   844   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   845   o> readline() -> 2:
   845   o> readline() -> 2:
   846   o>     1\n
   846   o>     1\n
   847   o> readline() -> 1:
   847   o> readline() -> 1:
   848   o>     \n
   848   o>     \n
   849   i> write(31) -> 31:
   849   i> write(31) -> 31:
   888   o> readline() -> 41:
   888   o> readline() -> 41:
   889   o>     68986213bd4485ea51533535e3fc9e78007a711f\n
   889   o>     68986213bd4485ea51533535e3fc9e78007a711f\n
   890   o> readline() -> 4:
   890   o> readline() -> 4:
   891   o>     413\n
   891   o>     413\n
   892   o> readline() -> 413:
   892   o> readline() -> 413:
   893   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   893   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   894   o> readline() -> 2:
   894   o> readline() -> 2:
   895   o>     1\n
   895   o>     1\n
   896 
   896 
   897 And a variation that doesn't send the between command
   897 And a variation that doesn't send the between command
   898 
   898 
   944   i>     pairs 81\n
   944   i>     pairs 81\n
   945   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   945   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   946   o> readline() -> 4:
   946   o> readline() -> 4:
   947   o>     413\n
   947   o>     413\n
   948   o> readline() -> 413:
   948   o> readline() -> 413:
   949   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   949   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   950   o> readline() -> 2:
   950   o> readline() -> 2:
   951   o>     1\n
   951   o>     1\n
   952   o> readline() -> 1:
   952   o> readline() -> 1:
   953   o>     \n
   953   o>     \n
   954 
   954 
   963   devel-peer-request: between
   963   devel-peer-request: between
   964   devel-peer-request:   pairs: 81 bytes
   964   devel-peer-request:   pairs: 81 bytes
   965   sending between command
   965   sending between command
   966   remote: 0
   966   remote: 0
   967   remote: 413
   967   remote: 413
   968   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
   968   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   969   remote: 1
   969   remote: 1
   970   devel-peer-request: protocaps
   970   devel-peer-request: protocaps
   971   devel-peer-request:   caps: * bytes (glob)
   971   devel-peer-request:   caps: * bytes (glob)
   972   sending protocaps command
   972   sending protocaps command
   973   url: ssh://user@dummy/server
   973   url: ssh://user@dummy/server
  1007   o> readline() -> 44:
  1007   o> readline() -> 44:
  1008   o>     upgraded this-is-some-token exp-ssh-v2-0001\n
  1008   o>     upgraded this-is-some-token exp-ssh-v2-0001\n
  1009   o> readline() -> 4:
  1009   o> readline() -> 4:
  1010   o>     412\n
  1010   o>     412\n
  1011   o> readline() -> 413:
  1011   o> readline() -> 413:
  1012   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1012   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1013 
  1013 
  1014   $ cd ..
  1014   $ cd ..
  1015 
  1015 
  1016   $ hg --config experimental.sshpeer.advertise-v2=true --debug debugpeer ssh://user@dummy/server
  1016   $ hg --config experimental.sshpeer.advertise-v2=true --debug debugpeer ssh://user@dummy/server
  1017   running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !)
  1017   running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !)
  1021   sending hello command
  1021   sending hello command
  1022   devel-peer-request: between
  1022   devel-peer-request: between
  1023   devel-peer-request:   pairs: 81 bytes
  1023   devel-peer-request:   pairs: 81 bytes
  1024   sending between command
  1024   sending between command
  1025   protocol upgraded to exp-ssh-v2-0001
  1025   protocol upgraded to exp-ssh-v2-0001
  1026   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
  1026   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1027   devel-peer-request: protocaps
  1027   devel-peer-request: protocaps
  1028   devel-peer-request:   caps: * bytes (glob)
  1028   devel-peer-request:   caps: * bytes (glob)
  1029   sending protocaps command
  1029   sending protocaps command
  1030   url: ssh://user@dummy/server
  1030   url: ssh://user@dummy/server
  1031   local: no
  1031   local: no
  1041   sending hello command
  1041   sending hello command
  1042   devel-peer-request: between
  1042   devel-peer-request: between
  1043   devel-peer-request:   pairs: 81 bytes
  1043   devel-peer-request:   pairs: 81 bytes
  1044   sending between command
  1044   sending between command
  1045   protocol upgraded to exp-ssh-v2-0001
  1045   protocol upgraded to exp-ssh-v2-0001
  1046   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
  1046   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1047   devel-peer-request: protocaps
  1047   devel-peer-request: protocaps
  1048   devel-peer-request:   caps: * bytes (glob)
  1048   devel-peer-request:   caps: * bytes (glob)
  1049   sending protocaps command
  1049   sending protocaps command
  1050   Main capabilities:
  1050   Main capabilities:
  1051     batch
  1051     batch
  1114   o> readline() -> 44:
  1114   o> readline() -> 44:
  1115   o>     upgraded this-is-some-token exp-ssh-v2-0001\n
  1115   o>     upgraded this-is-some-token exp-ssh-v2-0001\n
  1116   o> readline() -> 4:
  1116   o> readline() -> 4:
  1117   o>     412\n
  1117   o>     412\n
  1118   o> readline() -> 413:
  1118   o> readline() -> 413:
  1119   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1119   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1120   i> write(6) -> 6:
  1120   i> write(6) -> 6:
  1121   i>     hello\n
  1121   i>     hello\n
  1122   o> readline() -> 4:
  1122   o> readline() -> 4:
  1123   o>     403\n
  1123   o>     403\n
  1124   o> readline() -> 403:
  1124   o> readline() -> 403:
  1125   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1125   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1126 
  1126 
  1127 Multiple upgrades is not allowed
  1127 Multiple upgrades is not allowed
  1128 
  1128 
  1129   $ hg debugwireproto --localssh --peer raw << EOF
  1129   $ hg debugwireproto --localssh --peer raw << EOF
  1130   > raw
  1130   > raw
  1152   o> readline() -> 44:
  1152   o> readline() -> 44:
  1153   o>     upgraded this-is-some-token exp-ssh-v2-0001\n
  1153   o>     upgraded this-is-some-token exp-ssh-v2-0001\n
  1154   o> readline() -> 4:
  1154   o> readline() -> 4:
  1155   o>     412\n
  1155   o>     412\n
  1156   o> readline() -> 413:
  1156   o> readline() -> 413:
  1157   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1157   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1158   i> write(45) -> 45:
  1158   i> write(45) -> 45:
  1159   i>     upgrade another-token proto=irrelevant\n
  1159   i>     upgrade another-token proto=irrelevant\n
  1160   i>     hello\n
  1160   i>     hello\n
  1161   o> readline() -> 1:
  1161   o> readline() -> 1:
  1162   o>     \n
  1162   o>     \n
  1225   i> write(6) -> 6:
  1225   i> write(6) -> 6:
  1226   i>     hello\n
  1226   i>     hello\n
  1227   o> readline() -> 4:
  1227   o> readline() -> 4:
  1228   o>     413\n
  1228   o>     413\n
  1229   o> readline() -> 413:
  1229   o> readline() -> 413:
  1230   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1230   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1231   i> write(98) -> 98:
  1231   i> write(98) -> 98:
  1232   i>     between\n
  1232   i>     between\n
  1233   i>     pairs 81\n
  1233   i>     pairs 81\n
  1234   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1234   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1235   o> readline() -> 2:
  1235   o> readline() -> 2:
  1347   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1347   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1348   i> flush() -> None
  1348   i> flush() -> None
  1349   o> readline() -> 4:
  1349   o> readline() -> 4:
  1350   o>     413\n
  1350   o>     413\n
  1351   o> readline() -> 413:
  1351   o> readline() -> 413:
  1352   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1352   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1353   o> readline() -> 2:
  1353   o> readline() -> 2:
  1354   o>     1\n
  1354   o>     1\n
  1355   o> readline() -> 1:
  1355   o> readline() -> 1:
  1356   o>     \n
  1356   o>     \n
  1357   sending listkeys command
  1357   sending listkeys command
  1380   i> flush() -> None
  1380   i> flush() -> None
  1381   o> readline() -> 62:
  1381   o> readline() -> 62:
  1382   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1382   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1383   o> readline() -> 4:
  1383   o> readline() -> 4:
  1384   o>     412\n
  1384   o>     412\n
  1385   o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
  1385   o> read(412) -> 412: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1386   o> read(1) -> 1:
  1386   o> read(1) -> 1:
  1387   o>     \n
  1387   o>     \n
  1388   sending listkeys command
  1388   sending listkeys command
  1389   i> write(9) -> 9:
  1389   i> write(9) -> 9:
  1390   i>     listkeys\n
  1390   i>     listkeys\n
  1427   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1427   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1428   i> flush() -> None
  1428   i> flush() -> None
  1429   o> readline() -> 4:
  1429   o> readline() -> 4:
  1430   o>     413\n
  1430   o>     413\n
  1431   o> readline() -> 413:
  1431   o> readline() -> 413:
  1432   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1432   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1433   o> readline() -> 2:
  1433   o> readline() -> 2:
  1434   o>     1\n
  1434   o>     1\n
  1435   o> readline() -> 1:
  1435   o> readline() -> 1:
  1436   o>     \n
  1436   o>     \n
  1437   sending listkeys command
  1437   sending listkeys command
  1456   i> flush() -> None
  1456   i> flush() -> None
  1457   o> readline() -> 62:
  1457   o> readline() -> 62:
  1458   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1458   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1459   o> readline() -> 4:
  1459   o> readline() -> 4:
  1460   o>     412\n
  1460   o>     412\n
  1461   o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
  1461   o> read(412) -> 412: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1462   o> read(1) -> 1:
  1462   o> read(1) -> 1:
  1463   o>     \n
  1463   o>     \n
  1464   sending listkeys command
  1464   sending listkeys command
  1465   i> write(9) -> 9:
  1465   i> write(9) -> 9:
  1466   i>     listkeys\n
  1466   i>     listkeys\n
  1488   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1488   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1489   i> flush() -> None
  1489   i> flush() -> None
  1490   o> readline() -> 4:
  1490   o> readline() -> 4:
  1491   o>     413\n
  1491   o>     413\n
  1492   o> readline() -> 413:
  1492   o> readline() -> 413:
  1493   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1493   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1494   o> readline() -> 2:
  1494   o> readline() -> 2:
  1495   o>     1\n
  1495   o>     1\n
  1496   o> readline() -> 1:
  1496   o> readline() -> 1:
  1497   o>     \n
  1497   o>     \n
  1498   sending listkeys command
  1498   sending listkeys command
  1518   i> flush() -> None
  1518   i> flush() -> None
  1519   o> readline() -> 62:
  1519   o> readline() -> 62:
  1520   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1520   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1521   o> readline() -> 4:
  1521   o> readline() -> 4:
  1522   o>     412\n
  1522   o>     412\n
  1523   o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
  1523   o> read(412) -> 412: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1524   o> read(1) -> 1:
  1524   o> read(1) -> 1:
  1525   o>     \n
  1525   o>     \n
  1526   sending listkeys command
  1526   sending listkeys command
  1527   i> write(9) -> 9:
  1527   i> write(9) -> 9:
  1528   i>     listkeys\n
  1528   i>     listkeys\n
  1551   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1551   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1552   i> flush() -> None
  1552   i> flush() -> None
  1553   o> readline() -> 4:
  1553   o> readline() -> 4:
  1554   o>     413\n
  1554   o>     413\n
  1555   o> readline() -> 413:
  1555   o> readline() -> 413:
  1556   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1556   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1557   o> readline() -> 2:
  1557   o> readline() -> 2:
  1558   o>     1\n
  1558   o>     1\n
  1559   o> readline() -> 1:
  1559   o> readline() -> 1:
  1560   o>     \n
  1560   o>     \n
  1561   sending listkeys command
  1561   sending listkeys command
  1583   i> flush() -> None
  1583   i> flush() -> None
  1584   o> readline() -> 62:
  1584   o> readline() -> 62:
  1585   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1585   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1586   o> readline() -> 4:
  1586   o> readline() -> 4:
  1587   o>     412\n
  1587   o>     412\n
  1588   o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
  1588   o> read(412) -> 412: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1589   o> read(1) -> 1:
  1589   o> read(1) -> 1:
  1590   o>     \n
  1590   o>     \n
  1591   sending listkeys command
  1591   sending listkeys command
  1592   i> write(9) -> 9:
  1592   i> write(9) -> 9:
  1593   i>     listkeys\n
  1593   i>     listkeys\n
  1620   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1620   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1621   i> flush() -> None
  1621   i> flush() -> None
  1622   o> readline() -> 4:
  1622   o> readline() -> 4:
  1623   o>     413\n
  1623   o>     413\n
  1624   o> readline() -> 413:
  1624   o> readline() -> 413:
  1625   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1625   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1626   o> readline() -> 2:
  1626   o> readline() -> 2:
  1627   o>     1\n
  1627   o>     1\n
  1628   o> readline() -> 1:
  1628   o> readline() -> 1:
  1629   o>     \n
  1629   o>     \n
  1630   sending pushkey command
  1630   sending pushkey command
  1659   i> flush() -> None
  1659   i> flush() -> None
  1660   o> readline() -> 62:
  1660   o> readline() -> 62:
  1661   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1661   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1662   o> readline() -> 4:
  1662   o> readline() -> 4:
  1663   o>     412\n
  1663   o>     412\n
  1664   o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
  1664   o> read(412) -> 412: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1665   o> read(1) -> 1:
  1665   o> read(1) -> 1:
  1666   o>     \n
  1666   o>     \n
  1667   sending pushkey command
  1667   sending pushkey command
  1668   i> write(8) -> 8:
  1668   i> write(8) -> 8:
  1669   i>     pushkey\n
  1669   i>     pushkey\n
  1712   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1712   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1713   i> flush() -> None
  1713   i> flush() -> None
  1714   o> readline() -> 4:
  1714   o> readline() -> 4:
  1715   o>     413\n
  1715   o>     413\n
  1716   o> readline() -> 413:
  1716   o> readline() -> 413:
  1717   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1717   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1718   o> readline() -> 2:
  1718   o> readline() -> 2:
  1719   o>     1\n
  1719   o>     1\n
  1720   o> readline() -> 1:
  1720   o> readline() -> 1:
  1721   o>     \n
  1721   o>     \n
  1722   sending listkeys command
  1722   sending listkeys command
  1742   i> flush() -> None
  1742   i> flush() -> None
  1743   o> readline() -> 62:
  1743   o> readline() -> 62:
  1744   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1744   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1745   o> readline() -> 4:
  1745   o> readline() -> 4:
  1746   o>     412\n
  1746   o>     412\n
  1747   o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
  1747   o> read(412) -> 412: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1748   o> read(1) -> 1:
  1748   o> read(1) -> 1:
  1749   o>     \n
  1749   o>     \n
  1750   sending listkeys command
  1750   sending listkeys command
  1751   i> write(9) -> 9:
  1751   i> write(9) -> 9:
  1752   i>     listkeys\n
  1752   i>     listkeys\n
  1791   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1791   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1792   i> flush() -> None
  1792   i> flush() -> None
  1793   o> readline() -> 4:
  1793   o> readline() -> 4:
  1794   o>     413\n
  1794   o>     413\n
  1795   o> readline() -> 413:
  1795   o> readline() -> 413:
  1796   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1796   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1797   o> readline() -> 2:
  1797   o> readline() -> 2:
  1798   o>     1\n
  1798   o>     1\n
  1799   o> readline() -> 1:
  1799   o> readline() -> 1:
  1800   o>     \n
  1800   o>     \n
  1801   sending listkeys command
  1801   sending listkeys command
  1824   i> flush() -> None
  1824   i> flush() -> None
  1825   o> readline() -> 62:
  1825   o> readline() -> 62:
  1826   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1826   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1827   o> readline() -> 4:
  1827   o> readline() -> 4:
  1828   o>     412\n
  1828   o>     412\n
  1829   o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
  1829   o> read(412) -> 412: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1830   o> read(1) -> 1:
  1830   o> read(1) -> 1:
  1831   o>     \n
  1831   o>     \n
  1832   sending listkeys command
  1832   sending listkeys command
  1833   i> write(9) -> 9:
  1833   i> write(9) -> 9:
  1834   i>     listkeys\n
  1834   i>     listkeys\n
  1860   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1860   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1861   i> flush() -> None
  1861   i> flush() -> None
  1862   o> readline() -> 4:
  1862   o> readline() -> 4:
  1863   o>     413\n
  1863   o>     413\n
  1864   o> readline() -> 413:
  1864   o> readline() -> 413:
  1865   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1865   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1866   o> readline() -> 2:
  1866   o> readline() -> 2:
  1867   o>     1\n
  1867   o>     1\n
  1868   o> readline() -> 1:
  1868   o> readline() -> 1:
  1869   o>     \n
  1869   o>     \n
  1870   sending listkeys command
  1870   sending listkeys command
  1892   i> flush() -> None
  1892   i> flush() -> None
  1893   o> readline() -> 62:
  1893   o> readline() -> 62:
  1894   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1894   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1895   o> readline() -> 4:
  1895   o> readline() -> 4:
  1896   o>     412\n
  1896   o>     412\n
  1897   o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
  1897   o> read(412) -> 412: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1898   o> read(1) -> 1:
  1898   o> read(1) -> 1:
  1899   o>     \n
  1899   o>     \n
  1900   sending listkeys command
  1900   sending listkeys command
  1901   i> write(9) -> 9:
  1901   i> write(9) -> 9:
  1902   i>     listkeys\n
  1902   i>     listkeys\n
  1927   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1927   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1928   i> flush() -> None
  1928   i> flush() -> None
  1929   o> readline() -> 4:
  1929   o> readline() -> 4:
  1930   o>     413\n
  1930   o>     413\n
  1931   o> readline() -> 413:
  1931   o> readline() -> 413:
  1932   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1932   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1933   o> readline() -> 2:
  1933   o> readline() -> 2:
  1934   o>     1\n
  1934   o>     1\n
  1935   o> readline() -> 1:
  1935   o> readline() -> 1:
  1936   o>     \n
  1936   o>     \n
  1937   sending listkeys command
  1937   sending listkeys command
  1957   i> flush() -> None
  1957   i> flush() -> None
  1958   o> readline() -> 62:
  1958   o> readline() -> 62:
  1959   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1959   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1960   o> readline() -> 4:
  1960   o> readline() -> 4:
  1961   o>     412\n
  1961   o>     412\n
  1962   o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
  1962   o> read(412) -> 412: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1963   o> read(1) -> 1:
  1963   o> read(1) -> 1:
  1964   o>     \n
  1964   o>     \n
  1965   sending listkeys command
  1965   sending listkeys command
  1966   i> write(9) -> 9:
  1966   i> write(9) -> 9:
  1967   i>     listkeys\n
  1967   i>     listkeys\n
  1994   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1994   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1995   i> flush() -> None
  1995   i> flush() -> None
  1996   o> readline() -> 4:
  1996   o> readline() -> 4:
  1997   o>     413\n
  1997   o>     413\n
  1998   o> readline() -> 413:
  1998   o> readline() -> 413:
  1999   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1999   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  2000   o> readline() -> 2:
  2000   o> readline() -> 2:
  2001   o>     1\n
  2001   o>     1\n
  2002   o> readline() -> 1:
  2002   o> readline() -> 1:
  2003   o>     \n
  2003   o>     \n
  2004   sending pushkey command
  2004   sending pushkey command
  2034   i> flush() -> None
  2034   i> flush() -> None
  2035   o> readline() -> 62:
  2035   o> readline() -> 62:
  2036   o>     upgraded * exp-ssh-v2-0001\n (glob)
  2036   o>     upgraded * exp-ssh-v2-0001\n (glob)
  2037   o> readline() -> 4:
  2037   o> readline() -> 4:
  2038   o>     412\n
  2038   o>     412\n
  2039   o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
  2039   o> read(412) -> 412: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  2040   o> read(1) -> 1:
  2040   o> read(1) -> 1:
  2041   o>     \n
  2041   o>     \n
  2042   sending pushkey command
  2042   sending pushkey command
  2043   i> write(8) -> 8:
  2043   i> write(8) -> 8:
  2044   i>     pushkey\n
  2044   i>     pushkey\n
  2101   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2101   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2102   i> flush() -> None
  2102   i> flush() -> None
  2103   o> readline() -> 4:
  2103   o> readline() -> 4:
  2104   o>     413\n
  2104   o>     413\n
  2105   o> readline() -> 413:
  2105   o> readline() -> 413:
  2106   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  2106   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  2107   o> readline() -> 2:
  2107   o> readline() -> 2:
  2108   o>     1\n
  2108   o>     1\n
  2109   o> readline() -> 1:
  2109   o> readline() -> 1:
  2110   o>     \n
  2110   o>     \n
  2111   sending batch with 3 sub-commands
  2111   sending batch with 3 sub-commands
  2140   i> flush() -> None
  2140   i> flush() -> None
  2141   o> readline() -> 62:
  2141   o> readline() -> 62:
  2142   o>     upgraded * exp-ssh-v2-0001\n (glob)
  2142   o>     upgraded * exp-ssh-v2-0001\n (glob)
  2143   o> readline() -> 4:
  2143   o> readline() -> 4:
  2144   o>     412\n
  2144   o>     412\n
  2145   o> read(412) -> 412: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
  2145   o> read(412) -> 412: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  2146   o> read(1) -> 1:
  2146   o> read(1) -> 1:
  2147   o>     \n
  2147   o>     \n
  2148   sending batch with 3 sub-commands
  2148   sending batch with 3 sub-commands
  2149   i> write(6) -> 6:
  2149   i> write(6) -> 6:
  2150   i>     batch\n
  2150   i>     batch\n