tests/testlib/common.sh
author Anton Shestakov <av6@dwimlabs.net>
Mon, 02 Sep 2019 20:09:05 +0700
branchstable
changeset 5245 207427ed9302
parent 2119 e1c26c632b6d
permissions -rw-r--r--
tests: demonstrate that evolve swaps parents of merge commits Tests currently pass, don't forget to change FIXME items.

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