Show More
@@ -31,3 +31,6 b' writing tests:' | |||||
31 | use hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
31 | use hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
32 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
32 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
33 | to strip dates |
|
33 | to strip dates | |
|
34 | ||||
|
35 | - You can append your own hgrc settings to the file that the environment | |||
|
36 | variable HGRCPATH points to. This file is cleared before running a test. |
@@ -1,8 +1,7 b'' | |||||
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 | cat > $HGTMP/false <<EOF |
|
5 | cat > $HGTMP/false <<EOF | |
7 | #!/bin/sh |
|
6 | #!/bin/sh | |
8 | exit 1 |
|
7 | exit 1 |
@@ -2,9 +2,8 b'' | |||||
2 |
|
2 | |||
3 | set -e |
|
3 | set -e | |
4 |
|
4 | |||
5 | HGRCPATH=$HGTMP/.hgrc; export HGRCPATH |
|
5 | echo "[extensions]" >> $HGRCPATH | |
6 | echo "[extensions]" >> $HGTMP/.hgrc |
|
6 | echo "hbisect=" >> $HGRCPATH | |
7 | echo "hbisect=" >> $HGTMP/.hgrc |
|
|||
8 |
|
7 | |||
9 | echo % init |
|
8 | echo % init | |
10 | hg init |
|
9 | hg init |
@@ -1,8 +1,7 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | HGRCPATH=$HGTMP/.hgrc; export HGRCPATH |
|
3 | echo "[extensions]" >> $HGRCPATH | |
4 |
echo " |
|
4 | echo "extdiff=" >> $HGRCPATH | |
5 | echo "extdiff=" >> $HGTMP/.hgrc |
|
|||
6 |
|
5 | |||
7 | hg init a |
|
6 | hg init a | |
8 | cd a |
|
7 | cd a | |
@@ -14,9 +13,9 b' if [ $? -ne 0 ]; then' | |||||
14 | fi |
|
13 | fi | |
15 | hg extdiff -o -Nr $opt |
|
14 | hg extdiff -o -Nr $opt | |
16 |
|
15 | |||
17 |
echo "[extdiff]" >> $HG |
|
16 | echo "[extdiff]" >> $HGRCPATH | |
18 |
echo "cmd.falabala=echo" >> $HG |
|
17 | echo "cmd.falabala=echo" >> $HGRCPATH | |
19 |
echo "opts.falabala=diffing" >> $HG |
|
18 | echo "opts.falabala=diffing" >> $HGRCPATH | |
20 |
|
19 | |||
21 | hg falabala |
|
20 | hg falabala | |
22 |
|
21 |
@@ -1,8 +1,7 b'' | |||||
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 "fetch=" >> $HGRCPATH | |
5 | echo "fetch=" >> $HGTMP/.hgrc |
|
|||
6 |
|
5 | |||
7 | hg init a |
|
6 | hg init a | |
8 | echo a > a/a |
|
7 | echo a > a/a |
@@ -1,8 +1,7 b'' | |||||
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 | |
@@ -127,7 +126,7 b' 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 >>$HG |
|
129 | cat >>$HGRCPATH <<EOF | |
131 | [diff] |
|
130 | [diff] | |
132 | git = True |
|
131 | git = True | |
133 | EOF |
|
132 | EOF |
@@ -1,8 +1,7 b'' | |||||
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 | hg init |
|
6 | hg init | |
8 | hg qinit |
|
7 | hg qinit |
@@ -1,8 +1,7 b'' | |||||
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 % init |
|
6 | echo % init | |
8 | hg init a |
|
7 | hg init a |
@@ -1,8 +1,7 b'' | |||||
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 | hg init a |
|
6 | hg init a | |
8 | cd a |
|
7 | cd a |
@@ -1,9 +1,8 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | # Environement setup for MQ |
|
3 | # Environement setup for MQ | |
4 | HGRCPATH=$HGTMP/.hgrc; export HGRCPATH |
|
4 | echo "[extensions]" >> $HGRCPATH | |
5 | echo "[extensions]" >> $HGTMP/.hgrc |
|
5 | echo "mq=" >> $HGRCPATH | |
6 | echo "mq=" >> $HGTMP/.hgrc |
|
|||
7 |
|
6 | |||
8 | #Repo init |
|
7 | #Repo init | |
9 | hg init |
|
8 | hg init |
General Comments 0
You need to be logged in to leave comments.
Login now