changeset 35071: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
files tests/common-pattern.py
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/common-pattern.py	Sun Nov 05 06:41:38 2017 +0100
+++ b/tests/common-pattern.py	Sun Nov 05 06:43:40 2017 +0100
@@ -6,4 +6,17 @@
     (br'zstd,zlib,none,bzip2',
      br'$USUAL_COMPRESSIONS$'
     ),
+    # capabilities sent through http
+    (br'bundlecaps=HG20%2Cbundle2%3DHG20%250A'
+     br'changegroup%253D01%252C02%250A'
+     br'digests%253Dmd5%252Csha1%252Csha512%250A'
+     br'error%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250A'
+     br'hgtagsfnodes%250A'
+     br'listkeys%250A'
+     br'phases%253Dheads%250A'
+     br'pushkey%250A'
+     br'remote-changegroup%253Dhttp%252Chttps',
+     # (the replacement patterns)
+     br'$USUAL_BUNDLE_CAPS$'
+    ),
 ]