view tests/testlib/checkheads-util.sh @ 2126:839e96521c5a

depth: extract code dedicated to depth of a merge in its own function The merge case is more complicated than the regular one, we extract is for the sake of clarity.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Sun, 19 Mar 2017 00:44:31 +0100
parents e1c26c632b6d
children
line wrap: on
line source

# 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
}