Mercurial > hg-stable
comparison tests/test-mq @ 2990:61fcd9fac434
Make tests append settings to $HGRCPATH instead of $HGTMP/.hgrc
and add documentation for this.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 22 Aug 2006 10:08:42 +0200 |
parents | 1c66aad252f9 |
children | a4374f7331e4 |
comparison
equal
deleted
inserted
replaced
2989:3091b1153e2c | 2990:61fcd9fac434 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH | 3 echo "[extensions]" >> $HGRCPATH |
4 echo "[extensions]" >> $HGTMP/.hgrc | 4 echo "mq=" >> $HGRCPATH |
5 echo "mq=" >> $HGTMP/.hgrc | |
6 | 5 |
7 echo % help | 6 echo % help |
8 hg help mq | 7 hg help mq |
9 | 8 |
10 hg init a | 9 hg init a |
125 echo x>x | 124 echo x>x |
126 hg ci -Ama | 125 hg ci -Ama |
127 hg strip tip 2>&1 | sed 's/\(saving bundle to \).*/\1/' | 126 hg strip tip 2>&1 | sed 's/\(saving bundle to \).*/\1/' |
128 hg unbundle .hg/strip-backup/* | 127 hg unbundle .hg/strip-backup/* |
129 | 128 |
130 cat >>$HGTMP/.hgrc <<EOF | 129 cat >>$HGRCPATH <<EOF |
131 [diff] | 130 [diff] |
132 git = True | 131 git = True |
133 EOF | 132 EOF |
134 cd .. | 133 cd .. |
135 hg init git | 134 hg init git |