Mercurial > evolve
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/_exc-util.sh Mon Mar 03 13:12:50 2014 -0800 @@ -0,0 +1,23 @@ +#!/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" +}