# HG changeset patch # User Anton Shestakov # Date 1537434151 -28800 # Node ID 7d9b1b50cad5e03180f595c6da59bd8bfb68437e # Parent 255d1885c7f8663691eca5ef811568b9a53bbf1b tests: split capabilities into separate lines while searching for "narrow" This test is interested only in capabilities that are related to narrow, so let's omit everything else. Makes it easier to update other capabilities (and "rev-branch-cache" is one of the usual patterns that are already present in tests/common-patterns.py anyway). Differential Revision: https://phab.mercurial-scm.org/D4678 diff -r 255d1885c7f8 -r 7d9b1b50cad5 tests/test-narrow-clone-non-narrow-server.t --- a/tests/test-narrow-clone-non-narrow-server.t Wed Sep 19 23:54:16 2018 -0400 +++ b/tests/test-narrow-clone-non-narrow-server.t Thu Sep 20 17:02:31 2018 +0800 @@ -31,9 +31,9 @@ > print(unquote(list(sys.stdin)[1])) > EOF $ echo hello | hg -R . serve --stdio | \ - > "$PYTHON" unquote.py | grep narrow + > "$PYTHON" unquote.py | tr ' ' '\n' | grep narrow narrow=v0 - rev-branch-cache changegroupsubset exp-narrow-1 getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash + exp-narrow-1 $ cd ..