tests/test-ssh-proto.t
changeset 40909 1a1b957f5f2a
parent 40176 41263df08109
child 40919 a0886a4d6dce
equal deleted inserted replaced
40908:f6904d60fc21 40909:1a1b957f5f2a
       
     1 TRANSITIONAL CONFIG
       
     2   $ cat << EOF >> $HGRCPATH
       
     3   > [format]
       
     4   > sparse-revlog = yes
       
     5   > EOF
       
     6 
     1 #require no-chg
     7 #require no-chg
     2 
     8 
     3   $ cat > hgrc-sshv2 << EOF
     9   $ cat > hgrc-sshv2 << EOF
     4   > %include $HGRCPATH
    10   > %include $HGRCPATH
     5   > [experimental]
    11   > [experimental]
    62   running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !)
    68   running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !)
    63   devel-peer-request: hello+between
    69   devel-peer-request: hello+between
    64   devel-peer-request:   pairs: 81 bytes
    70   devel-peer-request:   pairs: 81 bytes
    65   sending hello command
    71   sending hello command
    66   sending between command
    72   sending between command
    67   remote: 427
    73   remote: 440
    68   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
    74   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
    69   remote: 1
    75   remote: 1
    70   devel-peer-request: protocaps
    76   devel-peer-request: protocaps
    71   devel-peer-request:   caps: * bytes (glob)
    77   devel-peer-request:   caps: * bytes (glob)
    72   sending protocaps command
    78   sending protocaps command
    73   url: ssh://user@dummy/server
    79   url: ssh://user@dummy/server
    84   > EOF
    90   > EOF
    85   using raw connection to peer
    91   using raw connection to peer
    86   i> write(6) -> 6:
    92   i> write(6) -> 6:
    87   i>     hello\n
    93   i>     hello\n
    88   o> readline() -> 4:
    94   o> readline() -> 4:
    89   o>     427\n
    95   o>     440\n
    90   o> readline() -> 427:
    96   o> readline() -> 440:
    91   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
    97   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
    92 
    98 
    93 `hg debugserve --sshstdio` works
    99 `hg debugserve --sshstdio` works
    94 
   100 
    95   $ cd server
   101   $ cd server
    96   $ hg debugserve --sshstdio << EOF
   102   $ hg debugserve --sshstdio << EOF
    97   > hello
   103   > hello
    98   > EOF
   104   > EOF
    99   427
   105   440
   100   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   106   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   101 
   107 
   102 I/O logging works
   108 I/O logging works
   103 
   109 
   104   $ hg debugserve --sshstdio --logiofd 1 << EOF
   110   $ hg debugserve --sshstdio --logiofd 1 << EOF
   105   > hello
   111   > hello
   106   > EOF
   112   > EOF
   107   o> write(4) -> 4:
   113   o> write(4) -> 4:
   108   o>     427\n
   114   o>     440\n
   109   o> write(427) -> 427:
   115   o> write(440) -> 440:
   110   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   116   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   111   427
   117   440
   112   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   118   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   113   o> flush() -> None
   119   o> flush() -> None
   114 
   120 
   115   $ hg debugserve --sshstdio --logiofile $TESTTMP/io << EOF
   121   $ hg debugserve --sshstdio --logiofile $TESTTMP/io << EOF
   116   > hello
   122   > hello
   117   > EOF
   123   > EOF
   118   427
   124   440
   119   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   125   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   120 
   126 
   121   $ cat $TESTTMP/io
   127   $ cat $TESTTMP/io
   122   o> write(4) -> 4:
   128   o> write(4) -> 4:
   123   o>     427\n
   129   o>     440\n
   124   o> write(427) -> 427:
   130   o> write(440) -> 440:
   125   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   131   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   126   o> flush() -> None
   132   o> flush() -> None
   127 
   133 
   128   $ cd ..
   134   $ cd ..
   129 
   135 
   130 >=0.9.1 clients send a "hello" + "between" for the null range as part of handshake.
   136 >=0.9.1 clients send a "hello" + "between" for the null range as part of handshake.
   145   > EOF
   151   > EOF
   146   using raw connection to peer
   152   using raw connection to peer
   147   i> write(6) -> 6:
   153   i> write(6) -> 6:
   148   i>     hello\n
   154   i>     hello\n
   149   o> readline() -> 4:
   155   o> readline() -> 4:
   150   o>     427\n
   156   o>     440\n
   151   o> readline() -> 427:
   157   o> readline() -> 440:
   152   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   158   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   153   i> write(98) -> 98:
   159   i> write(98) -> 98:
   154   i>     between\n
   160   i>     between\n
   155   i>     pairs 81\n
   161   i>     pairs 81\n
   156   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   162   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   157   o> readline() -> 2:
   163   o> readline() -> 2:
   183   remote: banner: line 5
   189   remote: banner: line 5
   184   remote: banner: line 6
   190   remote: banner: line 6
   185   remote: banner: line 7
   191   remote: banner: line 7
   186   remote: banner: line 8
   192   remote: banner: line 8
   187   remote: banner: line 9
   193   remote: banner: line 9
   188   remote: 427
   194   remote: 440
   189   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   195   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   190   remote: 1
   196   remote: 1
   191   devel-peer-request: protocaps
   197   devel-peer-request: protocaps
   192   devel-peer-request:   caps: * bytes (glob)
   198   devel-peer-request:   caps: * bytes (glob)
   193   sending protocaps command
   199   sending protocaps command
   194   url: ssh://user@dummy/server
   200   url: ssh://user@dummy/server
   241   o> readline() -> 15:
   247   o> readline() -> 15:
   242   o>     banner: line 8\n
   248   o>     banner: line 8\n
   243   o> readline() -> 15:
   249   o> readline() -> 15:
   244   o>     banner: line 9\n
   250   o>     banner: line 9\n
   245   o> readline() -> 4:
   251   o> readline() -> 4:
   246   o>     427\n
   252   o>     440\n
   247   o> readline() -> 427:
   253   o> readline() -> 440:
   248   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   254   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   249   i> write(98) -> 98:
   255   i> write(98) -> 98:
   250   i>     between\n
   256   i>     between\n
   251   i>     pairs 81\n
   257   i>     pairs 81\n
   252   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   258   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   253   o> readline() -> 2:
   259   o> readline() -> 2:
   293   o> readline() -> 2:
   299   o> readline() -> 2:
   294   o>     0\n
   300   o>     0\n
   295   i> write(6) -> 6:
   301   i> write(6) -> 6:
   296   i>     hello\n
   302   i>     hello\n
   297   o> readline() -> 4:
   303   o> readline() -> 4:
   298   o>     427\n
   304   o>     440\n
   299   i> write(98) -> 98:
   305   i> write(98) -> 98:
   300   i>     between\n
   306   i>     between\n
   301   i>     pairs 81\n
   307   i>     pairs 81\n
   302   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   308   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   303   o> readline() -> 427:
   309   o> readline() -> 440:
   304   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   310   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   305   o> readline() -> 2:
   311   o> readline() -> 2:
   306   o>     1\n
   312   o>     1\n
   307 
   313 
   308   $ hg --config sshpeer.mode=extra-handshake-commands --config sshpeer.handshake-mode=pre-no-args --debug debugpeer ssh://user@dummy/server
   314   $ hg --config sshpeer.mode=extra-handshake-commands --config sshpeer.handshake-mode=pre-no-args --debug debugpeer ssh://user@dummy/server
   309   running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !)
   315   running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !)
   312   devel-peer-request: hello+between
   318   devel-peer-request: hello+between
   313   devel-peer-request:   pairs: 81 bytes
   319   devel-peer-request:   pairs: 81 bytes
   314   sending hello command
   320   sending hello command
   315   sending between command
   321   sending between command
   316   remote: 0
   322   remote: 0
   317   remote: 427
   323   remote: 440
   318   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   324   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   319   remote: 1
   325   remote: 1
   320   devel-peer-request: protocaps
   326   devel-peer-request: protocaps
   321   devel-peer-request:   caps: * bytes (glob)
   327   devel-peer-request:   caps: * bytes (glob)
   322   sending protocaps command
   328   sending protocaps command
   323   url: ssh://user@dummy/server
   329   url: ssh://user@dummy/server
   361   o> readline() -> 2:
   367   o> readline() -> 2:
   362   o>     0\n
   368   o>     0\n
   363   i> write(6) -> 6:
   369   i> write(6) -> 6:
   364   i>     hello\n
   370   i>     hello\n
   365   o> readline() -> 4:
   371   o> readline() -> 4:
   366   o>     427\n
   372   o>     440\n
   367   o> readline() -> 427:
   373   o> readline() -> 440:
   368   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   374   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   369   i> write(98) -> 98:
   375   i> write(98) -> 98:
   370   i>     between\n
   376   i>     between\n
   371   i>     pairs 81\n
   377   i>     pairs 81\n
   372   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   378   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   373   o> readline() -> 2:
   379   o> readline() -> 2:
   386   sending hello command
   392   sending hello command
   387   sending between command
   393   sending between command
   388   remote: 0
   394   remote: 0
   389   remote: 0
   395   remote: 0
   390   remote: 0
   396   remote: 0
   391   remote: 427
   397   remote: 440
   392   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   398   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   393   remote: 1
   399   remote: 1
   394   devel-peer-request: protocaps
   400   devel-peer-request: protocaps
   395   devel-peer-request:   caps: * bytes (glob)
   401   devel-peer-request:   caps: * bytes (glob)
   396   sending protocaps command
   402   sending protocaps command
   397   url: ssh://user@dummy/server
   403   url: ssh://user@dummy/server
   443   o> readline() -> 2:
   449   o> readline() -> 2:
   444   o>     0\n
   450   o>     0\n
   445   i> write(6) -> 6:
   451   i> write(6) -> 6:
   446   i>     hello\n
   452   i>     hello\n
   447   o> readline() -> 4:
   453   o> readline() -> 4:
   448   o>     427\n
   454   o>     440\n
   449   o> readline() -> 427:
   455   o> readline() -> 440:
   450   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   456   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   451   i> write(98) -> 98:
   457   i> write(98) -> 98:
   452   i>     between\n
   458   i>     between\n
   453   i>     pairs 81\n
   459   i>     pairs 81\n
   454   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   460   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   455   o> readline() -> 2:
   461   o> readline() -> 2:
   490   o> readline() -> 2:
   496   o> readline() -> 2:
   491   o>     0\n
   497   o>     0\n
   492   i> write(6) -> 6:
   498   i> write(6) -> 6:
   493   i>     hello\n
   499   i>     hello\n
   494   o> readline() -> 4:
   500   o> readline() -> 4:
   495   o>     427\n
   501   o>     440\n
   496   o> readline() -> 427:
   502   o> readline() -> 440:
   497   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   503   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   498   i> write(98) -> 98:
   504   i> write(98) -> 98:
   499   i>     between\n
   505   i>     between\n
   500   i>     pairs 81\n
   506   i>     pairs 81\n
   501   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   507   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   502   o> readline() -> 2:
   508   o> readline() -> 2:
   535   o> readline() -> 2:
   541   o> readline() -> 2:
   536   o>     0\n
   542   o>     0\n
   537   i> write(6) -> 6:
   543   i> write(6) -> 6:
   538   i>     hello\n
   544   i>     hello\n
   539   o> readline() -> 4:
   545   o> readline() -> 4:
   540   o>     427\n
   546   o>     440\n
   541   o> readline() -> 427:
   547   o> readline() -> 440:
   542   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   548   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   543   i> write(98) -> 98:
   549   i> write(98) -> 98:
   544   i>     between\n
   550   i>     between\n
   545   i>     pairs 81\n
   551   i>     pairs 81\n
   546   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   552   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   547   o> readline() -> 2:
   553   o> readline() -> 2:
   605   o> readline() -> 2:
   611   o> readline() -> 2:
   606   o>     0\n
   612   o>     0\n
   607   i> write(6) -> 6:
   613   i> write(6) -> 6:
   608   i>     hello\n
   614   i>     hello\n
   609   o> readline() -> 4:
   615   o> readline() -> 4:
   610   o>     427\n
   616   o>     440\n
   611   o> readline() -> 427:
   617   o> readline() -> 440:
   612   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   618   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   613 
   619 
   614 Incomplete dictionary send
   620 Incomplete dictionary send
   615 
   621 
   616   $ hg debugwireproto --localssh --peer raw << EOF
   622   $ hg debugwireproto --localssh --peer raw << EOF
   617   > raw
   623   > raw
   687   o> readline() -> 2:
   693   o> readline() -> 2:
   688   o>     0\n
   694   o>     0\n
   689   i> write(6) -> 6:
   695   i> write(6) -> 6:
   690   i>     hello\n
   696   i>     hello\n
   691   o> readline() -> 4:
   697   o> readline() -> 4:
   692   o>     427\n
   698   o>     440\n
   693   o> readline() -> 427:
   699   o> readline() -> 440:
   694   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   700   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   695   i> write(98) -> 98:
   701   i> write(98) -> 98:
   696   i>     between\n
   702   i>     between\n
   697   i>     pairs 81\n
   703   i>     pairs 81\n
   698   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   704   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   699   o> readline() -> 2:
   705   o> readline() -> 2:
   721   o> readline() -> 2:
   727   o> readline() -> 2:
   722   o>     0\n
   728   o>     0\n
   723   i> write(6) -> 6:
   729   i> write(6) -> 6:
   724   i>     hello\n
   730   i>     hello\n
   725   o> readline() -> 4:
   731   o> readline() -> 4:
   726   o>     427\n
   732   o>     440\n
   727   o> readline() -> 427:
   733   o> readline() -> 440:
   728   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   734   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   729   i> write(98) -> 98:
   735   i> write(98) -> 98:
   730   i>     between\n
   736   i>     between\n
   731   i>     pairs 81\n
   737   i>     pairs 81\n
   732   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   738   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   733   o> readline() -> 2:
   739   o> readline() -> 2:
   764   o> readline() -> 2:
   770   o> readline() -> 2:
   765   o>     0\n
   771   o>     0\n
   766   i> write(6) -> 6:
   772   i> write(6) -> 6:
   767   i>     hello\n
   773   i>     hello\n
   768   o> readline() -> 4:
   774   o> readline() -> 4:
   769   o>     427\n
   775   o>     440\n
   770   o> readline() -> 427:
   776   o> readline() -> 440:
   771   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   777   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   772   i> write(98) -> 98:
   778   i> write(98) -> 98:
   773   i>     between\n
   779   i>     between\n
   774   i>     pairs 81\n
   780   i>     pairs 81\n
   775   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   781   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   776   o> readline() -> 2:
   782   o> readline() -> 2:
   793   > EOF
   799   > EOF
   794   using raw connection to peer
   800   using raw connection to peer
   795   i> write(6) -> 6:
   801   i> write(6) -> 6:
   796   i>     hello\n
   802   i>     hello\n
   797   o> readline() -> 4:
   803   o> readline() -> 4:
   798   o>     427\n
   804   o>     440\n
   799   o> readline() -> 427:
   805   o> readline() -> 440:
   800   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   806   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   801   i> write(105) -> 105:
   807   i> write(105) -> 105:
   802   i>     between\n
   808   i>     between\n
   803   i>     pairs 81\n
   809   i>     pairs 81\n
   804   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000unknown
   810   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000unknown
   805   o> readline() -> 2:
   811   o> readline() -> 2:
   834   i>     hello\n
   840   i>     hello\n
   835   i>     between\n
   841   i>     between\n
   836   i>     pairs 81\n
   842   i>     pairs 81\n
   837   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   843   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   838   o> readline() -> 4:
   844   o> readline() -> 4:
   839   o>     427\n
   845   o>     440\n
   840   o> readline() -> 427:
   846   o> readline() -> 440:
   841   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   847   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   842   o> readline() -> 2:
   848   o> readline() -> 2:
   843   o>     1\n
   849   o>     1\n
   844   o> readline() -> 1:
   850   o> readline() -> 1:
   845   o>     \n
   851   o>     \n
   846   i> write(31) -> 31:
   852   i> write(31) -> 31:
   883   i>     pairs 81\n
   889   i>     pairs 81\n
   884   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   890   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   885   o> readline() -> 41:
   891   o> readline() -> 41:
   886   o>     68986213bd4485ea51533535e3fc9e78007a711f\n
   892   o>     68986213bd4485ea51533535e3fc9e78007a711f\n
   887   o> readline() -> 4:
   893   o> readline() -> 4:
   888   o>     427\n
   894   o>     440\n
   889   o> readline() -> 427:
   895   o> readline() -> 440:
   890   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   896   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   891   o> readline() -> 2:
   897   o> readline() -> 2:
   892   o>     1\n
   898   o>     1\n
   893 
   899 
   894 And a variation that doesn't send the between command
   900 And a variation that doesn't send the between command
   895 
   901 
   910   i> write(6) -> 6:
   916   i> write(6) -> 6:
   911   i>     hello\n
   917   i>     hello\n
   912   o> readline() -> 41:
   918   o> readline() -> 41:
   913   o>     68986213bd4485ea51533535e3fc9e78007a711f\n
   919   o>     68986213bd4485ea51533535e3fc9e78007a711f\n
   914   o> readline() -> 4:
   920   o> readline() -> 4:
   915   o>     427\n
   921   o>     440\n
   916 
   922 
   917 Send an upgrade request to a server that doesn't support that command
   923 Send an upgrade request to a server that doesn't support that command
   918 
   924 
   919   $ hg debugwireproto --localssh --peer raw << EOF
   925   $ hg debugwireproto --localssh --peer raw << EOF
   920   > raw
   926   > raw
   939   i>     hello\n
   945   i>     hello\n
   940   i>     between\n
   946   i>     between\n
   941   i>     pairs 81\n
   947   i>     pairs 81\n
   942   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   948   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   943   o> readline() -> 4:
   949   o> readline() -> 4:
   944   o>     427\n
   950   o>     440\n
   945   o> readline() -> 427:
   951   o> readline() -> 440:
   946   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   952   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   947   o> readline() -> 2:
   953   o> readline() -> 2:
   948   o>     1\n
   954   o>     1\n
   949   o> readline() -> 1:
   955   o> readline() -> 1:
   950   o>     \n
   956   o>     \n
   951 
   957 
   958   devel-peer-request: hello+between
   964   devel-peer-request: hello+between
   959   devel-peer-request:   pairs: 81 bytes
   965   devel-peer-request:   pairs: 81 bytes
   960   sending hello command
   966   sending hello command
   961   sending between command
   967   sending between command
   962   remote: 0
   968   remote: 0
   963   remote: 427
   969   remote: 440
   964   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   970   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   965   remote: 1
   971   remote: 1
   966   devel-peer-request: protocaps
   972   devel-peer-request: protocaps
   967   devel-peer-request:   caps: * bytes (glob)
   973   devel-peer-request:   caps: * bytes (glob)
   968   sending protocaps command
   974   sending protocaps command
   969   url: ssh://user@dummy/server
   975   url: ssh://user@dummy/server
  1001   i>     pairs 81\n
  1007   i>     pairs 81\n
  1002   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1008   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1003   o> readline() -> 44:
  1009   o> readline() -> 44:
  1004   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1010   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1005   o> readline() -> 4:
  1011   o> readline() -> 4:
  1006   o>     426\n
  1012   o>     439\n
  1007   o> readline() -> 427:
  1013   o> readline() -> 440:
  1008   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1014   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1009 
  1015 
  1010   $ cd ..
  1016   $ cd ..
  1011 
  1017 
  1012   $ hg --config experimental.sshpeer.advertise-v2=true --debug debugpeer ssh://user@dummy/server
  1018   $ hg --config experimental.sshpeer.advertise-v2=true --debug debugpeer ssh://user@dummy/server
  1013   running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !)
  1019   running * "*/tests/dummyssh" 'user@dummy' 'hg -R server serve --stdio' (glob) (no-windows !)
  1016   devel-peer-request: hello+between
  1022   devel-peer-request: hello+between
  1017   devel-peer-request:   pairs: 81 bytes
  1023   devel-peer-request:   pairs: 81 bytes
  1018   sending hello command
  1024   sending hello command
  1019   sending between command
  1025   sending between command
  1020   protocol upgraded to exp-ssh-v2-0003
  1026   protocol upgraded to exp-ssh-v2-0003
  1021   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1027   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1022   devel-peer-request: protocaps
  1028   devel-peer-request: protocaps
  1023   devel-peer-request:   caps: * bytes (glob)
  1029   devel-peer-request:   caps: * bytes (glob)
  1024   sending protocaps command
  1030   sending protocaps command
  1025   url: ssh://user@dummy/server
  1031   url: ssh://user@dummy/server
  1026   local: no
  1032   local: no
  1035   devel-peer-request: hello+between
  1041   devel-peer-request: hello+between
  1036   devel-peer-request:   pairs: 81 bytes
  1042   devel-peer-request:   pairs: 81 bytes
  1037   sending hello command
  1043   sending hello command
  1038   sending between command
  1044   sending between command
  1039   protocol upgraded to exp-ssh-v2-0003
  1045   protocol upgraded to exp-ssh-v2-0003
  1040   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1046   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1041   devel-peer-request: protocaps
  1047   devel-peer-request: protocaps
  1042   devel-peer-request:   caps: * bytes (glob)
  1048   devel-peer-request:   caps: * bytes (glob)
  1043   sending protocaps command
  1049   sending protocaps command
  1044   Main capabilities:
  1050   Main capabilities:
  1045     batch
  1051     batch
  1049     getbundle
  1055     getbundle
  1050     known
  1056     known
  1051     lookup
  1057     lookup
  1052     protocaps
  1058     protocaps
  1053     pushkey
  1059     pushkey
  1054     streamreqs=generaldelta,revlogv1
  1060     streamreqs=generaldelta,revlogv1,sparserevlog
  1055     unbundle=HG10GZ,HG10BZ,HG10UN
  1061     unbundle=HG10GZ,HG10BZ,HG10UN
  1056     unbundlehash
  1062     unbundlehash
  1057   Bundle2 capabilities:
  1063   Bundle2 capabilities:
  1058     HG20
  1064     HG20
  1059     bookmarks
  1065     bookmarks
  1108   i>     pairs 81\n
  1114   i>     pairs 81\n
  1109   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1115   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1110   o> readline() -> 44:
  1116   o> readline() -> 44:
  1111   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1117   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1112   o> readline() -> 4:
  1118   o> readline() -> 4:
  1113   o>     426\n
  1119   o>     439\n
  1114   o> readline() -> 427:
  1120   o> readline() -> 440:
  1115   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1121   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1116   i> write(6) -> 6:
  1122   i> write(6) -> 6:
  1117   i>     hello\n
  1123   i>     hello\n
  1118   o> readline() -> 4:
  1124   o> readline() -> 4:
  1119   o>     411\n
  1125   o>     424\n
  1120   o> readline() -> 411:
  1126   o> readline() -> 424:
  1121   o>     capabilities: branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1127   o>     capabilities: branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1122 
  1128 
  1123 Multiple upgrades is not allowed
  1129 Multiple upgrades is not allowed
  1124 
  1130 
  1125   $ hg debugwireproto --localssh --peer raw << EOF
  1131   $ hg debugwireproto --localssh --peer raw << EOF
  1126   > raw
  1132   > raw
  1146   i>     pairs 81\n
  1152   i>     pairs 81\n
  1147   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1153   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1148   o> readline() -> 44:
  1154   o> readline() -> 44:
  1149   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1155   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1150   o> readline() -> 4:
  1156   o> readline() -> 4:
  1151   o>     426\n
  1157   o>     439\n
  1152   o> readline() -> 427:
  1158   o> readline() -> 440:
  1153   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1159   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1154   i> write(45) -> 45:
  1160   i> write(45) -> 45:
  1155   i>     upgrade another-token proto=irrelevant\n
  1161   i>     upgrade another-token proto=irrelevant\n
  1156   i>     hello\n
  1162   i>     hello\n
  1157   o> readline() -> 1:
  1163   o> readline() -> 1:
  1158   o>     \n
  1164   o>     \n
  1218   o> readline() -> 2:
  1224   o> readline() -> 2:
  1219   o>     0\n
  1225   o>     0\n
  1220   i> write(6) -> 6:
  1226   i> write(6) -> 6:
  1221   i>     hello\n
  1227   i>     hello\n
  1222   o> readline() -> 4:
  1228   o> readline() -> 4:
  1223   o>     427\n
  1229   o>     440\n
  1224   o> readline() -> 427:
  1230   o> readline() -> 440:
  1225   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1231   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1226   i> write(98) -> 98:
  1232   i> write(98) -> 98:
  1227   i>     between\n
  1233   i>     between\n
  1228   i>     pairs 81\n
  1234   i>     pairs 81\n
  1229   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1235   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1230   o> readline() -> 2:
  1236   o> readline() -> 2:
  1337   i>     between\n
  1343   i>     between\n
  1338   i>     pairs 81\n
  1344   i>     pairs 81\n
  1339   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1345   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1340   i> flush() -> None
  1346   i> flush() -> None
  1341   o> readline() -> 4:
  1347   o> readline() -> 4:
  1342   o>     427\n
  1348   o>     440\n
  1343   o> readline() -> 427:
  1349   o> readline() -> 440:
  1344   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1350   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1345   o> readline() -> 2:
  1351   o> readline() -> 2:
  1346   o>     1\n
  1352   o>     1\n
  1347   o> readline() -> 1:
  1353   o> readline() -> 1:
  1348   o>     \n
  1354   o>     \n
  1349   sending listkeys command
  1355   sending listkeys command
  1375   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1381   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1376   i> flush() -> None
  1382   i> flush() -> None
  1377   o> readline() -> 62:
  1383   o> readline() -> 62:
  1378   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1384   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1379   o> readline() -> 4:
  1385   o> readline() -> 4:
  1380   o>     426\n
  1386   o>     439\n
  1381   o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1387   o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1382   o> read(1) -> 1:
  1388   o> read(1) -> 1:
  1383   o>     \n
  1389   o>     \n
  1384   sending listkeys command
  1390   sending listkeys command
  1385   i> write(9) -> 9:
  1391   i> write(9) -> 9:
  1386   i>     listkeys\n
  1392   i>     listkeys\n
  1425   i>     between\n
  1431   i>     between\n
  1426   i>     pairs 81\n
  1432   i>     pairs 81\n
  1427   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1433   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1428   i> flush() -> None
  1434   i> flush() -> None
  1429   o> readline() -> 4:
  1435   o> readline() -> 4:
  1430   o>     427\n
  1436   o>     440\n
  1431   o> readline() -> 427:
  1437   o> readline() -> 440:
  1432   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1438   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1433   o> readline() -> 2:
  1439   o> readline() -> 2:
  1434   o>     1\n
  1440   o>     1\n
  1435   o> readline() -> 1:
  1441   o> readline() -> 1:
  1436   o>     \n
  1442   o>     \n
  1437   sending listkeys command
  1443   sending listkeys command
  1455   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1461   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1456   i> flush() -> None
  1462   i> flush() -> None
  1457   o> readline() -> 62:
  1463   o> readline() -> 62:
  1458   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1464   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1459   o> readline() -> 4:
  1465   o> readline() -> 4:
  1460   o>     426\n
  1466   o>     439\n
  1461   o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1467   o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1462   o> read(1) -> 1:
  1468   o> read(1) -> 1:
  1463   o>     \n
  1469   o>     \n
  1464   sending listkeys command
  1470   sending listkeys command
  1465   i> write(9) -> 9:
  1471   i> write(9) -> 9:
  1466   i>     listkeys\n
  1472   i>     listkeys\n
  1486   i>     between\n
  1492   i>     between\n
  1487   i>     pairs 81\n
  1493   i>     pairs 81\n
  1488   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1494   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1489   i> flush() -> None
  1495   i> flush() -> None
  1490   o> readline() -> 4:
  1496   o> readline() -> 4:
  1491   o>     427\n
  1497   o>     440\n
  1492   o> readline() -> 427:
  1498   o> readline() -> 440:
  1493   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1499   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1494   o> readline() -> 2:
  1500   o> readline() -> 2:
  1495   o>     1\n
  1501   o>     1\n
  1496   o> readline() -> 1:
  1502   o> readline() -> 1:
  1497   o>     \n
  1503   o>     \n
  1498   sending listkeys command
  1504   sending listkeys command
  1519   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1525   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1520   i> flush() -> None
  1526   i> flush() -> None
  1521   o> readline() -> 62:
  1527   o> readline() -> 62:
  1522   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1528   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1523   o> readline() -> 4:
  1529   o> readline() -> 4:
  1524   o>     426\n
  1530   o>     439\n
  1525   o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1531   o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1526   o> read(1) -> 1:
  1532   o> read(1) -> 1:
  1527   o>     \n
  1533   o>     \n
  1528   sending listkeys command
  1534   sending listkeys command
  1529   i> write(9) -> 9:
  1535   i> write(9) -> 9:
  1530   i>     listkeys\n
  1536   i>     listkeys\n
  1553   i>     between\n
  1559   i>     between\n
  1554   i>     pairs 81\n
  1560   i>     pairs 81\n
  1555   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1561   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1556   i> flush() -> None
  1562   i> flush() -> None
  1557   o> readline() -> 4:
  1563   o> readline() -> 4:
  1558   o>     427\n
  1564   o>     440\n
  1559   o> readline() -> 427:
  1565   o> readline() -> 440:
  1560   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1566   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1561   o> readline() -> 2:
  1567   o> readline() -> 2:
  1562   o>     1\n
  1568   o>     1\n
  1563   o> readline() -> 1:
  1569   o> readline() -> 1:
  1564   o>     \n
  1570   o>     \n
  1565   sending listkeys command
  1571   sending listkeys command
  1589   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1595   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1590   i> flush() -> None
  1596   i> flush() -> None
  1591   o> readline() -> 62:
  1597   o> readline() -> 62:
  1592   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1598   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1593   o> readline() -> 4:
  1599   o> readline() -> 4:
  1594   o>     426\n
  1600   o>     439\n
  1595   o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1601   o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1596   o> read(1) -> 1:
  1602   o> read(1) -> 1:
  1597   o>     \n
  1603   o>     \n
  1598   sending listkeys command
  1604   sending listkeys command
  1599   i> write(9) -> 9:
  1605   i> write(9) -> 9:
  1600   i>     listkeys\n
  1606   i>     listkeys\n
  1628   i>     between\n
  1634   i>     between\n
  1629   i>     pairs 81\n
  1635   i>     pairs 81\n
  1630   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1636   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1631   i> flush() -> None
  1637   i> flush() -> None
  1632   o> readline() -> 4:
  1638   o> readline() -> 4:
  1633   o>     427\n
  1639   o>     440\n
  1634   o> readline() -> 427:
  1640   o> readline() -> 440:
  1635   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1641   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1636   o> readline() -> 2:
  1642   o> readline() -> 2:
  1637   o>     1\n
  1643   o>     1\n
  1638   o> readline() -> 1:
  1644   o> readline() -> 1:
  1639   o>     \n
  1645   o>     \n
  1640   sending pushkey command
  1646   sending pushkey command
  1668   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1674   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1669   i> flush() -> None
  1675   i> flush() -> None
  1670   o> readline() -> 62:
  1676   o> readline() -> 62:
  1671   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1677   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1672   o> readline() -> 4:
  1678   o> readline() -> 4:
  1673   o>     426\n
  1679   o>     439\n
  1674   o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1680   o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1675   o> read(1) -> 1:
  1681   o> read(1) -> 1:
  1676   o>     \n
  1682   o>     \n
  1677   sending pushkey command
  1683   sending pushkey command
  1678   i> write(8) -> 8:
  1684   i> write(8) -> 8:
  1679   i>     pushkey\n
  1685   i>     pushkey\n
  1720   i>     between\n
  1726   i>     between\n
  1721   i>     pairs 81\n
  1727   i>     pairs 81\n
  1722   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1728   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1723   i> flush() -> None
  1729   i> flush() -> None
  1724   o> readline() -> 4:
  1730   o> readline() -> 4:
  1725   o>     427\n
  1731   o>     440\n
  1726   o> readline() -> 427:
  1732   o> readline() -> 440:
  1727   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1733   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1728   o> readline() -> 2:
  1734   o> readline() -> 2:
  1729   o>     1\n
  1735   o>     1\n
  1730   o> readline() -> 1:
  1736   o> readline() -> 1:
  1731   o>     \n
  1737   o>     \n
  1732   sending listkeys command
  1738   sending listkeys command
  1753   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1759   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1754   i> flush() -> None
  1760   i> flush() -> None
  1755   o> readline() -> 62:
  1761   o> readline() -> 62:
  1756   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1762   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1757   o> readline() -> 4:
  1763   o> readline() -> 4:
  1758   o>     426\n
  1764   o>     439\n
  1759   o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1765   o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1760   o> read(1) -> 1:
  1766   o> read(1) -> 1:
  1761   o>     \n
  1767   o>     \n
  1762   sending listkeys command
  1768   sending listkeys command
  1763   i> write(9) -> 9:
  1769   i> write(9) -> 9:
  1764   i>     listkeys\n
  1770   i>     listkeys\n
  1803   i>     between\n
  1809   i>     between\n
  1804   i>     pairs 81\n
  1810   i>     pairs 81\n
  1805   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1811   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1806   i> flush() -> None
  1812   i> flush() -> None
  1807   o> readline() -> 4:
  1813   o> readline() -> 4:
  1808   o>     427\n
  1814   o>     440\n
  1809   o> readline() -> 427:
  1815   o> readline() -> 440:
  1810   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1816   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1811   o> readline() -> 2:
  1817   o> readline() -> 2:
  1812   o>     1\n
  1818   o>     1\n
  1813   o> readline() -> 1:
  1819   o> readline() -> 1:
  1814   o>     \n
  1820   o>     \n
  1815   sending listkeys command
  1821   sending listkeys command
  1841   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1847   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1842   i> flush() -> None
  1848   i> flush() -> None
  1843   o> readline() -> 62:
  1849   o> readline() -> 62:
  1844   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1850   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1845   o> readline() -> 4:
  1851   o> readline() -> 4:
  1846   o>     426\n
  1852   o>     439\n
  1847   o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1853   o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1848   o> read(1) -> 1:
  1854   o> read(1) -> 1:
  1849   o>     \n
  1855   o>     \n
  1850   sending listkeys command
  1856   sending listkeys command
  1851   i> write(9) -> 9:
  1857   i> write(9) -> 9:
  1852   i>     listkeys\n
  1858   i>     listkeys\n
  1880   i>     between\n
  1886   i>     between\n
  1881   i>     pairs 81\n
  1887   i>     pairs 81\n
  1882   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1888   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1883   i> flush() -> None
  1889   i> flush() -> None
  1884   o> readline() -> 4:
  1890   o> readline() -> 4:
  1885   o>     427\n
  1891   o>     440\n
  1886   o> readline() -> 427:
  1892   o> readline() -> 440:
  1887   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1893   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1888   o> readline() -> 2:
  1894   o> readline() -> 2:
  1889   o>     1\n
  1895   o>     1\n
  1890   o> readline() -> 1:
  1896   o> readline() -> 1:
  1891   o>     \n
  1897   o>     \n
  1892   sending listkeys command
  1898   sending listkeys command
  1916   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1922   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1917   i> flush() -> None
  1923   i> flush() -> None
  1918   o> readline() -> 62:
  1924   o> readline() -> 62:
  1919   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1925   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1920   o> readline() -> 4:
  1926   o> readline() -> 4:
  1921   o>     426\n
  1927   o>     439\n
  1922   o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1928   o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1923   o> read(1) -> 1:
  1929   o> read(1) -> 1:
  1924   o>     \n
  1930   o>     \n
  1925   sending listkeys command
  1931   sending listkeys command
  1926   i> write(9) -> 9:
  1932   i> write(9) -> 9:
  1927   i>     listkeys\n
  1933   i>     listkeys\n
  1953   i>     between\n
  1959   i>     between\n
  1954   i>     pairs 81\n
  1960   i>     pairs 81\n
  1955   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1961   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1956   i> flush() -> None
  1962   i> flush() -> None
  1957   o> readline() -> 4:
  1963   o> readline() -> 4:
  1958   o>     427\n
  1964   o>     440\n
  1959   o> readline() -> 427:
  1965   o> readline() -> 440:
  1960   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1966   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1961   o> readline() -> 2:
  1967   o> readline() -> 2:
  1962   o>     1\n
  1968   o>     1\n
  1963   o> readline() -> 1:
  1969   o> readline() -> 1:
  1964   o>     \n
  1970   o>     \n
  1965   sending listkeys command
  1971   sending listkeys command
  1986   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1992   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1987   i> flush() -> None
  1993   i> flush() -> None
  1988   o> readline() -> 62:
  1994   o> readline() -> 62:
  1989   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1995   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1990   o> readline() -> 4:
  1996   o> readline() -> 4:
  1991   o>     426\n
  1997   o>     439\n
  1992   o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1998   o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1993   o> read(1) -> 1:
  1999   o> read(1) -> 1:
  1994   o>     \n
  2000   o>     \n
  1995   sending listkeys command
  2001   sending listkeys command
  1996   i> write(9) -> 9:
  2002   i> write(9) -> 9:
  1997   i>     listkeys\n
  2003   i>     listkeys\n
  2024   i>     between\n
  2030   i>     between\n
  2025   i>     pairs 81\n
  2031   i>     pairs 81\n
  2026   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2032   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2027   i> flush() -> None
  2033   i> flush() -> None
  2028   o> readline() -> 4:
  2034   o> readline() -> 4:
  2029   o>     427\n
  2035   o>     440\n
  2030   o> readline() -> 427:
  2036   o> readline() -> 440:
  2031   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  2037   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  2032   o> readline() -> 2:
  2038   o> readline() -> 2:
  2033   o>     1\n
  2039   o>     1\n
  2034   o> readline() -> 1:
  2040   o> readline() -> 1:
  2035   o>     \n
  2041   o>     \n
  2036   sending pushkey command
  2042   sending pushkey command
  2065   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2071   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2066   i> flush() -> None
  2072   i> flush() -> None
  2067   o> readline() -> 62:
  2073   o> readline() -> 62:
  2068   o>     upgraded * exp-ssh-v2-0003\n (glob)
  2074   o>     upgraded * exp-ssh-v2-0003\n (glob)
  2069   o> readline() -> 4:
  2075   o> readline() -> 4:
  2070   o>     426\n
  2076   o>     439\n
  2071   o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  2077   o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  2072   o> read(1) -> 1:
  2078   o> read(1) -> 1:
  2073   o>     \n
  2079   o>     \n
  2074   sending pushkey command
  2080   sending pushkey command
  2075   i> write(8) -> 8:
  2081   i> write(8) -> 8:
  2076   i>     pushkey\n
  2082   i>     pushkey\n
  2131   i>     between\n
  2137   i>     between\n
  2132   i>     pairs 81\n
  2138   i>     pairs 81\n
  2133   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2139   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2134   i> flush() -> None
  2140   i> flush() -> None
  2135   o> readline() -> 4:
  2141   o> readline() -> 4:
  2136   o>     427\n
  2142   o>     440\n
  2137   o> readline() -> 427:
  2143   o> readline() -> 440:
  2138   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  2144   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  2139   o> readline() -> 2:
  2145   o> readline() -> 2:
  2140   o>     1\n
  2146   o>     1\n
  2141   o> readline() -> 1:
  2147   o> readline() -> 1:
  2142   o>     \n
  2148   o>     \n
  2143   sending batch with 3 sub-commands
  2149   sending batch with 3 sub-commands
  2171   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2177   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2172   i> flush() -> None
  2178   i> flush() -> None
  2173   o> readline() -> 62:
  2179   o> readline() -> 62:
  2174   o>     upgraded * exp-ssh-v2-0003\n (glob)
  2180   o>     upgraded * exp-ssh-v2-0003\n (glob)
  2175   o> readline() -> 4:
  2181   o> readline() -> 4:
  2176   o>     426\n
  2182   o>     439\n
  2177   o> read(426) -> 426: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  2183   o> read(439) -> 439: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  2178   o> read(1) -> 1:
  2184   o> read(1) -> 1:
  2179   o>     \n
  2185   o>     \n
  2180   sending batch with 3 sub-commands
  2186   sending batch with 3 sub-commands
  2181   i> write(6) -> 6:
  2187   i> write(6) -> 6:
  2182   i>     batch\n
  2188   i>     batch\n