From patchwork Mon Nov 13 11:11:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4, of, 6, V2] test-pattern: register the current the bundle2 capabilities string From: Boris Feld X-Patchwork-Id: 25517 Message-Id: <8f0e6aaf04b6bdd6535b.1510571478@FB> To: mercurial-devel@mercurial-scm.org Date: Mon, 13 Nov 2017 12:11:18 +0100 # HG changeset patch # User Boris Feld # Date 1510545585 -3600 # Mon Nov 13 04:59:45 2017 +0100 # Node ID 8f0e6aaf04b6bdd6535b6bc03008538c95085105 # Parent 16289f5358a17c0ee629dfa6910b00bb8dec7fe9 # EXP-Topic better-substitute # Available At https://bitbucket.org/octobus/mercurial-devel/ # hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 8f0e6aaf04b6 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. diff --git a/tests/common-pattern.py b/tests/common-pattern.py --- a/tests/common-pattern.py +++ b/tests/common-pattern.py @@ -19,4 +19,17 @@ substitutions = [ # (the replacement patterns) br'$USUAL_BUNDLE_CAPS$' ), + # bundle2 capabilities sent through ssh + (br'bundle2=HG20%0A' + br'changegroup%3D01%2C02%0A' + br'digests%3Dmd5%2Csha1%2Csha512%0A' + br'error%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0A' + br'hgtagsfnodes%0A' + br'listkeys%0A' + br'phases%3Dheads%0A' + br'pushkey%0A' + br'remote-changegroup%3Dhttp%2Chttps', + # (replacement patterns) + br'$USUAL_BUNDLE2_CAPS$' + ), ]