changeset 42970:86f39a89b63e

testlib: allow more argument to mkcommit This is simple and handy. See next changesets for usage.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 25 Sep 2019 12:57:11 +0200
parents 3609ea82b971
children 76608f9f27f6
files tests/testlib/obsmarker-common.sh
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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() {