testlib: allow more argument to mkcommit
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 25 Sep 2019 12:57:11 +0200
changeset 42968 86f39a89b63e
parent 42967 3609ea82b971
child 42969 76608f9f27f6
testlib: allow more argument to mkcommit This is simple and handy. See next changesets for usage.
tests/testlib/obsmarker-common.sh
--- a/tests/testlib/obsmarker-common.sh	Wed Sep 25 12:35:34 2019 +0200
+++ b/tests/testlib/obsmarker-common.sh	Wed Sep 25 12:57:11 2019 +0200
@@ -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() {