tests/testlib/common.sh
author Matt Harbison <matt_harbison@yahoo.com>
Sat, 27 Apr 2019 22:33:16 -0400
changeset 4623 0adb59b55add
parent 2119 e1c26c632b6d
permissions -rw-r--r--
revset: add `predecessor` aliases for `precursors` and `allprecursors` Per https://www.mercurial-scm.org/wiki/CEDVocabulary

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