tests/testlib/obsmarker-common.sh
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 25 Sep 2019 12:57:11 +0200
changeset 42970 86f39a89b63e
parent 32897 1858fc2327ef
permissions -rw-r--r--
testlib: allow more argument to mkcommit This is simple and handy. See next changesets for usage.

mkcommit() {
   name="$1"
   shift
   echo "$name" > "$name"
   hg add "$name"
   hg ci -m "$name" "$@"
}

getid() {
   hg log --hidden --template '{node}\n' --rev "$1"
}

cat >> $HGRCPATH <<EOF
[alias]
debugobsolete=debugobsolete -d '0 0'
EOF