view tests/_exc-util.sh @ 829:0943f327e2fb

exchance: add a common setup script for all test
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 03 Mar 2014 13:12:50 -0800
parents
children f3b3a09ba312
line wrap: on
line source

#!/bin/sh

cat >> $HGRCPATH <<EOF
[web]
push_ssl = false
allow_push = *
[ui]
logtemplate ="{node|short} ({phase}): {desc}\n"
[phases]
publish=False
[extensions]
hgext.rebase=
EOF
echo "evolve=$(echo $(dirname $TESTDIR))/hgext/evolve.py" >> $HGRCPATH

mkcommit() {
   echo "$1" > "$1"
   hg add "$1"
   hg ci -m "$1"
}
getid() {
   hg id --hidden --debug -ir "$1"
}