tests/testlib/common.sh
author Boris Feld <boris.feld@octobus.net>
Mon, 29 May 2017 12:15:47 +0200
changeset 2500 2092007af205
parent 2119 e1c26c632b6d
permissions -rw-r--r--
template: update precursors template output Use templatekw._hybrid as return value for precursor template, it's nicer and easier to play with than returning a formatted string.

. $TESTDIR/testlib/pythonpath.sh

mkcommit() {
   echo "$1" > "$1"
   hg add "$1"
   hg ci -m "$1"
}

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

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