tests/testlib/common.sh
author Pierre-Yves David <pierre-yves.david@octobus.net>
Fri, 12 May 2017 20:29:54 +0200
changeset 2360 89938bebc6f9
parent 2119 e1c26c632b6d
permissions -rw-r--r--
obshashrange: use the dualsourcecache as a base for the cache This will easily open the way to incrementally updated obshashrange cache. Small update are needed to the data base schema so be bump the version Currently the update function is not warming the cache (but details case where it is invalidated).

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