tests/testlib/common.sh
author Pulkit Goyal <7895pulkit@gmail.com>
Fri, 16 Mar 2018 11:31:13 +0530
changeset 3546 d197e6f0d0e3
parent 2119 e1c26c632b6d
permissions -rw-r--r--
next: show changeset hash in `--dry-run` instead of rev numbers Rev numbers can change, hence we should show rev hash instead of rev numbers in dry-run.

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