Mercurial > hg
diff tests/testlib/obsmarker-common.sh @ 42968: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 | 1858fc2327ef |
children |
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() {