comparison tests/common-pattern.py @ 35094:b4767ae63b32

test-pattern: register current the bundlecaps string The bundle capabilites sent with every getbundle commands. Every time the protocol is updated, that string is altered. We get that string replace by $USUAL_BUNDLE_CAPS$ so that we only have to change the substitution whenever this happens.
author Boris Feld <boris.feld@octobus.net>
date Sun, 05 Nov 2017 06:43:40 +0100
parents 3abdd7da33bd
children c4ec72a10798
comparison
equal deleted inserted replaced
35093:3abdd7da33bd 35094:b4767ae63b32
4 substitutions = [ 4 substitutions = [
5 # list of possible compressions 5 # list of possible compressions
6 (br'zstd,zlib,none,bzip2', 6 (br'zstd,zlib,none,bzip2',
7 br'$USUAL_COMPRESSIONS$' 7 br'$USUAL_COMPRESSIONS$'
8 ), 8 ),
9 # capabilities sent through http
10 (br'bundlecaps=HG20%2Cbundle2%3DHG20%250A'
11 br'changegroup%253D01%252C02%250A'
12 br'digests%253Dmd5%252Csha1%252Csha512%250A'
13 br'error%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250A'
14 br'hgtagsfnodes%250A'
15 br'listkeys%250A'
16 br'phases%253Dheads%250A'
17 br'pushkey%250A'
18 br'remote-changegroup%253Dhttp%252Chttps',
19 # (the replacement patterns)
20 br'$USUAL_BUNDLE_CAPS$'
21 ),
9 ] 22 ]