tests/testlib/common.sh
author Boris Feld <boris.feld@octobus.net>
Mon, 19 Jun 2017 15:56:28 +0200
changeset 2635 9ab35c37b85a
parent 2119 e1c26c632b6d
permissions -rw-r--r--
obslog: pass directly unfiltered_repo _debugobshistorydisplaynode used to create two times an unfiltered repo, makes _debugobshistoryrevs create only one unfiltered repo and pass it directly.

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