##// END OF EJS Templates
stream-clone: check the version of streaming clone supported by the client...
Arseniy Alekseyev -
r51412:3c0da0fa default
parent child Browse files
Show More
@@ -1886,6 +1886,14 b' def addpartbundlestream2(bundler, repo, '
1886 msg = _(b'stream data requested but server does not allow this feature')
1886 msg = _(b'stream data requested but server does not allow this feature')
1887 hint = _(b'the client seems buggy')
1887 hint = _(b'the client seems buggy')
1888 raise error.Abort(msg, hint=hint)
1888 raise error.Abort(msg, hint=hint)
1889 if not (b'stream' in bundler.capabilities):
1890 msg = _(
1891 b'stream data requested but supported streaming clone versions were not specified'
1892 )
1893 hint = _(b'the client seems buggy')
1894 raise error.Abort(msg, hint=hint)
1895 if not (b'v2' in bundler.capabilities[b'stream']):
1896 raise error.Abort(_(b'the client does not support streamclone v2'))
1889
1897
1890 # Stream clones don't compress well. And compression undermines a
1898 # Stream clones don't compress well. And compression undermines a
1891 # goal of stream clones, which is to be fast. Communicate the desire
1899 # goal of stream clones, which is to be fast. Communicate the desire
@@ -286,7 +286,7 b' Basic clone'
286
286
287 getbundle requests with stream=1 are uncompressed
287 getbundle requests with stream=1 are uncompressed
288
288
289 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=getbundle' content-type --bodyfile body --hgproto '0.1 0.2 comp=zlib,none' --requestheader "x-hgarg-1=bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=0&common=0000000000000000000000000000000000000000&heads=c17445101a72edac06facd130d14808dfbd5c7c2&stream=1"
289 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=getbundle' content-type --bodyfile body --hgproto '0.1 0.2 comp=zlib,none' --requestheader "x-hgarg-1=bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%252C03%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps%250Astream%253Dv2&cg=0&common=0000000000000000000000000000000000000000&heads=c17445101a72edac06facd130d14808dfbd5c7c2&stream=1"
290 200 Script output follows
290 200 Script output follows
291 content-type: application/mercurial-0.2
291 content-type: application/mercurial-0.2
292
292
General Comments 0
You need to be logged in to leave comments. Login now