comparison tests/common-pattern.py @ 50378:2cf264e9aa75

configitems: enable changegroup3 by default (unless using infinitepush) The LFS extension requires this, and if it isn't enabled on the client (or the LFS extension isn't loaded), a web client gets a 500 instead of a sensible error message. Now it gets a different (client) error, but maybe it can be handled more gracefully. c0f11347b107 indicates that treemanifest repos have this issue too. 29cfc474c5fd mentions gating this behind `experimental` so that the format could change, but that was 7 years ago and we now have an experimental `changegroup4` as well. We can keep this as a config for the next cycle in case someone runs into an unexpected problem, and then jettison it if the infinitepush bundle name changes are either acceptable as-is or can be created differently.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 27 Feb 2023 23:04:09 -0500
parents 45268599f55e
children c5e93c915ab6
comparison
equal deleted inserted replaced
50377:806ca6bd0719 50378:2cf264e9aa75
8 (br'=(zstd,)?zlib', br'=$BUNDLE2_COMPRESSIONS$'), 8 (br'=(zstd,)?zlib', br'=$BUNDLE2_COMPRESSIONS$'),
9 # capabilities sent through http 9 # capabilities sent through http
10 ( 10 (
11 br'bundlecaps=HG20%2Cbundle2%3DHG20%250A' 11 br'bundlecaps=HG20%2Cbundle2%3DHG20%250A'
12 br'bookmarks%250A' 12 br'bookmarks%250A'
13 br'changegroup%253D01%252C02%250A' 13 br'changegroup%253D01%252C02%252C03%250A'
14 br'checkheads%253Drelated%250A' 14 br'checkheads%253Drelated%250A'
15 br'digests%253Dmd5%252Csha1%252Csha512%250A' 15 br'digests%253Dmd5%252Csha1%252Csha512%250A'
16 br'error%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250A' 16 br'error%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250A'
17 br'hgtagsfnodes%250A' 17 br'hgtagsfnodes%250A'
18 br'listkeys%250A' 18 br'listkeys%250A'
24 br'$USUAL_BUNDLE_CAPS$', 24 br'$USUAL_BUNDLE_CAPS$',
25 ), 25 ),
26 ( 26 (
27 br'bundlecaps=HG20%2Cbundle2%3DHG20%250A' 27 br'bundlecaps=HG20%2Cbundle2%3DHG20%250A'
28 br'bookmarks%250A' 28 br'bookmarks%250A'
29 br'changegroup%253D01%252C02%250A' 29 br'changegroup%253D01%252C02%252C03%250A'
30 br'checkheads%3Drelated%0A' 30 br'checkheads%3Drelated%0A'
31 br'digests%253Dmd5%252Csha1%252Csha512%250A' 31 br'digests%253Dmd5%252Csha1%252Csha512%250A'
32 br'error%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250A' 32 br'error%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250A'
33 br'hgtagsfnodes%250A' 33 br'hgtagsfnodes%250A'
34 br'listkeys%250A' 34 br'listkeys%250A'
40 ), 40 ),
41 # bundle2 capabilities sent through ssh 41 # bundle2 capabilities sent through ssh
42 ( 42 (
43 br'bundle2=HG20%0A' 43 br'bundle2=HG20%0A'
44 br'bookmarks%0A' 44 br'bookmarks%0A'
45 br'changegroup%3D01%2C02%0A' 45 br'changegroup%3D01%2C02%2C03%0A'
46 br'checkheads%3Drelated%0A' 46 br'checkheads%3Drelated%0A'
47 br'digests%3Dmd5%2Csha1%2Csha512%0A' 47 br'digests%3Dmd5%2Csha1%2Csha512%0A'
48 br'error%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0A' 48 br'error%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0A'
49 br'hgtagsfnodes%0A' 49 br'hgtagsfnodes%0A'
50 br'listkeys%0A' 50 br'listkeys%0A'
57 ), 57 ),
58 # bundle2 capabilities advertised by the server 58 # bundle2 capabilities advertised by the server
59 ( 59 (
60 br'bundle2=HG20%0A' 60 br'bundle2=HG20%0A'
61 br'bookmarks%0A' 61 br'bookmarks%0A'
62 br'changegroup%3D01%2C02%0A' 62 br'changegroup%3D01%2C02%2C03%0A'
63 br'checkheads%3Drelated%0A' 63 br'checkheads%3Drelated%0A'
64 br'digests%3Dmd5%2Csha1%2Csha512%0A' 64 br'digests%3Dmd5%2Csha1%2Csha512%0A'
65 br'error%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0A' 65 br'error%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0A'
66 br'hgtagsfnodes%0A' 66 br'hgtagsfnodes%0A'
67 br'listkeys%0A' 67 br'listkeys%0A'
72 br'$USUAL_BUNDLE2_CAPS_SERVER$', 72 br'$USUAL_BUNDLE2_CAPS_SERVER$',
73 ), 73 ),
74 ( 74 (
75 br'bundle2=HG20%0A' 75 br'bundle2=HG20%0A'
76 br'bookmarks%0A' 76 br'bookmarks%0A'
77 br'changegroup%3D01%2C02%0A' 77 br'changegroup%3D01%2C02%2C03%0A'
78 br'digests%3Dmd5%2Csha1%2Csha512%0A' 78 br'digests%3Dmd5%2Csha1%2Csha512%0A'
79 br'error%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0A' 79 br'error%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0A'
80 br'hgtagsfnodes%0A' 80 br'hgtagsfnodes%0A'
81 br'listkeys%0A' 81 br'listkeys%0A'
82 br'pushkey%0A' 82 br'pushkey%0A'