tests/test-ssh-proto.t
changeset 44412 edc8504bc26b
parent 42896 7e19b640c53e
child 45906 95c4cca641f6
equal deleted inserted replaced
44411:1e508097f570 44412:edc8504bc26b
    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: 440
    67   remote: 463
    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>     440\n
    89   o>     463\n
    90   o> readline() -> 440:
    90   o> readline() -> 463:
    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   440
    99   463
   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>     440\n
   109   o>     463\n
   110   o> write(440) -> 440:
   110   o> write(463) -> 463:
   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   440
   112   463
   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   440
   119   463
   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>     440\n
   125   o>     463\n
   126   o> write(440) -> 440:
   126   o> write(463) -> 463:
   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>     440\n
   152   o>     463\n
   153   o> readline() -> 440:
   153   o> readline() -> 463:
   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: 440
   190   remote: 463
   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>     440\n
   248   o>     463\n
   249   o> readline() -> 440:
   249   o> readline() -> 463:
   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>     440\n
   300   o>     463\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() -> 440:
   305   o> readline() -> 463:
   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: 440
   319   remote: 463
   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>     440\n
   368   o>     463\n
   369   o> readline() -> 440:
   369   o> readline() -> 463:
   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: 440
   393   remote: 463
   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>     440\n
   450   o>     463\n
   451   o> readline() -> 440:
   451   o> readline() -> 463:
   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>     440\n
   497   o>     463\n
   498   o> readline() -> 440:
   498   o> readline() -> 463:
   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>     440\n
   542   o>     463\n
   543   o> readline() -> 440:
   543   o> readline() -> 463:
   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>     440\n
   612   o>     463\n
   613   o> readline() -> 440:
   613   o> readline() -> 463:
   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>     440\n
   694   o>     463\n
   695   o> readline() -> 440:
   695   o> readline() -> 463:
   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>     440\n
   728   o>     463\n
   729   o> readline() -> 440:
   729   o> readline() -> 463:
   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>     440\n
   771   o>     463\n
   772   o> readline() -> 440:
   772   o> readline() -> 463:
   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>     440\n
   800   o>     463\n
   801   o> readline() -> 440:
   801   o> readline() -> 463:
   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>     440\n
   841   o>     463\n
   842   o> readline() -> 440:
   842   o> readline() -> 463:
   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>     440\n
   890   o>     463\n
   891   o> readline() -> 440:
   891   o> readline() -> 463:
   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>     440\n
   917   o>     463\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>     440\n
   946   o>     463\n
   947   o> readline() -> 440:
   947   o> readline() -> 463:
   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: 440
   965   remote: 463
   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>     439\n
  1008   o>     462\n
  1009   o> readline() -> 440:
  1009   o> readline() -> 463:
  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
  1060     HG20
  1060     HG20
  1061     bookmarks
  1061     bookmarks
  1062     changegroup
  1062     changegroup
  1063       01
  1063       01
  1064       02
  1064       02
       
  1065     checkheads
       
  1066       related
  1065     digests
  1067     digests
  1066       md5
  1068       md5
  1067       sha1
  1069       sha1
  1068       sha512
  1070       sha512
  1069     error
  1071     error
  1110   i>     pairs 81\n
  1112   i>     pairs 81\n
  1111   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1113   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1112   o> readline() -> 44:
  1114   o> readline() -> 44:
  1113   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1115   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1114   o> readline() -> 4:
  1116   o> readline() -> 4:
  1115   o>     439\n
  1117   o>     462\n
  1116   o> readline() -> 440:
  1118   o> readline() -> 463:
  1117   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  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   i> write(6) -> 6:
  1120   i> write(6) -> 6:
  1119   i>     hello\n
  1121   i>     hello\n
  1120   o> readline() -> 4:
  1122   o> readline() -> 4:
  1121   o>     424\n
  1123   o>     447\n
  1122   o> readline() -> 424:
  1124   o> readline() -> 447:
  1123   o>     capabilities: branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1125   o>     capabilities: branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  1124 
  1126 
  1125 Multiple upgrades is not allowed
  1127 Multiple upgrades is not allowed
  1126 
  1128 
  1127   $ hg debugwireproto --localssh --peer raw << EOF
  1129   $ hg debugwireproto --localssh --peer raw << EOF
  1148   i>     pairs 81\n
  1150   i>     pairs 81\n
  1149   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1151   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1150   o> readline() -> 44:
  1152   o> readline() -> 44:
  1151   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1153   o>     upgraded this-is-some-token exp-ssh-v2-0003\n
  1152   o> readline() -> 4:
  1154   o> readline() -> 4:
  1153   o>     439\n
  1155   o>     462\n
  1154   o> readline() -> 440:
  1156   o> readline() -> 463:
  1155   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  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   i> write(45) -> 45:
  1158   i> write(45) -> 45:
  1157   i>     upgrade another-token proto=irrelevant\n
  1159   i>     upgrade another-token proto=irrelevant\n
  1158   i>     hello\n
  1160   i>     hello\n
  1159   o> readline() -> 1:
  1161   o> readline() -> 1:
  1220   o> readline() -> 2:
  1222   o> readline() -> 2:
  1221   o>     0\n
  1223   o>     0\n
  1222   i> write(6) -> 6:
  1224   i> write(6) -> 6:
  1223   i>     hello\n
  1225   i>     hello\n
  1224   o> readline() -> 4:
  1226   o> readline() -> 4:
  1225   o>     440\n
  1227   o>     463\n
  1226   o> readline() -> 440:
  1228   o> readline() -> 463:
  1227   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  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   i> write(98) -> 98:
  1230   i> write(98) -> 98:
  1229   i>     between\n
  1231   i>     between\n
  1230   i>     pairs 81\n
  1232   i>     pairs 81\n
  1231   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1233   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1339   i>     between\n
  1341   i>     between\n
  1340   i>     pairs 81\n
  1342   i>     pairs 81\n
  1341   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1343   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1342   i> flush() -> None
  1344   i> flush() -> None
  1343   o> readline() -> 4:
  1345   o> readline() -> 4:
  1344   o>     440\n
  1346   o>     463\n
  1345   o> readline() -> 440:
  1347   o> readline() -> 463:
  1346   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  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> readline() -> 2:
  1349   o> readline() -> 2:
  1348   o>     1\n
  1350   o>     1\n
  1349   o> readline() -> 1:
  1351   o> readline() -> 1:
  1350   o>     \n
  1352   o>     \n
  1377   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1379   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1378   i> flush() -> None
  1380   i> flush() -> None
  1379   o> readline() -> 62:
  1381   o> readline() -> 62:
  1380   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1382   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1381   o> readline() -> 4:
  1383   o> readline() -> 4:
  1382   o>     439\n
  1384   o>     462\n
  1383   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
  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(1) -> 1:
  1386   o> read(1) -> 1:
  1385   o>     \n
  1387   o>     \n
  1386   sending listkeys command
  1388   sending listkeys command
  1387   i> write(9) -> 9:
  1389   i> write(9) -> 9:
  1388   i>     listkeys\n
  1390   i>     listkeys\n
  1427   i>     between\n
  1429   i>     between\n
  1428   i>     pairs 81\n
  1430   i>     pairs 81\n
  1429   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1431   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1430   i> flush() -> None
  1432   i> flush() -> None
  1431   o> readline() -> 4:
  1433   o> readline() -> 4:
  1432   o>     440\n
  1434   o>     463\n
  1433   o> readline() -> 440:
  1435   o> readline() -> 463:
  1434   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  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> readline() -> 2:
  1437   o> readline() -> 2:
  1436   o>     1\n
  1438   o>     1\n
  1437   o> readline() -> 1:
  1439   o> readline() -> 1:
  1438   o>     \n
  1440   o>     \n
  1457   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1459   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1458   i> flush() -> None
  1460   i> flush() -> None
  1459   o> readline() -> 62:
  1461   o> readline() -> 62:
  1460   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1462   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1461   o> readline() -> 4:
  1463   o> readline() -> 4:
  1462   o>     439\n
  1464   o>     462\n
  1463   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
  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(1) -> 1:
  1466   o> read(1) -> 1:
  1465   o>     \n
  1467   o>     \n
  1466   sending listkeys command
  1468   sending listkeys command
  1467   i> write(9) -> 9:
  1469   i> write(9) -> 9:
  1468   i>     listkeys\n
  1470   i>     listkeys\n
  1488   i>     between\n
  1490   i>     between\n
  1489   i>     pairs 81\n
  1491   i>     pairs 81\n
  1490   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1492   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1491   i> flush() -> None
  1493   i> flush() -> None
  1492   o> readline() -> 4:
  1494   o> readline() -> 4:
  1493   o>     440\n
  1495   o>     463\n
  1494   o> readline() -> 440:
  1496   o> readline() -> 463:
  1495   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  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> readline() -> 2:
  1498   o> readline() -> 2:
  1497   o>     1\n
  1499   o>     1\n
  1498   o> readline() -> 1:
  1500   o> readline() -> 1:
  1499   o>     \n
  1501   o>     \n
  1521   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1523   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1522   i> flush() -> None
  1524   i> flush() -> None
  1523   o> readline() -> 62:
  1525   o> readline() -> 62:
  1524   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1526   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1525   o> readline() -> 4:
  1527   o> readline() -> 4:
  1526   o>     439\n
  1528   o>     462\n
  1527   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
  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(1) -> 1:
  1530   o> read(1) -> 1:
  1529   o>     \n
  1531   o>     \n
  1530   sending listkeys command
  1532   sending listkeys command
  1531   i> write(9) -> 9:
  1533   i> write(9) -> 9:
  1532   i>     listkeys\n
  1534   i>     listkeys\n
  1555   i>     between\n
  1557   i>     between\n
  1556   i>     pairs 81\n
  1558   i>     pairs 81\n
  1557   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1559   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1558   i> flush() -> None
  1560   i> flush() -> None
  1559   o> readline() -> 4:
  1561   o> readline() -> 4:
  1560   o>     440\n
  1562   o>     463\n
  1561   o> readline() -> 440:
  1563   o> readline() -> 463:
  1562   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  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> readline() -> 2:
  1565   o> readline() -> 2:
  1564   o>     1\n
  1566   o>     1\n
  1565   o> readline() -> 1:
  1567   o> readline() -> 1:
  1566   o>     \n
  1568   o>     \n
  1591   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1593   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1592   i> flush() -> None
  1594   i> flush() -> None
  1593   o> readline() -> 62:
  1595   o> readline() -> 62:
  1594   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1596   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1595   o> readline() -> 4:
  1597   o> readline() -> 4:
  1596   o>     439\n
  1598   o>     462\n
  1597   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
  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(1) -> 1:
  1600   o> read(1) -> 1:
  1599   o>     \n
  1601   o>     \n
  1600   sending listkeys command
  1602   sending listkeys command
  1601   i> write(9) -> 9:
  1603   i> write(9) -> 9:
  1602   i>     listkeys\n
  1604   i>     listkeys\n
  1630   i>     between\n
  1632   i>     between\n
  1631   i>     pairs 81\n
  1633   i>     pairs 81\n
  1632   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1634   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1633   i> flush() -> None
  1635   i> flush() -> None
  1634   o> readline() -> 4:
  1636   o> readline() -> 4:
  1635   o>     440\n
  1637   o>     463\n
  1636   o> readline() -> 440:
  1638   o> readline() -> 463:
  1637   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  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> readline() -> 2:
  1640   o> readline() -> 2:
  1639   o>     1\n
  1641   o>     1\n
  1640   o> readline() -> 1:
  1642   o> readline() -> 1:
  1641   o>     \n
  1643   o>     \n
  1670   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1672   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1671   i> flush() -> None
  1673   i> flush() -> None
  1672   o> readline() -> 62:
  1674   o> readline() -> 62:
  1673   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1675   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1674   o> readline() -> 4:
  1676   o> readline() -> 4:
  1675   o>     439\n
  1677   o>     462\n
  1676   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
  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(1) -> 1:
  1679   o> read(1) -> 1:
  1678   o>     \n
  1680   o>     \n
  1679   sending pushkey command
  1681   sending pushkey command
  1680   i> write(8) -> 8:
  1682   i> write(8) -> 8:
  1681   i>     pushkey\n
  1683   i>     pushkey\n
  1722   i>     between\n
  1724   i>     between\n
  1723   i>     pairs 81\n
  1725   i>     pairs 81\n
  1724   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1726   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1725   i> flush() -> None
  1727   i> flush() -> None
  1726   o> readline() -> 4:
  1728   o> readline() -> 4:
  1727   o>     440\n
  1729   o>     463\n
  1728   o> readline() -> 440:
  1730   o> readline() -> 463:
  1729   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  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> readline() -> 2:
  1732   o> readline() -> 2:
  1731   o>     1\n
  1733   o>     1\n
  1732   o> readline() -> 1:
  1734   o> readline() -> 1:
  1733   o>     \n
  1735   o>     \n
  1755   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1757   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1756   i> flush() -> None
  1758   i> flush() -> None
  1757   o> readline() -> 62:
  1759   o> readline() -> 62:
  1758   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1760   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1759   o> readline() -> 4:
  1761   o> readline() -> 4:
  1760   o>     439\n
  1762   o>     462\n
  1761   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
  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(1) -> 1:
  1764   o> read(1) -> 1:
  1763   o>     \n
  1765   o>     \n
  1764   sending listkeys command
  1766   sending listkeys command
  1765   i> write(9) -> 9:
  1767   i> write(9) -> 9:
  1766   i>     listkeys\n
  1768   i>     listkeys\n
  1805   i>     between\n
  1807   i>     between\n
  1806   i>     pairs 81\n
  1808   i>     pairs 81\n
  1807   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1809   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1808   i> flush() -> None
  1810   i> flush() -> None
  1809   o> readline() -> 4:
  1811   o> readline() -> 4:
  1810   o>     440\n
  1812   o>     463\n
  1811   o> readline() -> 440:
  1813   o> readline() -> 463:
  1812   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  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> readline() -> 2:
  1815   o> readline() -> 2:
  1814   o>     1\n
  1816   o>     1\n
  1815   o> readline() -> 1:
  1817   o> readline() -> 1:
  1816   o>     \n
  1818   o>     \n
  1843   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1845   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1844   i> flush() -> None
  1846   i> flush() -> None
  1845   o> readline() -> 62:
  1847   o> readline() -> 62:
  1846   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1848   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1847   o> readline() -> 4:
  1849   o> readline() -> 4:
  1848   o>     439\n
  1850   o>     462\n
  1849   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
  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(1) -> 1:
  1852   o> read(1) -> 1:
  1851   o>     \n
  1853   o>     \n
  1852   sending listkeys command
  1854   sending listkeys command
  1853   i> write(9) -> 9:
  1855   i> write(9) -> 9:
  1854   i>     listkeys\n
  1856   i>     listkeys\n
  1882   i>     between\n
  1884   i>     between\n
  1883   i>     pairs 81\n
  1885   i>     pairs 81\n
  1884   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1886   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1885   i> flush() -> None
  1887   i> flush() -> None
  1886   o> readline() -> 4:
  1888   o> readline() -> 4:
  1887   o>     440\n
  1889   o>     463\n
  1888   o> readline() -> 440:
  1890   o> readline() -> 463:
  1889   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  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> readline() -> 2:
  1892   o> readline() -> 2:
  1891   o>     1\n
  1893   o>     1\n
  1892   o> readline() -> 1:
  1894   o> readline() -> 1:
  1893   o>     \n
  1895   o>     \n
  1918   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1920   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1919   i> flush() -> None
  1921   i> flush() -> None
  1920   o> readline() -> 62:
  1922   o> readline() -> 62:
  1921   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1923   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1922   o> readline() -> 4:
  1924   o> readline() -> 4:
  1923   o>     439\n
  1925   o>     462\n
  1924   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
  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(1) -> 1:
  1927   o> read(1) -> 1:
  1926   o>     \n
  1928   o>     \n
  1927   sending listkeys command
  1929   sending listkeys command
  1928   i> write(9) -> 9:
  1930   i> write(9) -> 9:
  1929   i>     listkeys\n
  1931   i>     listkeys\n
  1955   i>     between\n
  1957   i>     between\n
  1956   i>     pairs 81\n
  1958   i>     pairs 81\n
  1957   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1959   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1958   i> flush() -> None
  1960   i> flush() -> None
  1959   o> readline() -> 4:
  1961   o> readline() -> 4:
  1960   o>     440\n
  1962   o>     463\n
  1961   o> readline() -> 440:
  1963   o> readline() -> 463:
  1962   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  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> readline() -> 2:
  1965   o> readline() -> 2:
  1964   o>     1\n
  1966   o>     1\n
  1965   o> readline() -> 1:
  1967   o> readline() -> 1:
  1966   o>     \n
  1968   o>     \n
  1988   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1990   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  1989   i> flush() -> None
  1991   i> flush() -> None
  1990   o> readline() -> 62:
  1992   o> readline() -> 62:
  1991   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1993   o>     upgraded * exp-ssh-v2-0003\n (glob)
  1992   o> readline() -> 4:
  1994   o> readline() -> 4:
  1993   o>     439\n
  1995   o>     462\n
  1994   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
  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(1) -> 1:
  1997   o> read(1) -> 1:
  1996   o>     \n
  1998   o>     \n
  1997   sending listkeys command
  1999   sending listkeys command
  1998   i> write(9) -> 9:
  2000   i> write(9) -> 9:
  1999   i>     listkeys\n
  2001   i>     listkeys\n
  2026   i>     between\n
  2028   i>     between\n
  2027   i>     pairs 81\n
  2029   i>     pairs 81\n
  2028   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2030   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2029   i> flush() -> None
  2031   i> flush() -> None
  2030   o> readline() -> 4:
  2032   o> readline() -> 4:
  2031   o>     440\n
  2033   o>     463\n
  2032   o> readline() -> 440:
  2034   o> readline() -> 463:
  2033   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  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> readline() -> 2:
  2036   o> readline() -> 2:
  2035   o>     1\n
  2037   o>     1\n
  2036   o> readline() -> 1:
  2038   o> readline() -> 1:
  2037   o>     \n
  2039   o>     \n
  2067   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2069   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2068   i> flush() -> None
  2070   i> flush() -> None
  2069   o> readline() -> 62:
  2071   o> readline() -> 62:
  2070   o>     upgraded * exp-ssh-v2-0003\n (glob)
  2072   o>     upgraded * exp-ssh-v2-0003\n (glob)
  2071   o> readline() -> 4:
  2073   o> readline() -> 4:
  2072   o>     439\n
  2074   o>     462\n
  2073   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
  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(1) -> 1:
  2076   o> read(1) -> 1:
  2075   o>     \n
  2077   o>     \n
  2076   sending pushkey command
  2078   sending pushkey command
  2077   i> write(8) -> 8:
  2079   i> write(8) -> 8:
  2078   i>     pushkey\n
  2080   i>     pushkey\n
  2133   i>     between\n
  2135   i>     between\n
  2134   i>     pairs 81\n
  2136   i>     pairs 81\n
  2135   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2137   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2136   i> flush() -> None
  2138   i> flush() -> None
  2137   o> readline() -> 4:
  2139   o> readline() -> 4:
  2138   o>     440\n
  2140   o>     463\n
  2139   o> readline() -> 440:
  2141   o> readline() -> 463:
  2140   o>     capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash\n
  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> readline() -> 2:
  2143   o> readline() -> 2:
  2142   o>     1\n
  2144   o>     1\n
  2143   o> readline() -> 1:
  2145   o> readline() -> 1:
  2144   o>     \n
  2146   o>     \n
  2173   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2175   i>     0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
  2174   i> flush() -> None
  2176   i> flush() -> None
  2175   o> readline() -> 62:
  2177   o> readline() -> 62:
  2176   o>     upgraded * exp-ssh-v2-0003\n (glob)
  2178   o>     upgraded * exp-ssh-v2-0003\n (glob)
  2177   o> readline() -> 4:
  2179   o> readline() -> 4:
  2178   o>     439\n
  2180   o>     462\n
  2179   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
  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(1) -> 1:
  2182   o> read(1) -> 1:
  2181   o>     \n
  2183   o>     \n
  2182   sending batch with 3 sub-commands
  2184   sending batch with 3 sub-commands
  2183   i> write(6) -> 6:
  2185   i> write(6) -> 6:
  2184   i>     batch\n
  2186   i>     batch\n