comparison tests/testlib/common.sh @ 6039:51249e4e9025

tests: port upstream 86f39a89b63e to our version of mkcommit() Now we can use it with --close-branch or --secret, for example.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 20 Sep 2021 19:48:47 +0300
parents 55589cb47581
children 6b7ef731141b
comparison
equal deleted inserted replaced
6038:af2fec9b541c 6039:51249e4e9025
1 . $TESTDIR/testlib/pythonpath.sh 1 . $TESTDIR/testlib/pythonpath.sh
2 2
3 mkcommit() { 3 mkcommit() {
4 echo "$1" > "$1" 4 name="$1"
5 hg add "$1" 5 shift
6 hg ci -m "$1" 6 echo "$name" > "$name"
7 hg add "$name"
8 hg ci -m "$name" "$@"
7 } 9 }
8 10
9 getid() { 11 getid() {
10 hg log --hidden --template '{node}\n' --rev "$1" 12 hg log --hidden --template '{node}\n' --rev "$1"
11 } 13 }