Mercurial > public > mercurial-scm > hg
comparison tests/test-hgweb-commands.t @ 27432:77d25b913f80
changegroup: introduce cg3, which has support for exchanging treemanifests
I'm not entirely happy with using a trailing / on a "file" entry for
transferring a treemanifest. We've discussed putting some flags on
each file header[0], but I'm unconvinced that's actually any better:
if we were going to add another feature to the cg format we'd still be
doing a version bump anyway to cg4, so I'm inclined to not spend time
coming up with a more sophisticated format until we actually know what
the next feature we want to stuff in a changegroup will be.
Test changes outside test-treemanifest.t are only due to the new CG3
bundlecap showing up in the wire protocol.
Many thanks to adgar@google.com and martinvonz@google.com for helping
me with various odd corners of the changegroup and treemanifest API.
0: It's not hard refactoring, nor is it a lot of work. I'm just
disinclined to do speculative work when it's not clear what the
customer would actually be.
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 11 Dec 2015 11:23:49 -0500 |
parents | f40f62ea43e0 |
children | 29cfc474c5fd |
comparison
equal
deleted
inserted
replaced
27431:8f016345e6b0 | 27432:77d25b913f80 |
---|---|
1895 capabilities | 1895 capabilities |
1896 | 1896 |
1897 $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=capabilities'; echo | 1897 $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=capabilities'; echo |
1898 200 Script output follows | 1898 200 Script output follows |
1899 | 1899 |
1900 lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1*%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 (glob) | 1900 lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch bundle2=HG20%0Achangegroup%3D01%2C02%2C03%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 |
1901 | 1901 |
1902 heads | 1902 heads |
1903 | 1903 |
1904 $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=heads' | 1904 $ get-with-headers.py 127.0.0.1:$HGPORT '?cmd=heads' |
1905 200 Script output follows | 1905 200 Script output follows |
2126 getbundle | 2126 getbundle |
2127 unbundlehash | 2127 unbundlehash |
2128 batch | 2128 batch |
2129 stream-preferred | 2129 stream-preferred |
2130 streamreqs=generaldelta,revlogv1 | 2130 streamreqs=generaldelta,revlogv1 |
2131 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps | 2131 bundle2=HG20%0Achangegroup%3D01%2C02%2C03%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps |
2132 unbundle=HG10GZ,HG10BZ,HG10UN | 2132 unbundle=HG10GZ,HG10BZ,HG10UN |
2133 httpheader=1024 | 2133 httpheader=1024 |
2134 | 2134 |
2135 heads | 2135 heads |
2136 | 2136 |