tests/testlib/checkheads-util.sh
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
Sat, 08 Apr 2017 12:48:20 +0200
branchstable
changeset 2268 f2ebe960998b
parent 2119 e1c26c632b6d
permissions -rw-r--r--
tests: update test to match upstreamable version Name have been clarified, documentation has been updated and some test-case have been updated to match the intended test.

# common setup for head checking code

. $TESTDIR/testlib/common.sh

cat >> $HGRCPATH <<EOF
[ui]
logtemplate ="{node|short} ({phase}): {desc}\n"

[phases]
publish=False

[extensions]
strip=
evolve=
EOF

setuprepos() {
    echo creating basic server and client repo
    hg init server
    cd server
    mkcommit root
    hg phase --public .
    mkcommit A0
    cd .. 
    hg clone server client
}