tests/testlib/common.sh
author Sushil khanchi <sushilkhanchi97@gmail.com>
Wed, 13 Mar 2019 17:32:14 +0530
changeset 4439 2eafdca7ba4b
parent 2119 e1c26c632b6d
permissions -rw-r--r--
evolve: preserve compatibility for hg < 4.8 versions This patch make sure evolve don't break if user using a version of hg before this 7694b685bb10 patch on hg-committed.

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