tests/testlib/common.sh
author Anton Shestakov <av6@dwimlabs.net>
Tue, 14 Jan 2020 19:42:06 +0700
changeset 5115 f44cc9abf21c
parent 2119 e1c26c632b6d
permissions -rw-r--r--
obshistory: add 'folded' to the list of precise verbs It's used for templates and for obslog --filternonlocal, but not for regular obslog.

. $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