comparison tests/common-pattern.py @ 35072:c4ec72a10798

test-pattern: register the current the bundle2 capabilities string The bundle capabilites are sent with every getbundle ssh connection. Every time the protocol is updated, that string is altered. We get the part about bundle2 string replaced by $USUAL_BUNDLE2_CAPS$ so that we only have to change the substitution whenever this happens.
author Boris Feld <boris.feld@octobus.net>
date Mon, 13 Nov 2017 04:59:45 +0100
parents b4767ae63b32
children 7f0c9e28a816
comparison
equal deleted inserted replaced
35071:b4767ae63b32 35072:c4ec72a10798
17 br'pushkey%250A' 17 br'pushkey%250A'
18 br'remote-changegroup%253Dhttp%252Chttps', 18 br'remote-changegroup%253Dhttp%252Chttps',
19 # (the replacement patterns) 19 # (the replacement patterns)
20 br'$USUAL_BUNDLE_CAPS$' 20 br'$USUAL_BUNDLE_CAPS$'
21 ), 21 ),
22 # bundle2 capabilities sent through ssh
23 (br'bundle2=HG20%0A'
24 br'changegroup%3D01%2C02%0A'
25 br'digests%3Dmd5%2Csha1%2Csha512%0A'
26 br'error%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0A'
27 br'hgtagsfnodes%0A'
28 br'listkeys%0A'
29 br'phases%3Dheads%0A'
30 br'pushkey%0A'
31 br'remote-changegroup%3Dhttp%2Chttps',
32 # (replacement patterns)
33 br'$USUAL_BUNDLE2_CAPS$'
34 ),
22 ] 35 ]