tests/testlib/common.sh
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 11 Mar 2020 23:56:11 +0100
branchstable
changeset 5272 b20d04641c0f
parent 2119 e1c26c632b6d
permissions -rw-r--r--
head-checking: ignore obsolete section when checking for single heads This overwrite the core code that enforce single heads to ignore obsolete section. That way older obsolete version of a branch no longer prevent the new version to be pushed.

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