From patchwork Wed Sep 25 11:07:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2,of,3] testlib: allow more argument to mkcommit From: Pierre-Yves David X-Patchwork-Id: 41753 Message-Id: To: mercurial-devel@mercurial-scm.org Cc: gr@octobus.net Date: Wed, 25 Sep 2019 13:07:19 +0200 # HG changeset patch # User Pierre-Yves David # Date 1569409031 -7200 # Wed Sep 25 12:57:11 2019 +0200 # Node ID ddbb9bccf64e004e6e7ee5912b701c732f8a4435 # Parent 8a8b17fc108c6859633ea810935a123cb7937530 # EXP-Topic enforce-single-head # Available At https://bitbucket.org/octobus/mercurial-devel/ # hg pull https://bitbucket.org/octobus/mercurial-devel/ -r ddbb9bccf64e testlib: allow more argument to mkcommit This is simple and handy. See next changesets for usage. diff --git a/tests/testlib/obsmarker-common.sh b/tests/testlib/obsmarker-common.sh --- a/tests/testlib/obsmarker-common.sh +++ b/tests/testlib/obsmarker-common.sh @@ -1,7 +1,9 @@ mkcommit() { - echo "$1" > "$1" - hg add "$1" - hg ci -m "$1" + name="$1" + shift + echo "$name" > "$name" + hg add "$name" + hg ci -m "$name" "$@" } getid() {