Mercurial > evolve
comparison tests/test-evolve-topic.t @ 1694:5fb7f37b82e6
test: rename TOPICROOT to HGTEST_TOPICROOT
Mercurial is about to introduce whitelisting of environment variable, we comply
to the planned prefix in advance in a hope to stay compatible in the future.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Thu, 05 May 2016 21:54:26 +0200 |
parents | 73acbc623830 |
children | 2672f36d668e |
comparison
equal
deleted
inserted
replaced
1693:73acbc623830 | 1694:5fb7f37b82e6 |
---|---|
1 | 1 |
2 Check we can find the topic extensions | 2 Check we can find the topic extensions |
3 | 3 |
4 $ [ -z "$TOPICROOT" ] && echo 'skipped: $TOPICROOT not set' >&2 && exit 80 | 4 $ [ -z "$HGTEST_TOPICROOT" ] && echo 'skipped: $HGTEST_TOPICROOT not set' >&2 && exit 80 |
5 [1] | 5 [1] |
6 $ [ ! -e $TOPICROOT/hgext3rd/topic/__init__.py ] && echo 'skipped: no topic repo found at $TOPICROOT' >&2 && exit 80 | 6 $ [ ! -e $HGTEST_TOPICROOT/hgext3rd/topic/__init__.py ] && echo 'skipped: no topic repo found at $HGTEST_TOPICROOT' >&2 && exit 80 |
7 [1] | 7 [1] |
8 $ cat >> $HGRCPATH <<EOF | 8 $ cat >> $HGRCPATH <<EOF |
9 > [defaults] | 9 > [defaults] |
10 > amend=-d "0 0" | 10 > amend=-d "0 0" |
11 > fold=-d "0 0" | 11 > fold=-d "0 0" |
16 > [diff] | 16 > [diff] |
17 > git = 1 | 17 > git = 1 |
18 > unified = 0 | 18 > unified = 0 |
19 > [extensions] | 19 > [extensions] |
20 > rebase = | 20 > rebase = |
21 > topic = $TOPICROOT/hgext3rd/topic/ | 21 > topic = $HGTEST_TOPICROOT/hgext3rd/topic/ |
22 > EOF | 22 > EOF |
23 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext/evolve.py" >> $HGRCPATH | 23 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext/evolve.py" >> $HGRCPATH |
24 | 24 |
25 $ mkcommit() { | 25 $ mkcommit() { |
26 > echo "$1" > "$1" | 26 > echo "$1" > "$1" |