Mercurial > public > mercurial-scm > hg
comparison tests/test-hgweb-commands.t @ 34322:10e162bb9bf5
pull: use 'phase-heads' to retrieve phase information
A new bundle2 capability 'phases' has been added. If 'heads' is part of the
supported value for 'phases', the server supports reading and sending 'phase-
heads' bundle2 part.
Server is now able to process a 'phases' boolean parameter to 'getbundle'. If
'True', a 'phase-heads' bundle2 part will be included in the bundle with phase
information relevant to the whole pulled set. If this method is available the
phases listkey namespace will no longer be listed.
Beside the more efficient encoding of the data, this new method will greatly
improve the phase exchange efficiency for repositories with non-served
changesets (obsolete, secret) since we'll no longer send data about the
filtered heads.
Add a new 'devel.legacy.exchange' config item to allow fallback to the old
'listkey in bundle2' method.
Reminder: the pulled set is not just the changesets bundled by the pull. It
also contains changeset selected by the "pull specification" on the client
side (eg: everything for bare pull). One of the reason why the 'pulled set' is
important is to make sure we can move -common- nodes to public.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Sun, 24 Sep 2017 21:27:18 +0200 |
parents | 8e6f4939a69a |
children | 44841a4d0efb |
comparison
equal
deleted
inserted
replaced
34321:4ef472b975ff | 34322:10e162bb9bf5 |
---|---|
1924 capabilities | 1924 capabilities |
1925 | 1925 |
1926 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities'; echo | 1926 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=capabilities'; echo |
1927 200 Script output follows | 1927 200 Script output follows |
1928 | 1928 |
1929 lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=*zlib (glob) | 1929 lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Aphases%3Dheads%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=*,zlib (glob) |
1930 | 1930 |
1931 heads | 1931 heads |
1932 | 1932 |
1933 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=heads' | 1933 $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=heads' |
1934 200 Script output follows | 1934 200 Script output follows |
2172 getbundle | 2172 getbundle |
2173 unbundlehash | 2173 unbundlehash |
2174 batch | 2174 batch |
2175 stream-preferred | 2175 stream-preferred |
2176 streamreqs=generaldelta,revlogv1 | 2176 streamreqs=generaldelta,revlogv1 |
2177 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps | 2177 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Aphases%3Dheads%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps |
2178 unbundle=HG10GZ,HG10BZ,HG10UN | 2178 unbundle=HG10GZ,HG10BZ,HG10UN |
2179 httpheader=1024 | 2179 httpheader=1024 |
2180 httpmediatype=0.1rx,0.1tx,0.2tx | 2180 httpmediatype=0.1rx,0.1tx,0.2tx |
2181 compression=*zlib (glob) | 2181 compression=*zlib (glob) |
2182 | 2182 |