comparison tests/test-split.t @ 2775:1d16c9dcb825

test: use common setup for test-split.t This make things cleaner.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 24 Jul 2017 00:11:02 +0200
parents 6044bd16bfb7
children 4dd84054ebbb
comparison
equal deleted inserted replaced
2774:0f167320f90f 2775:1d16c9dcb825
1 test of the split command 1 test of the split command
2 ----------------------- 2 -----------------------
3
4 $ . $TESTDIR/testlib/common.sh
3 5
4 $ cat >> $HGRCPATH <<EOF 6 $ cat >> $HGRCPATH <<EOF
5 > [defaults] 7 > [defaults]
6 > amend=-d "0 0" 8 > amend=-d "0 0"
7 > fold=-d "0 0" 9 > fold=-d "0 0"
17 > unified = 0 19 > unified = 0
18 > [ui] 20 > [ui]
19 > interactive = true 21 > interactive = true
20 > [extensions] 22 > [extensions]
21 > hgext.graphlog= 23 > hgext.graphlog=
22 > EOF 24 > evolve =
23 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH 25 > EOF
24 $ mkcommit() { 26 $ mkcommit() {
25 > echo "$1" > "$1" 27 > echo "$1" > "$1"
26 > hg add "$1" 28 > hg add "$1"
27 > hg ci -m "add $1" $2 $3 29 > hg ci -m "add $1" $2 $3
28 > } 30 > }