tests/test-http-protocol.t
changeset 39722 4bd6e444c76f
parent 39641 aa7e312375cf
child 39810 0b61d21f05cc
equal deleted inserted replaced
39721:1b5880352314 39722:4bd6e444c76f
   190   s>     Server: testing stub value\r\n
   190   s>     Server: testing stub value\r\n
   191   s>     Date: $HTTP_DATE$\r\n
   191   s>     Date: $HTTP_DATE$\r\n
   192   s>     Content-Type: application/mercurial-0.1\r\n
   192   s>     Content-Type: application/mercurial-0.1\r\n
   193   s>     Content-Length: *\r\n (glob)
   193   s>     Content-Length: *\r\n (glob)
   194   s>     \r\n
   194   s>     \r\n
   195   s>     batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   195   s>     batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   196   sending listkeys command
   196   sending listkeys command
   197   s>     GET /?cmd=listkeys HTTP/1.1\r\n
   197   s>     GET /?cmd=listkeys HTTP/1.1\r\n
   198   s>     Accept-Encoding: identity\r\n
   198   s>     Accept-Encoding: identity\r\n
   199   s>     vary: X-HgArg-1,X-HgProto-1\r\n
   199   s>     vary: X-HgArg-1,X-HgProto-1\r\n
   200   s>     x-hgarg-1: namespace=namespaces\r\n
   200   s>     x-hgarg-1: namespace=namespaces\r\n
   263   s>     Server: testing stub value\r\n
   263   s>     Server: testing stub value\r\n
   264   s>     Date: $HTTP_DATE$\r\n
   264   s>     Date: $HTTP_DATE$\r\n
   265   s>     Content-Type: application/mercurial-0.1\r\n
   265   s>     Content-Type: application/mercurial-0.1\r\n
   266   s>     Content-Length: *\r\n (glob)
   266   s>     Content-Length: *\r\n (glob)
   267   s>     \r\n
   267   s>     \r\n
   268   s>     batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   268   s>     batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   269   sending heads command
   269   sending heads command
   270   s>     GET /?cmd=heads HTTP/1.1\r\n
   270   s>     GET /?cmd=heads HTTP/1.1\r\n
   271   s>     Accept-Encoding: identity\r\n
   271   s>     Accept-Encoding: identity\r\n
   272   s>     vary: X-HgProto-1\r\n
   272   s>     vary: X-HgProto-1\r\n
   273   s>     x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n
   273   s>     x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n
   311   s>     Server: testing stub value\r\n
   311   s>     Server: testing stub value\r\n
   312   s>     Date: $HTTP_DATE$\r\n
   312   s>     Date: $HTTP_DATE$\r\n
   313   s>     Content-Type: application/mercurial-cbor\r\n
   313   s>     Content-Type: application/mercurial-cbor\r\n
   314   s>     Content-Length: *\r\n (glob)
   314   s>     Content-Length: *\r\n (glob)
   315   s>     \r\n
   315   s>     \r\n
   316   s>     \xa3GapibaseDapi/Dapis\xa1Pexp-http-v2-0001\xa4Hcommands\xaaIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullMchangesetdata\xa2Dargs\xa3Ffields\xd9\x01\x02\x82GparentsHrevisionInoderange\x82\x81J0123456...\x81Iabcdef...Enodes\x81J0123456...Kpermissions\x81DpullHfiledata\xa2Dargs\xa4Ffields\x82GparentsHrevisionKhaveparents\xf5Enodes\x81J0123456...DpathGfoo.txtKpermissions\x81DpullEheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullLmanifestdata\xa2Dargs\xa4Ffields\x82GparentsHrevisionKhaveparents\xf5Enodes\x81J0123456...Dtree@Kpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyInamespaceBnsCnewCnewColdColdKpermissions\x81DpushKcompression\x81\xa1DnameDzlibQframingmediatypes\x81X&application/mercurial-exp-framing-0005Nrawrepoformats\x82LgeneraldeltaHrevlogv1Nv1capabilitiesY\x01\xc5batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   316   s>     \xa3GapibaseDapi/Dapis\xa1Pexp-http-v2-0001\xa4Hcommands\xaaIbranchmap\xa2Dargs\xa0Kpermissions\x81DpullLcapabilities\xa2Dargs\xa0Kpermissions\x81DpullMchangesetdata\xa2Dargs\xa3Ffields\xd9\x01\x02\x82GparentsHrevisionInoderange\x82\x81J0123456...\x81Iabcdef...Enodes\x81J0123456...Kpermissions\x81DpullHfiledata\xa2Dargs\xa4Ffields\x82GparentsHrevisionKhaveparents\xf5Enodes\x81J0123456...DpathGfoo.txtKpermissions\x81DpullEheads\xa2Dargs\xa1Jpubliconly\xf4Kpermissions\x81DpullEknown\xa2Dargs\xa1Enodes\x81HdeadbeefKpermissions\x81DpullHlistkeys\xa2Dargs\xa1InamespaceBnsKpermissions\x81DpullFlookup\xa2Dargs\xa1CkeyCfooKpermissions\x81DpullLmanifestdata\xa2Dargs\xa4Ffields\x82GparentsHrevisionKhaveparents\xf5Enodes\x81J0123456...Dtree@Kpermissions\x81DpullGpushkey\xa2Dargs\xa4CkeyCkeyInamespaceBnsCnewCnewColdColdKpermissions\x81DpushKcompression\x81\xa1DnameDzlibQframingmediatypes\x81X&application/mercurial-exp-framing-0005Nrawrepoformats\x82LgeneraldeltaHrevlogv1Nv1capabilitiesY\x01\xd3batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   317   sending heads command
   317   sending heads command
   318   s>     POST /api/exp-http-v2-0001/ro/heads HTTP/1.1\r\n
   318   s>     POST /api/exp-http-v2-0001/ro/heads HTTP/1.1\r\n
   319   s>     Accept-Encoding: identity\r\n
   319   s>     Accept-Encoding: identity\r\n
   320   s>     accept: application/mercurial-exp-framing-0005\r\n
   320   s>     accept: application/mercurial-exp-framing-0005\r\n
   321   s>     content-type: application/mercurial-exp-framing-0005\r\n
   321   s>     content-type: application/mercurial-exp-framing-0005\r\n
   422   s> makefile('rb', None)
   422   s> makefile('rb', None)
   423   s>     HTTP/1.1 200 Script output follows\r\n
   423   s>     HTTP/1.1 200 Script output follows\r\n
   424   s>     Server: testing stub value\r\n
   424   s>     Server: testing stub value\r\n
   425   s>     Date: $HTTP_DATE$\r\n
   425   s>     Date: $HTTP_DATE$\r\n
   426   s>     Content-Type: application/mercurial-0.1\r\n
   426   s>     Content-Type: application/mercurial-0.1\r\n
   427   s>     Content-Length: 453\r\n
   427   s>     Content-Length: 467\r\n
   428   s>     \r\n
   428   s>     \r\n
   429   s>     batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   429   s>     batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   430 
   430 
   431 Test with the HTTP peer
   431 Test with the HTTP peer
   432 
   432 
   433   $ hg --verbose debugwireproto http://$LOCALIP:$HGPORT/redirector << EOF
   433   $ hg --verbose debugwireproto http://$LOCALIP:$HGPORT/redirector << EOF
   434   > command heads
   434   > command heads
   457   s> makefile('rb', None)
   457   s> makefile('rb', None)
   458   s>     HTTP/1.1 200 Script output follows\r\n
   458   s>     HTTP/1.1 200 Script output follows\r\n
   459   s>     Server: testing stub value\r\n
   459   s>     Server: testing stub value\r\n
   460   s>     Date: $HTTP_DATE$\r\n
   460   s>     Date: $HTTP_DATE$\r\n
   461   s>     Content-Type: application/mercurial-0.1\r\n
   461   s>     Content-Type: application/mercurial-0.1\r\n
   462   s>     Content-Length: 453\r\n
   462   s>     Content-Length: 467\r\n
   463   s>     \r\n
   463   s>     \r\n
   464   real URL is http://$LOCALIP:$HGPORT/redirected (glob)
   464   real URL is http://$LOCALIP:$HGPORT/redirected (glob)
   465   s>     batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   465   s>     batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   466   sending heads command
   466   sending heads command
   467   s>     GET /redirected?cmd=heads HTTP/1.1\r\n
   467   s>     GET /redirected?cmd=heads HTTP/1.1\r\n
   468   s>     Accept-Encoding: identity\r\n
   468   s>     Accept-Encoding: identity\r\n
   469   s>     vary: X-HgProto-1\r\n
   469   s>     vary: X-HgProto-1\r\n
   470   s>     x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n
   470   s>     x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n
   721   s> makefile('rb', None)
   721   s> makefile('rb', None)
   722   s>     HTTP/1.1 200 Script output follows\r\n
   722   s>     HTTP/1.1 200 Script output follows\r\n
   723   s>     Server: testing stub value\r\n
   723   s>     Server: testing stub value\r\n
   724   s>     Date: $HTTP_DATE$\r\n
   724   s>     Date: $HTTP_DATE$\r\n
   725   s>     Content-Type: application/mercurial-0.1\r\n
   725   s>     Content-Type: application/mercurial-0.1\r\n
   726   s>     Content-Length: 453\r\n
   726   s>     Content-Length: 467\r\n
   727   s>     \r\n
   727   s>     \r\n
   728   real URL is http://$LOCALIP:$HGPORT/redirected (glob)
   728   real URL is http://$LOCALIP:$HGPORT/redirected (glob)
   729   s>     batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   729   s>     batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset compression=$BUNDLE2_COMPRESSIONS$ getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
   730   sending heads command
   730   sending heads command
   731   s>     GET /redirected?cmd=heads HTTP/1.1\r\n
   731   s>     GET /redirected?cmd=heads HTTP/1.1\r\n
   732   s>     Accept-Encoding: identity\r\n
   732   s>     Accept-Encoding: identity\r\n
   733   s>     vary: X-HgProto-1\r\n
   733   s>     vary: X-HgProto-1\r\n
   734   s>     x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n
   734   s>     x-hgproto-1: 0.1 0.2 comp=$USUAL_COMPRESSIONS$ partial-pull\r\n