comparison tests/common-pattern.py @ 36968:2090044a288d

revbranchcache: advertise and use 'rbc' exchange capability The feature is now advertised and use. Updating the branchmap cache can be very expensive (up to minutes on large repository) and fetching revision branch data is about 80% of that. Exchanging the rev branch cache over the wire really help to recover from branch map invalidation. (There is a good chance other in flight chance would conflict on test-http-bad-server.t and other. So here is a small note to help update that test again: capabilities=19bytes, part-107bytes)
author Boris Feld <boris.feld@octobus.net>
date Thu, 18 Jan 2018 15:10:22 +0100
parents 03368431f014
children 16203c6079e7
comparison
equal deleted inserted replaced
36967:f62873dba3fd 36968:2090044a288d
20 br'hgtagsfnodes%250A' 20 br'hgtagsfnodes%250A'
21 br'listkeys%250A' 21 br'listkeys%250A'
22 br'phases%253Dheads%250A' 22 br'phases%253Dheads%250A'
23 br'pushkey%250A' 23 br'pushkey%250A'
24 br'remote-changegroup%253Dhttp%252Chttps%250A' 24 br'remote-changegroup%253Dhttp%252Chttps%250A'
25 br'rev-branch-cache%250A'
25 br'stream%253Dv2', 26 br'stream%253Dv2',
26 # (the replacement patterns) 27 # (the replacement patterns)
27 br'$USUAL_BUNDLE_CAPS$' 28 br'$USUAL_BUNDLE_CAPS$'
28 ), 29 ),
29 (br'bundlecaps=HG20%2Cbundle2%3DHG20%250A' 30 (br'bundlecaps=HG20%2Cbundle2%3DHG20%250A'
48 br'hgtagsfnodes%0A' 49 br'hgtagsfnodes%0A'
49 br'listkeys%0A' 50 br'listkeys%0A'
50 br'phases%3Dheads%0A' 51 br'phases%3Dheads%0A'
51 br'pushkey%0A' 52 br'pushkey%0A'
52 br'remote-changegroup%3Dhttp%2Chttps%0A' 53 br'remote-changegroup%3Dhttp%2Chttps%0A'
54 br'rev-branch-cache%0A'
53 br'stream%3Dv2', 55 br'stream%3Dv2',
54 # (replacement patterns) 56 # (replacement patterns)
55 br'$USUAL_BUNDLE2_CAPS$' 57 br'$USUAL_BUNDLE2_CAPS$'
56 ), 58 ),
57 # bundle2 capabilities advertised by the server 59 # bundle2 capabilities advertised by the server
62 br'error%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0A' 64 br'error%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0A'
63 br'hgtagsfnodes%0A' 65 br'hgtagsfnodes%0A'
64 br'listkeys%0A' 66 br'listkeys%0A'
65 br'phases%3Dheads%0A' 67 br'phases%3Dheads%0A'
66 br'pushkey%0A' 68 br'pushkey%0A'
67 br'remote-changegroup%3Dhttp%2Chttps', 69 br'remote-changegroup%3Dhttp%2Chttps%0A'
70 br'rev-branch-cache',
68 # (replacement patterns) 71 # (replacement patterns)
69 br'$USUAL_BUNDLE2_CAPS_SERVER$' 72 br'$USUAL_BUNDLE2_CAPS_SERVER$'
70 ), 73 ),
71 # HTTP log dates 74 # HTTP log dates
72 (br' - - \[\d\d/.../2\d\d\d \d\d:\d\d:\d\d] "(GET|PUT|POST)', 75 (br' - - \[\d\d/.../2\d\d\d \d\d:\d\d:\d\d] "(GET|PUT|POST)',