tests/testlib/common.sh
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 11 Jul 2019 15:30:40 -0700
changeset 4750 d9d55e34943c
parent 2119 e1c26c632b6d
permissions -rw-r--r--
py3: avoid comparing int and None

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