Read about our upcoming Code of Conduct on this issue

Commit 52a2c44d authored by Sushil Khanchi's avatar Sushil Khanchi 🐨
Browse files

evolve: add setup utility for testing content-divergence resolution

parent 6664e9f44bca
# setup config and various utility to test content-divergence resolution
. $TESTDIR/testlib/
cat >> $HGRCPATH <<EOF
# simpler log output
logtemplate ="{rev}:{node|short} ({phase}): {desc|firstline} {if(troubles, '[{troubles}]')}\n"
# non publishing server
setuprepos() {
echo creating test repo for test case $1
mkdir $1
cd $1
echo - upstream
hg init upstream
cd upstream
mkcommit O
hg phase --public .
cd ..
echo - local
hg clone -q upstream local
echo - other
hg clone -q upstream other
echo 'cd into `local` and proceed with env setup'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment