tests/testlib/common.sh
author Boris Feld <boris.feld@octobus.net>
Thu, 15 Jun 2017 14:44:45 +0200
changeset 2566 f6821f6bf73c
parent 2119 e1c26c632b6d
permissions -rw-r--r--
test-update: update hg update output in test files Following hg revision 1b5c61d38a52, hg update now show the commit to which we updated in case of multiple heads. test-obsolete.t and test-sharing.t falls in these situations, acknowledge the new outputted line.

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