tests/test-ssh-proto.t
changeset 46633 7015b0232c5e
parent 45906 95c4cca641f6
child 46879 a0d152e5ac17
equal deleted inserted replaced
46632:9989a276712f 46633:7015b0232c5e
    62   running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !)
    62   running * "*\tests/dummyssh" "user@dummy" "hg -R server serve --stdio" (glob) (windows !)
    63   devel-peer-request: hello+between
    63   devel-peer-request: hello+between
    64   devel-peer-request:   pairs: 81 bytes
    64   devel-peer-request:   pairs: 81 bytes
    65   sending hello command
    65   sending hello command
    66   sending between command
    66   sending between command
    67   remote: 463
    67   remote: 444
    68   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
    68   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
    69   remote: 1
    70   devel-peer-request: protocaps
    70   devel-peer-request: protocaps
    71   devel-peer-request:   caps: * bytes (glob)
    71   devel-peer-request:   caps: * bytes (glob)
    72   sending protocaps command
    72   sending protocaps command
    84   > EOF
    84   > EOF
    85   using raw connection to peer
    85   using raw connection to peer
    86   i> write(6) -> 6:
    86   i> write(6) -> 6:
    87   i>     hello\n
    87   i>     hello\n
    88   o> readline() -> 4:
    88   o> readline() -> 4:
    89   o>     463\n
    89   o>     444\n
    90   o> readline() -> 463:
    90   o> readline() -> 444:
    91   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
    91   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
    92 
    92 
    93 `hg debugserve --sshstdio` works
    93 `hg debugserve --sshstdio` works
    94 
    94 
    95   $ cd server
    95   $ cd server
    96   $ hg debugserve --sshstdio << EOF
    96   $ hg debugserve --sshstdio << EOF
    97   > hello
    97   > hello
    98   > EOF
    98   > EOF
    99   463
    99   444
   100   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   100   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   101 
   101 
   102 I/O logging works
   102 I/O logging works
   103 
   103 
   104   $ hg debugserve --sshstdio --logiofd 1 << EOF
   104   $ hg debugserve --sshstdio --logiofd 1 << EOF
   105   > hello
   105   > hello
   106   > EOF
   106   > EOF
   107   e> flush() -> None
   107   e> flush() -> None
   108   o> write(4) -> 4:
   108   o> write(4) -> 4:
   109   o>     463\n
   109   o>     444\n
   110   o> write(463) -> 463:
   110   o> write(444) -> 444:
   111   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   111   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   112   463
   112   444
   113   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   113   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   114   o> flush() -> None
   114   o> flush() -> None
   115 
   115 
   116   $ hg debugserve --sshstdio --logiofile $TESTTMP/io << EOF
   116   $ hg debugserve --sshstdio --logiofile $TESTTMP/io << EOF
   117   > hello
   117   > hello
   118   > EOF
   118   > EOF
   119   463
   119   444
   120   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   120   capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   121 
   121 
   122   $ cat $TESTTMP/io
   122   $ cat $TESTTMP/io
   123   e> flush() -> None
   123   e> flush() -> None
   124   o> write(4) -> 4:
   124   o> write(4) -> 4:
   125   o>     463\n
   125   o>     444\n
   126   o> write(463) -> 463:
   126   o> write(444) -> 444:
   127   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   127   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   128   o> flush() -> None
   128   o> flush() -> None
   129 
   129 
   130   $ cd ..
   130   $ cd ..
   131 
   131 
   147   > EOF
   147   > EOF
   148   using raw connection to peer
   148   using raw connection to peer
   149   i> write(6) -> 6:
   149   i> write(6) -> 6:
   150   i>     hello\n
   150   i>     hello\n
   151   o> readline() -> 4:
   151   o> readline() -> 4:
   152   o>     463\n
   152   o>     444\n
   153   o> readline() -> 463:
   153   o> readline() -> 444:
   154   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   154   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   155   i> write(98) -> 98:
   155   i> write(98) -> 98:
   156   i>     between\n
   156   i>     between\n
   157   i>     pairs 81\n
   157   i>     pairs 81\n
   158   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   158   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   185   remote: banner: line 5
   185   remote: banner: line 5
   186   remote: banner: line 6
   186   remote: banner: line 6
   187   remote: banner: line 7
   187   remote: banner: line 7
   188   remote: banner: line 8
   188   remote: banner: line 8
   189   remote: banner: line 9
   189   remote: banner: line 9
   190   remote: 463
   190   remote: 444
   191   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   191   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   192   remote: 1
   192   remote: 1
   193   devel-peer-request: protocaps
   193   devel-peer-request: protocaps
   194   devel-peer-request:   caps: * bytes (glob)
   194   devel-peer-request:   caps: * bytes (glob)
   195   sending protocaps command
   195   sending protocaps command
   243   o> readline() -> 15:
   243   o> readline() -> 15:
   244   o>     banner: line 8\n
   244   o>     banner: line 8\n
   245   o> readline() -> 15:
   245   o> readline() -> 15:
   246   o>     banner: line 9\n
   246   o>     banner: line 9\n
   247   o> readline() -> 4:
   247   o> readline() -> 4:
   248   o>     463\n
   248   o>     444\n
   249   o> readline() -> 463:
   249   o> readline() -> 444:
   250   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   250   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   251   i> write(98) -> 98:
   251   i> write(98) -> 98:
   252   i>     between\n
   252   i>     between\n
   253   i>     pairs 81\n
   253   i>     pairs 81\n
   254   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   254   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   295   o> readline() -> 2:
   295   o> readline() -> 2:
   296   o>     0\n
   296   o>     0\n
   297   i> write(6) -> 6:
   297   i> write(6) -> 6:
   298   i>     hello\n
   298   i>     hello\n
   299   o> readline() -> 4:
   299   o> readline() -> 4:
   300   o>     463\n
   300   o>     444\n
   301   i> write(98) -> 98:
   301   i> write(98) -> 98:
   302   i>     between\n
   302   i>     between\n
   303   i>     pairs 81\n
   303   i>     pairs 81\n
   304   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   304   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   305   o> readline() -> 463:
   305   o> readline() -> 444:
   306   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   306   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   307   o> readline() -> 2:
   307   o> readline() -> 2:
   308   o>     1\n
   308   o>     1\n
   309 
   309 
   310   $ hg --config sshpeer.mode=extra-handshake-commands --config sshpeer.handshake-mode=pre-no-args --debug debugpeer ssh://user@dummy/server
   310   $ hg --config sshpeer.mode=extra-handshake-commands --config sshpeer.handshake-mode=pre-no-args --debug debugpeer ssh://user@dummy/server
   314   devel-peer-request: hello+between
   314   devel-peer-request: hello+between
   315   devel-peer-request:   pairs: 81 bytes
   315   devel-peer-request:   pairs: 81 bytes
   316   sending hello command
   316   sending hello command
   317   sending between command
   317   sending between command
   318   remote: 0
   318   remote: 0
   319   remote: 463
   319   remote: 444
   320   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   320   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   321   remote: 1
   321   remote: 1
   322   devel-peer-request: protocaps
   322   devel-peer-request: protocaps
   323   devel-peer-request:   caps: * bytes (glob)
   323   devel-peer-request:   caps: * bytes (glob)
   324   sending protocaps command
   324   sending protocaps command
   363   o> readline() -> 2:
   363   o> readline() -> 2:
   364   o>     0\n
   364   o>     0\n
   365   i> write(6) -> 6:
   365   i> write(6) -> 6:
   366   i>     hello\n
   366   i>     hello\n
   367   o> readline() -> 4:
   367   o> readline() -> 4:
   368   o>     463\n
   368   o>     444\n
   369   o> readline() -> 463:
   369   o> readline() -> 444:
   370   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   370   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   371   i> write(98) -> 98:
   371   i> write(98) -> 98:
   372   i>     between\n
   372   i>     between\n
   373   i>     pairs 81\n
   373   i>     pairs 81\n
   374   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   374   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   388   sending hello command
   388   sending hello command
   389   sending between command
   389   sending between command
   390   remote: 0
   390   remote: 0
   391   remote: 0
   391   remote: 0
   392   remote: 0
   392   remote: 0
   393   remote: 463
   393   remote: 444
   394   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   394   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   395   remote: 1
   395   remote: 1
   396   devel-peer-request: protocaps
   396   devel-peer-request: protocaps
   397   devel-peer-request:   caps: * bytes (glob)
   397   devel-peer-request:   caps: * bytes (glob)
   398   sending protocaps command
   398   sending protocaps command
   445   o> readline() -> 2:
   445   o> readline() -> 2:
   446   o>     0\n
   446   o>     0\n
   447   i> write(6) -> 6:
   447   i> write(6) -> 6:
   448   i>     hello\n
   448   i>     hello\n
   449   o> readline() -> 4:
   449   o> readline() -> 4:
   450   o>     463\n
   450   o>     444\n
   451   o> readline() -> 463:
   451   o> readline() -> 444:
   452   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   452   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   453   i> write(98) -> 98:
   453   i> write(98) -> 98:
   454   i>     between\n
   454   i>     between\n
   455   i>     pairs 81\n
   455   i>     pairs 81\n
   456   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   456   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   492   o> readline() -> 2:
   492   o> readline() -> 2:
   493   o>     0\n
   493   o>     0\n
   494   i> write(6) -> 6:
   494   i> write(6) -> 6:
   495   i>     hello\n
   495   i>     hello\n
   496   o> readline() -> 4:
   496   o> readline() -> 4:
   497   o>     463\n
   497   o>     444\n
   498   o> readline() -> 463:
   498   o> readline() -> 444:
   499   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   499   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   500   i> write(98) -> 98:
   500   i> write(98) -> 98:
   501   i>     between\n
   501   i>     between\n
   502   i>     pairs 81\n
   502   i>     pairs 81\n
   503   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   503   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   537   o> readline() -> 2:
   537   o> readline() -> 2:
   538   o>     0\n
   538   o>     0\n
   539   i> write(6) -> 6:
   539   i> write(6) -> 6:
   540   i>     hello\n
   540   i>     hello\n
   541   o> readline() -> 4:
   541   o> readline() -> 4:
   542   o>     463\n
   542   o>     444\n
   543   o> readline() -> 463:
   543   o> readline() -> 444:
   544   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   544   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   545   i> write(98) -> 98:
   545   i> write(98) -> 98:
   546   i>     between\n
   546   i>     between\n
   547   i>     pairs 81\n
   547   i>     pairs 81\n
   548   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   548   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   607   o> readline() -> 2:
   607   o> readline() -> 2:
   608   o>     0\n
   608   o>     0\n
   609   i> write(6) -> 6:
   609   i> write(6) -> 6:
   610   i>     hello\n
   610   i>     hello\n
   611   o> readline() -> 4:
   611   o> readline() -> 4:
   612   o>     463\n
   612   o>     444\n
   613   o> readline() -> 463:
   613   o> readline() -> 444:
   614   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   614   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   615 
   615 
   616 Incomplete dictionary send
   616 Incomplete dictionary send
   617 
   617 
   618   $ hg debugwireproto --localssh --peer raw << EOF
   618   $ hg debugwireproto --localssh --peer raw << EOF
   689   o> readline() -> 2:
   689   o> readline() -> 2:
   690   o>     0\n
   690   o>     0\n
   691   i> write(6) -> 6:
   691   i> write(6) -> 6:
   692   i>     hello\n
   692   i>     hello\n
   693   o> readline() -> 4:
   693   o> readline() -> 4:
   694   o>     463\n
   694   o>     444\n
   695   o> readline() -> 463:
   695   o> readline() -> 444:
   696   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   696   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   697   i> write(98) -> 98:
   697   i> write(98) -> 98:
   698   i>     between\n
   698   i>     between\n
   699   i>     pairs 81\n
   699   i>     pairs 81\n
   700   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   700   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   723   o> readline() -> 2:
   723   o> readline() -> 2:
   724   o>     0\n
   724   o>     0\n
   725   i> write(6) -> 6:
   725   i> write(6) -> 6:
   726   i>     hello\n
   726   i>     hello\n
   727   o> readline() -> 4:
   727   o> readline() -> 4:
   728   o>     463\n
   728   o>     444\n
   729   o> readline() -> 463:
   729   o> readline() -> 444:
   730   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   730   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   731   i> write(98) -> 98:
   731   i> write(98) -> 98:
   732   i>     between\n
   732   i>     between\n
   733   i>     pairs 81\n
   733   i>     pairs 81\n
   734   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   734   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   766   o> readline() -> 2:
   766   o> readline() -> 2:
   767   o>     0\n
   767   o>     0\n
   768   i> write(6) -> 6:
   768   i> write(6) -> 6:
   769   i>     hello\n
   769   i>     hello\n
   770   o> readline() -> 4:
   770   o> readline() -> 4:
   771   o>     463\n
   771   o>     444\n
   772   o> readline() -> 463:
   772   o> readline() -> 444:
   773   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   773   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   774   i> write(98) -> 98:
   774   i> write(98) -> 98:
   775   i>     between\n
   775   i>     between\n
   776   i>     pairs 81\n
   776   i>     pairs 81\n
   777   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   777   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   795   > EOF
   795   > EOF
   796   using raw connection to peer
   796   using raw connection to peer
   797   i> write(6) -> 6:
   797   i> write(6) -> 6:
   798   i>     hello\n
   798   i>     hello\n
   799   o> readline() -> 4:
   799   o> readline() -> 4:
   800   o>     463\n
   800   o>     444\n
   801   o> readline() -> 463:
   801   o> readline() -> 444:
   802   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   802   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   803   i> write(105) -> 105:
   803   i> write(105) -> 105:
   804   i>     between\n
   804   i>     between\n
   805   i>     pairs 81\n
   805   i>     pairs 81\n
   806   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000unknown
   806   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000unknown
   836   i>     hello\n
   836   i>     hello\n
   837   i>     between\n
   837   i>     between\n
   838   i>     pairs 81\n
   838   i>     pairs 81\n
   839   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   839   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   840   o> readline() -> 4:
   840   o> readline() -> 4:
   841   o>     463\n
   841   o>     444\n
   842   o> readline() -> 463:
   842   o> readline() -> 444:
   843   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   843   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   844   o> readline() -> 2:
   844   o> readline() -> 2:
   845   o>     1\n
   845   o>     1\n
   846   o> readline() -> 1:
   846   o> readline() -> 1:
   847   o>     \n
   847   o>     \n
   885   i>     pairs 81\n
   885   i>     pairs 81\n
   886   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   886   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   887   o> readline() -> 41:
   887   o> readline() -> 41:
   888   o>     68986213bd4485ea51533535e3fc9e78007a711f\n
   888   o>     68986213bd4485ea51533535e3fc9e78007a711f\n
   889   o> readline() -> 4:
   889   o> readline() -> 4:
   890   o>     463\n
   890   o>     444\n
   891   o> readline() -> 463:
   891   o> readline() -> 444:
   892   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   892   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   893   o> readline() -> 2:
   893   o> readline() -> 2:
   894   o>     1\n
   894   o>     1\n
   895 
   895 
   896 And a variation that doesn't send the between command
   896 And a variation that doesn't send the between command
   912   i> write(6) -> 6:
   912   i> write(6) -> 6:
   913   i>     hello\n
   913   i>     hello\n
   914   o> readline() -> 41:
   914   o> readline() -> 41:
   915   o>     68986213bd4485ea51533535e3fc9e78007a711f\n
   915   o>     68986213bd4485ea51533535e3fc9e78007a711f\n
   916   o> readline() -> 4:
   916   o> readline() -> 4:
   917   o>     463\n
   917   o>     444\n
   918 
   918 
   919 Send an upgrade request to a server that doesn't support that command
   919 Send an upgrade request to a server that doesn't support that command
   920 
   920 
   921   $ hg debugwireproto --localssh --peer raw << EOF
   921   $ hg debugwireproto --localssh --peer raw << EOF
   922   > raw
   922   > raw
   941   i>     hello\n
   941   i>     hello\n
   942   i>     between\n
   942   i>     between\n
   943   i>     pairs 81\n
   943   i>     pairs 81\n
   944   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   944   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
   945   o> readline() -> 4:
   945   o> readline() -> 4:
   946   o>     463\n
   946   o>     444\n
   947   o> readline() -> 463:
   947   o> readline() -> 444:
   948   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   948   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
   949   o> readline() -> 2:
   949   o> readline() -> 2:
   950   o>     1\n
   950   o>     1\n
   951   o> readline() -> 1:
   951   o> readline() -> 1:
   952   o>     \n
   952   o>     \n
   960   devel-peer-request: hello+between
   960   devel-peer-request: hello+between
   961   devel-peer-request:   pairs: 81 bytes
   961   devel-peer-request:   pairs: 81 bytes
   962   sending hello command
   962   sending hello command
   963   sending between command
   963   sending between command
   964   remote: 0
   964   remote: 0
   965   remote: 463
   965   remote: 444
   966   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   966   remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   967   remote: 1
   967   remote: 1
   968   devel-peer-request: protocaps
   968   devel-peer-request: protocaps
   969   devel-peer-request:   caps: * bytes (glob)
   969   devel-peer-request:   caps: * bytes (glob)
   970   sending protocaps command
   970   sending protocaps command
  1003   i>     pairs 81\n
  1003   i>     pairs 81\n
  1004   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1004   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1005   o> readline() -> 44:
  1005   o> readline() -> 44:
  1006   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1006   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1007   o> readline() -> 4:
  1007   o> readline() -> 4:
  1008   o>     462\n
  1008   o>     443\n
  1009   o> readline() -> 463:
  1009   o> readline() -> 444:
  1010   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1010   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1011 
  1011 
  1012   $ cd ..
  1012   $ cd ..
  1013 
  1013 
  1014   $ hg --config experimental.sshpeer.advertise-v2=true --debug debugpeer ssh://user@dummy/server
  1014   $ hg --config experimental.sshpeer.advertise-v2=true --debug debugpeer ssh://user@dummy/server
  1079       heads
  1079       heads
  1080     pushkey
  1080     pushkey
  1081     remote-changegroup
  1081     remote-changegroup
  1082       http
  1082       http
  1083       https
  1083       https
  1084     rev-branch-cache
       
  1085     stream
  1084     stream
  1086       v2
  1085       v2
  1087 
  1086 
  1088 Command after upgrade to version 2 is processed
  1087 Command after upgrade to version 2 is processed
  1089 
  1088 
  1112   i>     pairs 81\n
  1111   i>     pairs 81\n
  1113   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1112   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1114   o> readline() -> 44:
  1113   o> readline() -> 44:
  1115   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1114   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1116   o> readline() -> 4:
  1115   o> readline() -> 4:
  1117   o>     462\n
  1116   o>     443\n
  1118   o> readline() -> 463:
  1117   o> readline() -> 444:
  1119   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1118   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1120   i> write(6) -> 6:
  1119   i> write(6) -> 6:
  1121   i>     hello\n
  1120   i>     hello\n
  1122   o> readline() -> 4:
  1121   o> readline() -> 4:
  1123   o>     447\n
  1122   o>     428\n
  1124   o> readline() -> 447:
  1123   o> readline() -> 428:
  1125   o>     capabilities: branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1124   o>     capabilities: branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1126 
  1125 
  1127 Multiple upgrades is not allowed
  1126 Multiple upgrades is not allowed
  1128 
  1127 
  1129   $ hg debugwireproto --localssh --peer raw << EOF
  1128   $ hg debugwireproto --localssh --peer raw << EOF
  1150   i>     pairs 81\n
  1149   i>     pairs 81\n
  1151   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1150   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1152   o> readline() -> 44:
  1151   o> readline() -> 44:
  1153   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1152   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1154   o> readline() -> 4:
  1153   o> readline() -> 4:
  1155   o>     462\n
  1154   o>     443\n
  1156   o> readline() -> 463:
  1155   o> readline() -> 444:
  1157   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1156   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1158   i> write(45) -> 45:
  1157   i> write(45) -> 45:
  1159   i>     upgrade another-token proto=irrelevant\n
  1158   i>     upgrade another-token proto=irrelevant\n
  1160   i>     hello\n
  1159   i>     hello\n
  1161   o> readline() -> 1:
  1160   o> readline() -> 1:
  1222   o> readline() -> 2:
  1221   o> readline() -> 2:
  1223   o>     0\n
  1222   o>     0\n
  1224   i> write(6) -> 6:
  1223   i> write(6) -> 6:
  1225   i>     hello\n
  1224   i>     hello\n
  1226   o> readline() -> 4:
  1225   o> readline() -> 4:
  1227   o>     463\n
  1226   o>     444\n
  1228   o> readline() -> 463:
  1227   o> readline() -> 444:
  1229   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1228   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1230   i> write(98) -> 98:
  1229   i> write(98) -> 98:
  1231   i>     between\n
  1230   i>     between\n
  1232   i>     pairs 81\n
  1231   i>     pairs 81\n
  1233   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1232   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1341   i>     between\n
  1340   i>     between\n
  1342   i>     pairs 81\n
  1341   i>     pairs 81\n
  1343   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1342   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1344   i> flush() -> None
  1343   i> flush() -> None
  1345   o> readline() -> 4:
  1344   o> readline() -> 4:
  1346   o>     463\n
  1345   o>     444\n
  1347   o> readline() -> 463:
  1346   o> readline() -> 444:
  1348   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1347   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1349   o> readline() -> 2:
  1348   o> readline() -> 2:
  1350   o>     1\n
  1349   o>     1\n
  1351   o> readline() -> 1:
  1350   o> readline() -> 1:
  1352   o>     \n
  1351   o>     \n
  1379   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1378   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1380   i> flush() -> None
  1379   i> flush() -> None
  1381   o> readline() -> 62:
  1380   o> readline() -> 62:
  1382   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1381   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1383   o> readline() -> 4:
  1382   o> readline() -> 4:
  1384   o>     462\n
  1383   o>     443\n
  1385   o> read(462) -> 462: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1384   o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1386   o> read(1) -> 1:
  1385   o> read(1) -> 1:
  1387   o>     \n
  1386   o>     \n
  1388   sending listkeys command
  1387   sending listkeys command
  1389   i> write(9) -> 9:
  1388   i> write(9) -> 9:
  1390   i>     listkeys\n
  1389   i>     listkeys\n
  1429   i>     between\n
  1428   i>     between\n
  1430   i>     pairs 81\n
  1429   i>     pairs 81\n
  1431   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1430   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1432   i> flush() -> None
  1431   i> flush() -> None
  1433   o> readline() -> 4:
  1432   o> readline() -> 4:
  1434   o>     463\n
  1433   o>     444\n
  1435   o> readline() -> 463:
  1434   o> readline() -> 444:
  1436   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1435   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1437   o> readline() -> 2:
  1436   o> readline() -> 2:
  1438   o>     1\n
  1437   o>     1\n
  1439   o> readline() -> 1:
  1438   o> readline() -> 1:
  1440   o>     \n
  1439   o>     \n
  1459   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1458   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1460   i> flush() -> None
  1459   i> flush() -> None
  1461   o> readline() -> 62:
  1460   o> readline() -> 62:
  1462   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1461   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1463   o> readline() -> 4:
  1462   o> readline() -> 4:
  1464   o>     462\n
  1463   o>     443\n
  1465   o> read(462) -> 462: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1464   o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1466   o> read(1) -> 1:
  1465   o> read(1) -> 1:
  1467   o>     \n
  1466   o>     \n
  1468   sending listkeys command
  1467   sending listkeys command
  1469   i> write(9) -> 9:
  1468   i> write(9) -> 9:
  1470   i>     listkeys\n
  1469   i>     listkeys\n
  1490   i>     between\n
  1489   i>     between\n
  1491   i>     pairs 81\n
  1490   i>     pairs 81\n
  1492   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1491   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1493   i> flush() -> None
  1492   i> flush() -> None
  1494   o> readline() -> 4:
  1493   o> readline() -> 4:
  1495   o>     463\n
  1494   o>     444\n
  1496   o> readline() -> 463:
  1495   o> readline() -> 444:
  1497   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1496   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1498   o> readline() -> 2:
  1497   o> readline() -> 2:
  1499   o>     1\n
  1498   o>     1\n
  1500   o> readline() -> 1:
  1499   o> readline() -> 1:
  1501   o>     \n
  1500   o>     \n
  1523   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1522   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1524   i> flush() -> None
  1523   i> flush() -> None
  1525   o> readline() -> 62:
  1524   o> readline() -> 62:
  1526   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1525   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1527   o> readline() -> 4:
  1526   o> readline() -> 4:
  1528   o>     462\n
  1527   o>     443\n
  1529   o> read(462) -> 462: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1528   o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1530   o> read(1) -> 1:
  1529   o> read(1) -> 1:
  1531   o>     \n
  1530   o>     \n
  1532   sending listkeys command
  1531   sending listkeys command
  1533   i> write(9) -> 9:
  1532   i> write(9) -> 9:
  1534   i>     listkeys\n
  1533   i>     listkeys\n
  1557   i>     between\n
  1556   i>     between\n
  1558   i>     pairs 81\n
  1557   i>     pairs 81\n
  1559   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1558   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1560   i> flush() -> None
  1559   i> flush() -> None
  1561   o> readline() -> 4:
  1560   o> readline() -> 4:
  1562   o>     463\n
  1561   o>     444\n
  1563   o> readline() -> 463:
  1562   o> readline() -> 444:
  1564   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1563   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1565   o> readline() -> 2:
  1564   o> readline() -> 2:
  1566   o>     1\n
  1565   o>     1\n
  1567   o> readline() -> 1:
  1566   o> readline() -> 1:
  1568   o>     \n
  1567   o>     \n
  1593   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1592   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1594   i> flush() -> None
  1593   i> flush() -> None
  1595   o> readline() -> 62:
  1594   o> readline() -> 62:
  1596   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1595   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1597   o> readline() -> 4:
  1596   o> readline() -> 4:
  1598   o>     462\n
  1597   o>     443\n
  1599   o> read(462) -> 462: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1598   o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1600   o> read(1) -> 1:
  1599   o> read(1) -> 1:
  1601   o>     \n
  1600   o>     \n
  1602   sending listkeys command
  1601   sending listkeys command
  1603   i> write(9) -> 9:
  1602   i> write(9) -> 9:
  1604   i>     listkeys\n
  1603   i>     listkeys\n
  1632   i>     between\n
  1631   i>     between\n
  1633   i>     pairs 81\n
  1632   i>     pairs 81\n
  1634   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1633   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1635   i> flush() -> None
  1634   i> flush() -> None
  1636   o> readline() -> 4:
  1635   o> readline() -> 4:
  1637   o>     463\n
  1636   o>     444\n
  1638   o> readline() -> 463:
  1637   o> readline() -> 444:
  1639   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1638   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1640   o> readline() -> 2:
  1639   o> readline() -> 2:
  1641   o>     1\n
  1640   o>     1\n
  1642   o> readline() -> 1:
  1641   o> readline() -> 1:
  1643   o>     \n
  1642   o>     \n
  1672   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1671   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1673   i> flush() -> None
  1672   i> flush() -> None
  1674   o> readline() -> 62:
  1673   o> readline() -> 62:
  1675   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1674   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1676   o> readline() -> 4:
  1675   o> readline() -> 4:
  1677   o>     462\n
  1676   o>     443\n
  1678   o> read(462) -> 462: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1677   o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1679   o> read(1) -> 1:
  1678   o> read(1) -> 1:
  1680   o>     \n
  1679   o>     \n
  1681   sending pushkey command
  1680   sending pushkey command
  1682   i> write(8) -> 8:
  1681   i> write(8) -> 8:
  1683   i>     pushkey\n
  1682   i>     pushkey\n
  1724   i>     between\n
  1723   i>     between\n
  1725   i>     pairs 81\n
  1724   i>     pairs 81\n
  1726   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1725   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1727   i> flush() -> None
  1726   i> flush() -> None
  1728   o> readline() -> 4:
  1727   o> readline() -> 4:
  1729   o>     463\n
  1728   o>     444\n
  1730   o> readline() -> 463:
  1729   o> readline() -> 444:
  1731   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1730   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1732   o> readline() -> 2:
  1731   o> readline() -> 2:
  1733   o>     1\n
  1732   o>     1\n
  1734   o> readline() -> 1:
  1733   o> readline() -> 1:
  1735   o>     \n
  1734   o>     \n
  1757   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1756   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1758   i> flush() -> None
  1757   i> flush() -> None
  1759   o> readline() -> 62:
  1758   o> readline() -> 62:
  1760   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1759   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1761   o> readline() -> 4:
  1760   o> readline() -> 4:
  1762   o>     462\n
  1761   o>     443\n
  1763   o> read(462) -> 462: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1762   o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1764   o> read(1) -> 1:
  1763   o> read(1) -> 1:
  1765   o>     \n
  1764   o>     \n
  1766   sending listkeys command
  1765   sending listkeys command
  1767   i> write(9) -> 9:
  1766   i> write(9) -> 9:
  1768   i>     listkeys\n
  1767   i>     listkeys\n
  1807   i>     between\n
  1806   i>     between\n
  1808   i>     pairs 81\n
  1807   i>     pairs 81\n
  1809   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1808   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1810   i> flush() -> None
  1809   i> flush() -> None
  1811   o> readline() -> 4:
  1810   o> readline() -> 4:
  1812   o>     463\n
  1811   o>     444\n
  1813   o> readline() -> 463:
  1812   o> readline() -> 444:
  1814   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1813   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1815   o> readline() -> 2:
  1814   o> readline() -> 2:
  1816   o>     1\n
  1815   o>     1\n
  1817   o> readline() -> 1:
  1816   o> readline() -> 1:
  1818   o>     \n
  1817   o>     \n
  1845   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1844   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1846   i> flush() -> None
  1845   i> flush() -> None
  1847   o> readline() -> 62:
  1846   o> readline() -> 62:
  1848   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1847   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1849   o> readline() -> 4:
  1848   o> readline() -> 4:
  1850   o>     462\n
  1849   o>     443\n
  1851   o> read(462) -> 462: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1850   o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1852   o> read(1) -> 1:
  1851   o> read(1) -> 1:
  1853   o>     \n
  1852   o>     \n
  1854   sending listkeys command
  1853   sending listkeys command
  1855   i> write(9) -> 9:
  1854   i> write(9) -> 9:
  1856   i>     listkeys\n
  1855   i>     listkeys\n
  1884   i>     between\n
  1883   i>     between\n
  1885   i>     pairs 81\n
  1884   i>     pairs 81\n
  1886   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1885   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1887   i> flush() -> None
  1886   i> flush() -> None
  1888   o> readline() -> 4:
  1887   o> readline() -> 4:
  1889   o>     463\n
  1888   o>     444\n
  1890   o> readline() -> 463:
  1889   o> readline() -> 444:
  1891   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1890   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1892   o> readline() -> 2:
  1891   o> readline() -> 2:
  1893   o>     1\n
  1892   o>     1\n
  1894   o> readline() -> 1:
  1893   o> readline() -> 1:
  1895   o>     \n
  1894   o>     \n
  1920   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1919   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1921   i> flush() -> None
  1920   i> flush() -> None
  1922   o> readline() -> 62:
  1921   o> readline() -> 62:
  1923   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1922   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1924   o> readline() -> 4:
  1923   o> readline() -> 4:
  1925   o>     462\n
  1924   o>     443\n
  1926   o> read(462) -> 462: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1925   o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1927   o> read(1) -> 1:
  1926   o> read(1) -> 1:
  1928   o>     \n
  1927   o>     \n
  1929   sending listkeys command
  1928   sending listkeys command
  1930   i> write(9) -> 9:
  1929   i> write(9) -> 9:
  1931   i>     listkeys\n
  1930   i>     listkeys\n
  1957   i>     between\n
  1956   i>     between\n
  1958   i>     pairs 81\n
  1957   i>     pairs 81\n
  1959   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1958   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1960   i> flush() -> None
  1959   i> flush() -> None
  1961   o> readline() -> 4:
  1960   o> readline() -> 4:
  1962   o>     463\n
  1961   o>     444\n
  1963   o> readline() -> 463:
  1962   o> readline() -> 444:
  1964   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1963   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1965   o> readline() -> 2:
  1964   o> readline() -> 2:
  1966   o>     1\n
  1965   o>     1\n
  1967   o> readline() -> 1:
  1966   o> readline() -> 1:
  1968   o>     \n
  1967   o>     \n
  1990   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1989   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1991   i> flush() -> None
  1990   i> flush() -> None
  1992   o> readline() -> 62:
  1991   o> readline() -> 62:
  1993   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1992   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1994   o> readline() -> 4:
  1993   o> readline() -> 4:
  1995   o>     462\n
  1994   o>     443\n
  1996   o> read(462) -> 462: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1995   o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  1997   o> read(1) -> 1:
  1996   o> read(1) -> 1:
  1998   o>     \n
  1997   o>     \n
  1999   sending listkeys command
  1998   sending listkeys command
  2000   i> write(9) -> 9:
  1999   i> write(9) -> 9:
  2001   i>     listkeys\n
  2000   i>     listkeys\n
  2028   i>     between\n
  2027   i>     between\n
  2029   i>     pairs 81\n
  2028   i>     pairs 81\n
  2030   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2029   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2031   i> flush() -> None
  2030   i> flush() -> None
  2032   o> readline() -> 4:
  2031   o> readline() -> 4:
  2033   o>     463\n
  2032   o>     444\n
  2034   o> readline() -> 463:
  2033   o> readline() -> 444:
  2035   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  2034   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  2036   o> readline() -> 2:
  2035   o> readline() -> 2:
  2037   o>     1\n
  2036   o>     1\n
  2038   o> readline() -> 1:
  2037   o> readline() -> 1:
  2039   o>     \n
  2038   o>     \n
  2069   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2068   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2070   i> flush() -> None
  2069   i> flush() -> None
  2071   o> readline() -> 62:
  2070   o> readline() -> 62:
  2072   o>     upgraded * exp-ssh-v2-0003\n (glob)
  2071   o>     upgraded * exp-ssh-v2-0003\n (glob)
  2073   o> readline() -> 4:
  2072   o> readline() -> 4:
  2074   o>     462\n
  2073   o>     443\n
  2075   o> read(462) -> 462: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  2074   o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  2076   o> read(1) -> 1:
  2075   o> read(1) -> 1:
  2077   o>     \n
  2076   o>     \n
  2078   sending pushkey command
  2077   sending pushkey command
  2079   i> write(8) -> 8:
  2078   i> write(8) -> 8:
  2080   i>     pushkey\n
  2079   i>     pushkey\n
  2135   i>     between\n
  2134   i>     between\n
  2136   i>     pairs 81\n
  2135   i>     pairs 81\n
  2137   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2136   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2138   i> flush() -> None
  2137   i> flush() -> None
  2139   o> readline() -> 4:
  2138   o> readline() -> 4:
  2140   o>     463\n
  2139   o>     444\n
  2141   o> readline() -> 463:
  2140   o> readline() -> 444:
  2142   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  2141   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  2143   o> readline() -> 2:
  2142   o> readline() -> 2:
  2144   o>     1\n
  2143   o>     1\n
  2145   o> readline() -> 1:
  2144   o> readline() -> 1:
  2146   o>     \n
  2145   o>     \n
  2175   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2174   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2176   i> flush() -> None
  2175   i> flush() -> None
  2177   o> readline() -> 62:
  2176   o> readline() -> 62:
  2178   o>     upgraded * exp-ssh-v2-0003\n (glob)
  2177   o>     upgraded * exp-ssh-v2-0003\n (glob)
  2179   o> readline() -> 4:
  2178   o> readline() -> 4:
  2180   o>     462\n
  2179   o>     443\n
  2181   o> read(462) -> 462: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  2180   o> read(443) -> 443: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
  2182   o> read(1) -> 1:
  2181   o> read(1) -> 1:
  2183   o>     \n
  2182   o>     \n
  2184   sending batch with 3 sub-commands
  2183   sending batch with 3 sub-commands
  2185   i> write(6) -> 6:
  2184   i> write(6) -> 6:
  2186   i>     batch\n
  2185   i>     batch\n