comparison tests/_exc-util.sh @ 830:f3b3a09ba312

exchange: have a function doing all the common initial setup This will help creation of further test.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 03 Mar 2014 13:27:53 -0800
parents 0943f327e2fb
children a6af6919888d
comparison
equal deleted inserted replaced
829:0943f327e2fb 830:f3b3a09ba312
19 hg ci -m "$1" 19 hg ci -m "$1"
20 } 20 }
21 getid() { 21 getid() {
22 hg id --hidden --debug -ir "$1" 22 hg id --hidden --debug -ir "$1"
23 } 23 }
24
25 setuprepos() {
26 echo creating test repo for test case $1
27 mkdir $1
28 cd $1
29 echo - pulldest
30 hg init pushdest
31 cd pushdest
32 mkcommit O
33 hg phase --public .
34 cd ..
35 echo - main
36 hg clone -q pushdest main
37 echo - pushdest
38 hg clone -q main pulldest
39 echo 'cd into `main` and proceed with env setup'
40 }