tests/testlib/common.sh
author Martin von Zweigbergk <martinvonz@google.com>
Fri, 15 Nov 2019 08:14:06 -0800
changeset 4941 c6fb901b7bc8
parent 2119 e1c26c632b6d
permissions -rw-r--r--
cmdrewrite: avoid accessing scmutil.status fields by index Support for indexed access is going away in Mercurial. Accessing the fields by name is clearer anyway.

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