tests/test-ssh-proto.t
changeset 37393 afcfdf53e4b5
parent 37322 a67fd1fe5109
child 37413 33af46d639b4
equal deleted inserted replaced
37392:a4f02a17420d 37393:afcfdf53e4b5
    61   devel-peer-request: hello
    61   devel-peer-request: hello
    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: 403
    66   remote: 413
    67   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
    67   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
    68   remote: 1
    68   remote: 1
       
    69   devel-peer-request: protocaps
       
    70   devel-peer-request:   caps: * bytes (glob)
       
    71   sending protocaps command
    69   url: ssh://user@dummy/server
    72   url: ssh://user@dummy/server
    70   local: no
    73   local: no
    71   pushable: yes
    74   pushable: yes
    72 
    75 
    73 Server should answer the "hello" command in isolation
    76 Server should answer the "hello" command in isolation
    80   > EOF
    83   > EOF
    81   using raw connection to peer
    84   using raw connection to peer
    82   i> write(6) -> 6:
    85   i> write(6) -> 6:
    83   i>     hello\n
    86   i>     hello\n
    84   o> readline() -> 4:
    87   o> readline() -> 4:
    85   o>     403\n
    88   o>     413\n
    86   o> readline() -> 403:
    89   o> readline() -> 413:
    87   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
    90   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
    88 
    91 
    89 `hg debugserve --sshstdio` works
    92 `hg debugserve --sshstdio` works
    90 
    93 
    91   $ cd server
    94   $ cd server
    92   $ hg debugserve --sshstdio << EOF
    95   $ hg debugserve --sshstdio << EOF
    93   > hello
    96   > hello
    94   > EOF
    97   > EOF
    95   403
    98   413
    96   capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
    99   capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
    97 
   100 
    98 I/O logging works
   101 I/O logging works
    99 
   102 
   100   $ hg debugserve --sshstdio --logiofd 1 << EOF
   103   $ hg debugserve --sshstdio --logiofd 1 << EOF
   101   > hello
   104   > hello
   102   > EOF
   105   > EOF
   103   o> write(4) -> 4:
   106   o> write(4) -> 4:
   104   o>     403\n
   107   o>     413\n
   105   o> write(403) -> 403:
   108   o> write(413) -> 413:
   106   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   109   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   107   403
   110   413
   108   capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
   111   capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
   109   o> flush() -> None
   112   o> flush() -> None
   110 
   113 
   111   $ hg debugserve --sshstdio --logiofile $TESTTMP/io << EOF
   114   $ hg debugserve --sshstdio --logiofile $TESTTMP/io << EOF
   112   > hello
   115   > hello
   113   > EOF
   116   > EOF
   114   403
   117   413
   115   capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
   118   capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
   116 
   119 
   117   $ cat $TESTTMP/io
   120   $ cat $TESTTMP/io
   118   o> write(4) -> 4:
   121   o> write(4) -> 4:
   119   o>     403\n
   122   o>     413\n
   120   o> write(403) -> 403:
   123   o> write(413) -> 413:
   121   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   124   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   122   o> flush() -> None
   125   o> flush() -> None
   123 
   126 
   124   $ cd ..
   127   $ cd ..
   125 
   128 
   126 >=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.
   141   > EOF
   144   > EOF
   142   using raw connection to peer
   145   using raw connection to peer
   143   i> write(6) -> 6:
   146   i> write(6) -> 6:
   144   i>     hello\n
   147   i>     hello\n
   145   o> readline() -> 4:
   148   o> readline() -> 4:
   146   o>     403\n
   149   o>     413\n
   147   o> readline() -> 403:
   150   o> readline() -> 413:
   148   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   151   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   149   i> write(98) -> 98:
   152   i> write(98) -> 98:
   150   i>     between\n
   153   i>     between\n
   151   i>     pairs 81\n
   154   i>     pairs 81\n
   152   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   155   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   153   o> readline() -> 2:
   156   o> readline() -> 2:
   180   remote: banner: line 5
   183   remote: banner: line 5
   181   remote: banner: line 6
   184   remote: banner: line 6
   182   remote: banner: line 7
   185   remote: banner: line 7
   183   remote: banner: line 8
   186   remote: banner: line 8
   184   remote: banner: line 9
   187   remote: banner: line 9
   185   remote: 403
   188   remote: 413
   186   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
   189   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
   187   remote: 1
   190   remote: 1
       
   191   devel-peer-request: protocaps
       
   192   devel-peer-request:   caps: * bytes (glob)
       
   193   sending protocaps command
   188   url: ssh://user@dummy/server
   194   url: ssh://user@dummy/server
   189   local: no
   195   local: no
   190   pushable: yes
   196   pushable: yes
   191 
   197 
   192 And test the banner with the raw protocol
   198 And test the banner with the raw protocol
   235   o> readline() -> 15:
   241   o> readline() -> 15:
   236   o>     banner: line 8\n
   242   o>     banner: line 8\n
   237   o> readline() -> 15:
   243   o> readline() -> 15:
   238   o>     banner: line 9\n
   244   o>     banner: line 9\n
   239   o> readline() -> 4:
   245   o> readline() -> 4:
   240   o>     403\n
   246   o>     413\n
   241   o> readline() -> 403:
   247   o> readline() -> 413:
   242   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   248   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   243   i> write(98) -> 98:
   249   i> write(98) -> 98:
   244   i>     between\n
   250   i>     between\n
   245   i>     pairs 81\n
   251   i>     pairs 81\n
   246   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   252   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   247   o> readline() -> 2:
   253   o> readline() -> 2:
   288   o> readline() -> 2:
   294   o> readline() -> 2:
   289   o>     0\n
   295   o>     0\n
   290   i> write(6) -> 6:
   296   i> write(6) -> 6:
   291   i>     hello\n
   297   i>     hello\n
   292   o> readline() -> 4:
   298   o> readline() -> 4:
   293   o>     403\n
   299   o>     413\n
   294   i> write(98) -> 98:
   300   i> write(98) -> 98:
   295   i>     between\n
   301   i>     between\n
   296   i>     pairs 81\n
   302   i>     pairs 81\n
   297   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   303   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   298   o> readline() -> 403:
   304   o> readline() -> 413:
   299   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   305   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   300   o> readline() -> 2:
   306   o> readline() -> 2:
   301   o>     1\n
   307   o>     1\n
   302 
   308 
   303   $ 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
   304   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 !)
   308   sending hello command
   314   sending hello command
   309   devel-peer-request: between
   315   devel-peer-request: between
   310   devel-peer-request:   pairs: 81 bytes
   316   devel-peer-request:   pairs: 81 bytes
   311   sending between command
   317   sending between command
   312   remote: 0
   318   remote: 0
   313   remote: 403
   319   remote: 413
   314   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
   320   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
   315   remote: 1
   321   remote: 1
       
   322   devel-peer-request: protocaps
       
   323   devel-peer-request:   caps: * bytes (glob)
       
   324   sending protocaps command
   316   url: ssh://user@dummy/server
   325   url: ssh://user@dummy/server
   317   local: no
   326   local: no
   318   pushable: yes
   327   pushable: yes
   319 
   328 
   320 Send multiple unknown commands before hello
   329 Send multiple unknown commands before hello
   354   o> readline() -> 2:
   363   o> readline() -> 2:
   355   o>     0\n
   364   o>     0\n
   356   i> write(6) -> 6:
   365   i> write(6) -> 6:
   357   i>     hello\n
   366   i>     hello\n
   358   o> readline() -> 4:
   367   o> readline() -> 4:
   359   o>     403\n
   368   o>     413\n
   360   o> readline() -> 403:
   369   o> readline() -> 413:
   361   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   370   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   362   i> write(98) -> 98:
   371   i> write(98) -> 98:
   363   i>     between\n
   372   i>     between\n
   364   i>     pairs 81\n
   373   i>     pairs 81\n
   365   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   374   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   366   o> readline() -> 2:
   375   o> readline() -> 2:
   380   devel-peer-request:   pairs: 81 bytes
   389   devel-peer-request:   pairs: 81 bytes
   381   sending between command
   390   sending between command
   382   remote: 0
   391   remote: 0
   383   remote: 0
   392   remote: 0
   384   remote: 0
   393   remote: 0
   385   remote: 403
   394   remote: 413
   386   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
   395   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
   387   remote: 1
   396   remote: 1
       
   397   devel-peer-request: protocaps
       
   398   devel-peer-request:   caps: * bytes (glob)
       
   399   sending protocaps command
   388   url: ssh://user@dummy/server
   400   url: ssh://user@dummy/server
   389   local: no
   401   local: no
   390   pushable: yes
   402   pushable: yes
   391 
   403 
   392 Send an unknown command before hello that has arguments
   404 Send an unknown command before hello that has arguments
   434   o> readline() -> 2:
   446   o> readline() -> 2:
   435   o>     0\n
   447   o>     0\n
   436   i> write(6) -> 6:
   448   i> write(6) -> 6:
   437   i>     hello\n
   449   i>     hello\n
   438   o> readline() -> 4:
   450   o> readline() -> 4:
   439   o>     403\n
   451   o>     413\n
   440   o> readline() -> 403:
   452   o> readline() -> 413:
   441   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   453   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   442   i> write(98) -> 98:
   454   i> write(98) -> 98:
   443   i>     between\n
   455   i>     between\n
   444   i>     pairs 81\n
   456   i>     pairs 81\n
   445   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   457   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   446   o> readline() -> 2:
   458   o> readline() -> 2:
   481   o> readline() -> 2:
   493   o> readline() -> 2:
   482   o>     0\n
   494   o>     0\n
   483   i> write(6) -> 6:
   495   i> write(6) -> 6:
   484   i>     hello\n
   496   i>     hello\n
   485   o> readline() -> 4:
   497   o> readline() -> 4:
   486   o>     403\n
   498   o>     413\n
   487   o> readline() -> 403:
   499   o> readline() -> 413:
   488   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   500   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   489   i> write(98) -> 98:
   501   i> write(98) -> 98:
   490   i>     between\n
   502   i>     between\n
   491   i>     pairs 81\n
   503   i>     pairs 81\n
   492   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   504   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   493   o> readline() -> 2:
   505   o> readline() -> 2:
   526   o> readline() -> 2:
   538   o> readline() -> 2:
   527   o>     0\n
   539   o>     0\n
   528   i> write(6) -> 6:
   540   i> write(6) -> 6:
   529   i>     hello\n
   541   i>     hello\n
   530   o> readline() -> 4:
   542   o> readline() -> 4:
   531   o>     403\n
   543   o>     413\n
   532   o> readline() -> 403:
   544   o> readline() -> 413:
   533   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   545   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   534   i> write(98) -> 98:
   546   i> write(98) -> 98:
   535   i>     between\n
   547   i>     between\n
   536   i>     pairs 81\n
   548   i>     pairs 81\n
   537   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   549   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   538   o> readline() -> 2:
   550   o> readline() -> 2:
   596   o> readline() -> 2:
   608   o> readline() -> 2:
   597   o>     0\n
   609   o>     0\n
   598   i> write(6) -> 6:
   610   i> write(6) -> 6:
   599   i>     hello\n
   611   i>     hello\n
   600   o> readline() -> 4:
   612   o> readline() -> 4:
   601   o>     403\n
   613   o>     413\n
   602   o> readline() -> 403:
   614   o> readline() -> 413:
   603   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   615   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   604 
   616 
   605 Incomplete dictionary send
   617 Incomplete dictionary send
   606 
   618 
   607   $ hg debugwireproto --localssh --peer raw << EOF
   619   $ hg debugwireproto --localssh --peer raw << EOF
   608   > raw
   620   > raw
   678   o> readline() -> 2:
   690   o> readline() -> 2:
   679   o>     0\n
   691   o>     0\n
   680   i> write(6) -> 6:
   692   i> write(6) -> 6:
   681   i>     hello\n
   693   i>     hello\n
   682   o> readline() -> 4:
   694   o> readline() -> 4:
   683   o>     403\n
   695   o>     413\n
   684   o> readline() -> 403:
   696   o> readline() -> 413:
   685   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   697   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   686   i> write(98) -> 98:
   698   i> write(98) -> 98:
   687   i>     between\n
   699   i>     between\n
   688   i>     pairs 81\n
   700   i>     pairs 81\n
   689   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   701   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   690   o> readline() -> 2:
   702   o> readline() -> 2:
   712   o> readline() -> 2:
   724   o> readline() -> 2:
   713   o>     0\n
   725   o>     0\n
   714   i> write(6) -> 6:
   726   i> write(6) -> 6:
   715   i>     hello\n
   727   i>     hello\n
   716   o> readline() -> 4:
   728   o> readline() -> 4:
   717   o>     403\n
   729   o>     413\n
   718   o> readline() -> 403:
   730   o> readline() -> 413:
   719   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   731   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   720   i> write(98) -> 98:
   732   i> write(98) -> 98:
   721   i>     between\n
   733   i>     between\n
   722   i>     pairs 81\n
   734   i>     pairs 81\n
   723   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   735   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   724   o> readline() -> 2:
   736   o> readline() -> 2:
   755   o> readline() -> 2:
   767   o> readline() -> 2:
   756   o>     0\n
   768   o>     0\n
   757   i> write(6) -> 6:
   769   i> write(6) -> 6:
   758   i>     hello\n
   770   i>     hello\n
   759   o> readline() -> 4:
   771   o> readline() -> 4:
   760   o>     403\n
   772   o>     413\n
   761   o> readline() -> 403:
   773   o> readline() -> 413:
   762   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   774   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   763   i> write(98) -> 98:
   775   i> write(98) -> 98:
   764   i>     between\n
   776   i>     between\n
   765   i>     pairs 81\n
   777   i>     pairs 81\n
   766   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   778   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   767   o> readline() -> 2:
   779   o> readline() -> 2:
   784   > EOF
   796   > EOF
   785   using raw connection to peer
   797   using raw connection to peer
   786   i> write(6) -> 6:
   798   i> write(6) -> 6:
   787   i>     hello\n
   799   i>     hello\n
   788   o> readline() -> 4:
   800   o> readline() -> 4:
   789   o>     403\n
   801   o>     413\n
   790   o> readline() -> 403:
   802   o> readline() -> 413:
   791   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   803   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   792   i> write(105) -> 105:
   804   i> write(105) -> 105:
   793   i>     between\n
   805   i>     between\n
   794   i>     pairs 81\n
   806   i>     pairs 81\n
   795   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000unknown
   807   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000unknown
   796   o> readline() -> 2:
   808   o> readline() -> 2:
   825   i>     hello\n
   837   i>     hello\n
   826   i>     between\n
   838   i>     between\n
   827   i>     pairs 81\n
   839   i>     pairs 81\n
   828   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   840   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   829   o> readline() -> 4:
   841   o> readline() -> 4:
   830   o>     403\n
   842   o>     413\n
   831   o> readline() -> 403:
   843   o> readline() -> 413:
   832   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   844   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   833   o> readline() -> 2:
   845   o> readline() -> 2:
   834   o>     1\n
   846   o>     1\n
   835   o> readline() -> 1:
   847   o> readline() -> 1:
   836   o>     \n
   848   o>     \n
   837   i> write(31) -> 31:
   849   i> write(31) -> 31:
   874   i>     pairs 81\n
   886   i>     pairs 81\n
   875   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   887   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   876   o> readline() -> 41:
   888   o> readline() -> 41:
   877   o>     68986213bd4485ea51533535e3fc9e78007a711f\n
   889   o>     68986213bd4485ea51533535e3fc9e78007a711f\n
   878   o> readline() -> 4:
   890   o> readline() -> 4:
   879   o>     403\n
   891   o>     413\n
   880   o> readline() -> 403:
   892   o> readline() -> 413:
   881   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   893   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   882   o> readline() -> 2:
   894   o> readline() -> 2:
   883   o>     1\n
   895   o>     1\n
   884 
   896 
   885 And a variation that doesn't send the between command
   897 And a variation that doesn't send the between command
   886 
   898 
   901   i> write(6) -> 6:
   913   i> write(6) -> 6:
   902   i>     hello\n
   914   i>     hello\n
   903   o> readline() -> 41:
   915   o> readline() -> 41:
   904   o>     68986213bd4485ea51533535e3fc9e78007a711f\n
   916   o>     68986213bd4485ea51533535e3fc9e78007a711f\n
   905   o> readline() -> 4:
   917   o> readline() -> 4:
   906   o>     403\n
   918   o>     413\n
   907 
   919 
   908 Send an upgrade request to a server that doesn't support that command
   920 Send an upgrade request to a server that doesn't support that command
   909 
   921 
   910   $ hg debugwireproto --localssh --peer raw << EOF
   922   $ hg debugwireproto --localssh --peer raw << EOF
   911   > raw
   923   > raw
   930   i>     hello\n
   942   i>     hello\n
   931   i>     between\n
   943   i>     between\n
   932   i>     pairs 81\n
   944   i>     pairs 81\n
   933   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   945   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   934   o> readline() -> 4:
   946   o> readline() -> 4:
   935   o>     403\n
   947   o>     413\n
   936   o> readline() -> 403:
   948   o> readline() -> 413:
   937   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
   949   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   938   o> readline() -> 2:
   950   o> readline() -> 2:
   939   o>     1\n
   951   o>     1\n
   940   o> readline() -> 1:
   952   o> readline() -> 1:
   941   o>     \n
   953   o>     \n
   942 
   954 
   950   sending hello command
   962   sending hello command
   951   devel-peer-request: between
   963   devel-peer-request: between
   952   devel-peer-request:   pairs: 81 bytes
   964   devel-peer-request:   pairs: 81 bytes
   953   sending between command
   965   sending between command
   954   remote: 0
   966   remote: 0
   955   remote: 403
   967   remote: 413
   956   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
   968   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
   957   remote: 1
   969   remote: 1
       
   970   devel-peer-request: protocaps
       
   971   devel-peer-request:   caps: * bytes (glob)
       
   972   sending protocaps command
   958   url: ssh://user@dummy/server
   973   url: ssh://user@dummy/server
   959   local: no
   974   local: no
   960   pushable: yes
   975   pushable: yes
   961 
   976 
   962 Enable version 2 support on server. We need to do this in hgrc because we can't
   977 Enable version 2 support on server. We need to do this in hgrc because we can't
   990   i>     pairs 81\n
  1005   i>     pairs 81\n
   991   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1006   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   992   o> readline() -> 44:
  1007   o> readline() -> 44:
   993   o>     upgraded this-is-some-token exp-ssh-v2-0001\n
  1008   o>     upgraded this-is-some-token exp-ssh-v2-0001\n
   994   o> readline() -> 4:
  1009   o> readline() -> 4:
   995   o>     402\n
  1010   o>     412\n
   996   o> readline() -> 403:
  1011   o> readline() -> 413:
   997   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1012   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
   998 
  1013 
   999   $ cd ..
  1014   $ cd ..
  1000 
  1015 
  1001   $ 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
  1002   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 !)
  1006   sending hello command
  1021   sending hello command
  1007   devel-peer-request: between
  1022   devel-peer-request: between
  1008   devel-peer-request:   pairs: 81 bytes
  1023   devel-peer-request:   pairs: 81 bytes
  1009   sending between command
  1024   sending between command
  1010   protocol upgraded to exp-ssh-v2-0001
  1025   protocol upgraded to exp-ssh-v2-0001
  1011   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
  1026   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
       
  1027   devel-peer-request: protocaps
       
  1028   devel-peer-request:   caps: * bytes (glob)
       
  1029   sending protocaps command
  1012   url: ssh://user@dummy/server
  1030   url: ssh://user@dummy/server
  1013   local: no
  1031   local: no
  1014   pushable: yes
  1032   pushable: yes
  1015 
  1033 
  1016 Verify the peer has capabilities
  1034 Verify the peer has capabilities
  1023   sending hello command
  1041   sending hello command
  1024   devel-peer-request: between
  1042   devel-peer-request: between
  1025   devel-peer-request:   pairs: 81 bytes
  1043   devel-peer-request:   pairs: 81 bytes
  1026   sending between command
  1044   sending between command
  1027   protocol upgraded to exp-ssh-v2-0001
  1045   protocol upgraded to exp-ssh-v2-0001
  1028   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
  1046   remote: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch
       
  1047   devel-peer-request: protocaps
       
  1048   devel-peer-request:   caps: * bytes (glob)
       
  1049   sending protocaps command
  1029   Main capabilities:
  1050   Main capabilities:
  1030     batch
  1051     batch
  1031     branchmap
  1052     branchmap
  1032     $USUAL_BUNDLE2_CAPS_SERVER$
  1053     $USUAL_BUNDLE2_CAPS_SERVER$
  1033     changegroupsubset
  1054     changegroupsubset
  1034     getbundle
  1055     getbundle
  1035     known
  1056     known
  1036     lookup
  1057     lookup
       
  1058     protocaps
  1037     pushkey
  1059     pushkey
  1038     streamreqs=generaldelta,revlogv1
  1060     streamreqs=generaldelta,revlogv1
  1039     unbundle=HG10GZ,HG10BZ,HG10UN
  1061     unbundle=HG10GZ,HG10BZ,HG10UN
  1040     unbundlehash
  1062     unbundlehash
  1041   Bundle2 capabilities:
  1063   Bundle2 capabilities:
  1090   i>     pairs 81\n
  1112   i>     pairs 81\n
  1091   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1113   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1092   o> readline() -> 44:
  1114   o> readline() -> 44:
  1093   o>     upgraded this-is-some-token exp-ssh-v2-0001\n
  1115   o>     upgraded this-is-some-token exp-ssh-v2-0001\n
  1094   o> readline() -> 4:
  1116   o> readline() -> 4:
  1095   o>     402\n
  1117   o>     412\n
  1096   o> readline() -> 403:
  1118   o> readline() -> 413:
  1097   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1119   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1098   i> write(6) -> 6:
  1120   i> write(6) -> 6:
  1099   i>     hello\n
  1121   i>     hello\n
  1100   o> readline() -> 4:
  1122   o> readline() -> 4:
  1101   o>     403\n
  1123   o>     403\n
  1102   o> readline() -> 403:
  1124   o> readline() -> 403:
  1128   i>     pairs 81\n
  1150   i>     pairs 81\n
  1129   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1151   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1130   o> readline() -> 44:
  1152   o> readline() -> 44:
  1131   o>     upgraded this-is-some-token exp-ssh-v2-0001\n
  1153   o>     upgraded this-is-some-token exp-ssh-v2-0001\n
  1132   o> readline() -> 4:
  1154   o> readline() -> 4:
  1133   o>     402\n
  1155   o>     412\n
  1134   o> readline() -> 403:
  1156   o> readline() -> 413:
  1135   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1157   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1136   i> write(45) -> 45:
  1158   i> write(45) -> 45:
  1137   i>     upgrade another-token proto=irrelevant\n
  1159   i>     upgrade another-token proto=irrelevant\n
  1138   i>     hello\n
  1160   i>     hello\n
  1139   o> readline() -> 1:
  1161   o> readline() -> 1:
  1140   o>     \n
  1162   o>     \n
  1201   o> readline() -> 2:
  1223   o> readline() -> 2:
  1202   o>     0\n
  1224   o>     0\n
  1203   i> write(6) -> 6:
  1225   i> write(6) -> 6:
  1204   i>     hello\n
  1226   i>     hello\n
  1205   o> readline() -> 4:
  1227   o> readline() -> 4:
  1206   o>     403\n
  1228   o>     413\n
  1207   o> readline() -> 403:
  1229   o> readline() -> 413:
  1208   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1230   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1209   i> write(98) -> 98:
  1231   i> write(98) -> 98:
  1210   i>     between\n
  1232   i>     between\n
  1211   i>     pairs 81\n
  1233   i>     pairs 81\n
  1212   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1234   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1213   o> readline() -> 2:
  1235   o> readline() -> 2:
  1323   i>     between\n
  1345   i>     between\n
  1324   i>     pairs 81\n
  1346   i>     pairs 81\n
  1325   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1347   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1326   i> flush() -> None
  1348   i> flush() -> None
  1327   o> readline() -> 4:
  1349   o> readline() -> 4:
  1328   o>     403\n
  1350   o>     413\n
  1329   o> readline() -> 403:
  1351   o> readline() -> 413:
  1330   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1352   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1331   o> readline() -> 2:
  1353   o> readline() -> 2:
  1332   o>     1\n
  1354   o>     1\n
  1333   o> readline() -> 1:
  1355   o> readline() -> 1:
  1334   o>     \n
  1356   o>     \n
  1335   sending listkeys command
  1357   sending listkeys command
  1357   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1379   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1358   i> flush() -> None
  1380   i> flush() -> None
  1359   o> readline() -> 62:
  1381   o> readline() -> 62:
  1360   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1382   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1361   o> readline() -> 4:
  1383   o> readline() -> 4:
  1362   o>     402\n
  1384   o>     412\n
  1363   o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
  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
  1364   o> read(1) -> 1:
  1386   o> read(1) -> 1:
  1365   o>     \n
  1387   o>     \n
  1366   sending listkeys command
  1388   sending listkeys command
  1367   i> write(9) -> 9:
  1389   i> write(9) -> 9:
  1368   i>     listkeys\n
  1390   i>     listkeys\n
  1403   i>     between\n
  1425   i>     between\n
  1404   i>     pairs 81\n
  1426   i>     pairs 81\n
  1405   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1427   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1406   i> flush() -> None
  1428   i> flush() -> None
  1407   o> readline() -> 4:
  1429   o> readline() -> 4:
  1408   o>     403\n
  1430   o>     413\n
  1409   o> readline() -> 403:
  1431   o> readline() -> 413:
  1410   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1432   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1411   o> readline() -> 2:
  1433   o> readline() -> 2:
  1412   o>     1\n
  1434   o>     1\n
  1413   o> readline() -> 1:
  1435   o> readline() -> 1:
  1414   o>     \n
  1436   o>     \n
  1415   sending listkeys command
  1437   sending listkeys command
  1433   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1455   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1434   i> flush() -> None
  1456   i> flush() -> None
  1435   o> readline() -> 62:
  1457   o> readline() -> 62:
  1436   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1458   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1437   o> readline() -> 4:
  1459   o> readline() -> 4:
  1438   o>     402\n
  1460   o>     412\n
  1439   o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
  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
  1440   o> read(1) -> 1:
  1462   o> read(1) -> 1:
  1441   o>     \n
  1463   o>     \n
  1442   sending listkeys command
  1464   sending listkeys command
  1443   i> write(9) -> 9:
  1465   i> write(9) -> 9:
  1444   i>     listkeys\n
  1466   i>     listkeys\n
  1464   i>     between\n
  1486   i>     between\n
  1465   i>     pairs 81\n
  1487   i>     pairs 81\n
  1466   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1488   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1467   i> flush() -> None
  1489   i> flush() -> None
  1468   o> readline() -> 4:
  1490   o> readline() -> 4:
  1469   o>     403\n
  1491   o>     413\n
  1470   o> readline() -> 403:
  1492   o> readline() -> 413:
  1471   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1493   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1472   o> readline() -> 2:
  1494   o> readline() -> 2:
  1473   o>     1\n
  1495   o>     1\n
  1474   o> readline() -> 1:
  1496   o> readline() -> 1:
  1475   o>     \n
  1497   o>     \n
  1476   sending listkeys command
  1498   sending listkeys command
  1495   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1517   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1496   i> flush() -> None
  1518   i> flush() -> None
  1497   o> readline() -> 62:
  1519   o> readline() -> 62:
  1498   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1520   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1499   o> readline() -> 4:
  1521   o> readline() -> 4:
  1500   o>     402\n
  1522   o>     412\n
  1501   o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
  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
  1502   o> read(1) -> 1:
  1524   o> read(1) -> 1:
  1503   o>     \n
  1525   o>     \n
  1504   sending listkeys command
  1526   sending listkeys command
  1505   i> write(9) -> 9:
  1527   i> write(9) -> 9:
  1506   i>     listkeys\n
  1528   i>     listkeys\n
  1527   i>     between\n
  1549   i>     between\n
  1528   i>     pairs 81\n
  1550   i>     pairs 81\n
  1529   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1551   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1530   i> flush() -> None
  1552   i> flush() -> None
  1531   o> readline() -> 4:
  1553   o> readline() -> 4:
  1532   o>     403\n
  1554   o>     413\n
  1533   o> readline() -> 403:
  1555   o> readline() -> 413:
  1534   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1556   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1535   o> readline() -> 2:
  1557   o> readline() -> 2:
  1536   o>     1\n
  1558   o>     1\n
  1537   o> readline() -> 1:
  1559   o> readline() -> 1:
  1538   o>     \n
  1560   o>     \n
  1539   sending listkeys command
  1561   sending listkeys command
  1560   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1582   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1561   i> flush() -> None
  1583   i> flush() -> None
  1562   o> readline() -> 62:
  1584   o> readline() -> 62:
  1563   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1585   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1564   o> readline() -> 4:
  1586   o> readline() -> 4:
  1565   o>     402\n
  1587   o>     412\n
  1566   o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
  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
  1567   o> read(1) -> 1:
  1589   o> read(1) -> 1:
  1568   o>     \n
  1590   o>     \n
  1569   sending listkeys command
  1591   sending listkeys command
  1570   i> write(9) -> 9:
  1592   i> write(9) -> 9:
  1571   i>     listkeys\n
  1593   i>     listkeys\n
  1596   i>     between\n
  1618   i>     between\n
  1597   i>     pairs 81\n
  1619   i>     pairs 81\n
  1598   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1620   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1599   i> flush() -> None
  1621   i> flush() -> None
  1600   o> readline() -> 4:
  1622   o> readline() -> 4:
  1601   o>     403\n
  1623   o>     413\n
  1602   o> readline() -> 403:
  1624   o> readline() -> 413:
  1603   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1625   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1604   o> readline() -> 2:
  1626   o> readline() -> 2:
  1605   o>     1\n
  1627   o>     1\n
  1606   o> readline() -> 1:
  1628   o> readline() -> 1:
  1607   o>     \n
  1629   o>     \n
  1608   sending pushkey command
  1630   sending pushkey command
  1636   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1658   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1637   i> flush() -> None
  1659   i> flush() -> None
  1638   o> readline() -> 62:
  1660   o> readline() -> 62:
  1639   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1661   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1640   o> readline() -> 4:
  1662   o> readline() -> 4:
  1641   o>     402\n
  1663   o>     412\n
  1642   o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
  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
  1643   o> read(1) -> 1:
  1665   o> read(1) -> 1:
  1644   o>     \n
  1666   o>     \n
  1645   sending pushkey command
  1667   sending pushkey command
  1646   i> write(8) -> 8:
  1668   i> write(8) -> 8:
  1647   i>     pushkey\n
  1669   i>     pushkey\n
  1688   i>     between\n
  1710   i>     between\n
  1689   i>     pairs 81\n
  1711   i>     pairs 81\n
  1690   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1712   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1691   i> flush() -> None
  1713   i> flush() -> None
  1692   o> readline() -> 4:
  1714   o> readline() -> 4:
  1693   o>     403\n
  1715   o>     413\n
  1694   o> readline() -> 403:
  1716   o> readline() -> 413:
  1695   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1717   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1696   o> readline() -> 2:
  1718   o> readline() -> 2:
  1697   o>     1\n
  1719   o>     1\n
  1698   o> readline() -> 1:
  1720   o> readline() -> 1:
  1699   o>     \n
  1721   o>     \n
  1700   sending listkeys command
  1722   sending listkeys command
  1719   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1741   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1720   i> flush() -> None
  1742   i> flush() -> None
  1721   o> readline() -> 62:
  1743   o> readline() -> 62:
  1722   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1744   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1723   o> readline() -> 4:
  1745   o> readline() -> 4:
  1724   o>     402\n
  1746   o>     412\n
  1725   o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
  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
  1726   o> read(1) -> 1:
  1748   o> read(1) -> 1:
  1727   o>     \n
  1749   o>     \n
  1728   sending listkeys command
  1750   sending listkeys command
  1729   i> write(9) -> 9:
  1751   i> write(9) -> 9:
  1730   i>     listkeys\n
  1752   i>     listkeys\n
  1767   i>     between\n
  1789   i>     between\n
  1768   i>     pairs 81\n
  1790   i>     pairs 81\n
  1769   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1791   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1770   i> flush() -> None
  1792   i> flush() -> None
  1771   o> readline() -> 4:
  1793   o> readline() -> 4:
  1772   o>     403\n
  1794   o>     413\n
  1773   o> readline() -> 403:
  1795   o> readline() -> 413:
  1774   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1796   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1775   o> readline() -> 2:
  1797   o> readline() -> 2:
  1776   o>     1\n
  1798   o>     1\n
  1777   o> readline() -> 1:
  1799   o> readline() -> 1:
  1778   o>     \n
  1800   o>     \n
  1779   sending listkeys command
  1801   sending listkeys command
  1801   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1823   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1802   i> flush() -> None
  1824   i> flush() -> None
  1803   o> readline() -> 62:
  1825   o> readline() -> 62:
  1804   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1826   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1805   o> readline() -> 4:
  1827   o> readline() -> 4:
  1806   o>     402\n
  1828   o>     412\n
  1807   o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
  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
  1808   o> read(1) -> 1:
  1830   o> read(1) -> 1:
  1809   o>     \n
  1831   o>     \n
  1810   sending listkeys command
  1832   sending listkeys command
  1811   i> write(9) -> 9:
  1833   i> write(9) -> 9:
  1812   i>     listkeys\n
  1834   i>     listkeys\n
  1836   i>     between\n
  1858   i>     between\n
  1837   i>     pairs 81\n
  1859   i>     pairs 81\n
  1838   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1860   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1839   i> flush() -> None
  1861   i> flush() -> None
  1840   o> readline() -> 4:
  1862   o> readline() -> 4:
  1841   o>     403\n
  1863   o>     413\n
  1842   o> readline() -> 403:
  1864   o> readline() -> 413:
  1843   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1865   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1844   o> readline() -> 2:
  1866   o> readline() -> 2:
  1845   o>     1\n
  1867   o>     1\n
  1846   o> readline() -> 1:
  1868   o> readline() -> 1:
  1847   o>     \n
  1869   o>     \n
  1848   sending listkeys command
  1870   sending listkeys command
  1869   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1891   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1870   i> flush() -> None
  1892   i> flush() -> None
  1871   o> readline() -> 62:
  1893   o> readline() -> 62:
  1872   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1894   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1873   o> readline() -> 4:
  1895   o> readline() -> 4:
  1874   o>     402\n
  1896   o>     412\n
  1875   o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
  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
  1876   o> read(1) -> 1:
  1898   o> read(1) -> 1:
  1877   o>     \n
  1899   o>     \n
  1878   sending listkeys command
  1900   sending listkeys command
  1879   i> write(9) -> 9:
  1901   i> write(9) -> 9:
  1880   i>     listkeys\n
  1902   i>     listkeys\n
  1903   i>     between\n
  1925   i>     between\n
  1904   i>     pairs 81\n
  1926   i>     pairs 81\n
  1905   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1927   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1906   i> flush() -> None
  1928   i> flush() -> None
  1907   o> readline() -> 4:
  1929   o> readline() -> 4:
  1908   o>     403\n
  1930   o>     413\n
  1909   o> readline() -> 403:
  1931   o> readline() -> 413:
  1910   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1932   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1911   o> readline() -> 2:
  1933   o> readline() -> 2:
  1912   o>     1\n
  1934   o>     1\n
  1913   o> readline() -> 1:
  1935   o> readline() -> 1:
  1914   o>     \n
  1936   o>     \n
  1915   sending listkeys command
  1937   sending listkeys command
  1934   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1956   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1935   i> flush() -> None
  1957   i> flush() -> None
  1936   o> readline() -> 62:
  1958   o> readline() -> 62:
  1937   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1959   o>     upgraded * exp-ssh-v2-0001\n (glob)
  1938   o> readline() -> 4:
  1960   o> readline() -> 4:
  1939   o>     402\n
  1961   o>     412\n
  1940   o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
  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
  1941   o> read(1) -> 1:
  1963   o> read(1) -> 1:
  1942   o>     \n
  1964   o>     \n
  1943   sending listkeys command
  1965   sending listkeys command
  1944   i> write(9) -> 9:
  1966   i> write(9) -> 9:
  1945   i>     listkeys\n
  1967   i>     listkeys\n
  1970   i>     between\n
  1992   i>     between\n
  1971   i>     pairs 81\n
  1993   i>     pairs 81\n
  1972   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1994   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1973   i> flush() -> None
  1995   i> flush() -> None
  1974   o> readline() -> 4:
  1996   o> readline() -> 4:
  1975   o>     403\n
  1997   o>     413\n
  1976   o> readline() -> 403:
  1998   o> readline() -> 413:
  1977   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  1999   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  1978   o> readline() -> 2:
  2000   o> readline() -> 2:
  1979   o>     1\n
  2001   o>     1\n
  1980   o> readline() -> 1:
  2002   o> readline() -> 1:
  1981   o>     \n
  2003   o>     \n
  1982   sending pushkey command
  2004   sending pushkey command
  2011   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2033   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2012   i> flush() -> None
  2034   i> flush() -> None
  2013   o> readline() -> 62:
  2035   o> readline() -> 62:
  2014   o>     upgraded * exp-ssh-v2-0001\n (glob)
  2036   o>     upgraded * exp-ssh-v2-0001\n (glob)
  2015   o> readline() -> 4:
  2037   o> readline() -> 4:
  2016   o>     402\n
  2038   o>     412\n
  2017   o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
  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
  2018   o> read(1) -> 1:
  2040   o> read(1) -> 1:
  2019   o>     \n
  2041   o>     \n
  2020   sending pushkey command
  2042   sending pushkey command
  2021   i> write(8) -> 8:
  2043   i> write(8) -> 8:
  2022   i>     pushkey\n
  2044   i>     pushkey\n
  2077   i>     between\n
  2099   i>     between\n
  2078   i>     pairs 81\n
  2100   i>     pairs 81\n
  2079   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2101   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2080   i> flush() -> None
  2102   i> flush() -> None
  2081   o> readline() -> 4:
  2103   o> readline() -> 4:
  2082   o>     403\n
  2104   o>     413\n
  2083   o> readline() -> 403:
  2105   o> readline() -> 413:
  2084   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch\n
  2106   o>     capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN protocaps batch\n
  2085   o> readline() -> 2:
  2107   o> readline() -> 2:
  2086   o>     1\n
  2108   o>     1\n
  2087   o> readline() -> 1:
  2109   o> readline() -> 1:
  2088   o>     \n
  2110   o>     \n
  2089   sending batch with 3 sub-commands
  2111   sending batch with 3 sub-commands
  2117   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2139   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2118   i> flush() -> None
  2140   i> flush() -> None
  2119   o> readline() -> 62:
  2141   o> readline() -> 62:
  2120   o>     upgraded * exp-ssh-v2-0001\n (glob)
  2142   o>     upgraded * exp-ssh-v2-0001\n (glob)
  2121   o> readline() -> 4:
  2143   o> readline() -> 4:
  2122   o>     402\n
  2144   o>     412\n
  2123   o> read(402) -> 402: capabilities: lookup branchmap pushkey known getbundle unbundlehash changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN batch
  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
  2124   o> read(1) -> 1:
  2146   o> read(1) -> 1:
  2125   o>     \n
  2147   o>     \n
  2126   sending batch with 3 sub-commands
  2148   sending batch with 3 sub-commands
  2127   i> write(6) -> 6:
  2149   i> write(6) -> 6:
  2128   i>     batch\n
  2150   i>     batch\n