author | Brodie Rao <me+hg@dackz.net> |
Mon, 10 Aug 2009 22:59:29 +0200 | |
changeset 9330 | be2a13153372 |
parent 8514 | 252232621165 |
child 9346 | bb3f8f692bc6 |
permissions | -rwxr-xr-x |
4420
b0656b33cc02
add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
1 |
#!/bin/sh |
b0656b33cc02
add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
2 |
|
5753
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
3 |
fixheaders() |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
4 |
{ |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
5 |
sed -e 's/\(Message-Id:.*@\).*/\1/' \ |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
6 |
-e 's/\(In-Reply-To:.*@\).*/\1/' \ |
7413
0b6428da1f22
email: add References field in the header
Benoit Allard <benoit@aeteurope.nl>
parents:
7360
diff
changeset
|
7 |
-e 's/\(References:.*@\).*/\1/' \ |
8160
094e0d982c8a
patchbomb: add user agent header to mails
Henrik Stuart <hg@hstuart.dk>
parents:
8025
diff
changeset
|
8 |
-e 's/\(User-Agent:.*\)\/.*/\1/' \ |
5753
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
9 |
-e 's/===.*/===/' |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
10 |
} |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
11 |
|
4420
b0656b33cc02
add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
12 |
echo "[extensions]" >> $HGRCPATH |
b0656b33cc02
add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
13 |
echo "patchbomb=" >> $HGRCPATH |
b0656b33cc02
add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
14 |
|
7547
4949729ee9ee
python implementation of diffstat
Alexander Solovyov <piranha@piranha.org.ua>
parents:
7413
diff
changeset
|
15 |
COLUMNS=80; export COLUMNS |
4949729ee9ee
python implementation of diffstat
Alexander Solovyov <piranha@piranha.org.ua>
parents:
7413
diff
changeset
|
16 |
|
5753
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
17 |
hg init t |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
18 |
cd t |
4420
b0656b33cc02
add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
19 |
echo a > a |
b0656b33cc02
add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
20 |
hg commit -Ama -d '1 0' |
b0656b33cc02
add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
21 |
|
8351 | 22 |
hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip | \ |
5753
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
23 |
fixheaders |
4420
b0656b33cc02
add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
24 |
|
b0656b33cc02
add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
25 |
echo b > b |
b0656b33cc02
add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
26 |
hg commit -Amb -d '2 0' |
b0656b33cc02
add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
27 |
|
8351 | 28 |
hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test -r 0:tip | \ |
5753
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
29 |
fixheaders |
4565
1cf908c00479
Don't validate email config if we're not sending email.
Bryan O'Sullivan <bos@serpentine.com>
parents:
4420
diff
changeset
|
30 |
|
4567
8b87bd4fb7ce
Correct tests/test-patchbomb* files:
Thomas Arendsen Hein <thomas@intevation.de>
parents:
4566
diff
changeset
|
31 |
hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip |
5753
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
32 |
|
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
33 |
cd .. |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
34 |
|
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
35 |
hg clone -q t t2 |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
36 |
cd t2 |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
37 |
echo c > c |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
38 |
hg commit -Amc -d '3 0' |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
39 |
|
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
40 |
cat > description <<EOF |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
41 |
a multiline |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
42 |
|
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
43 |
description |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
44 |
EOF |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
45 |
|
7357
6eb38b2dca6c
patchbomb: make test markers more syntax highlighter friendly
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7265
diff
changeset
|
46 |
echo "% test bundle and description" |
5753
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
47 |
hg email --date '1970-1-1 0:3' -n -f quux -t foo \ |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
48 |
-c bar -s test -r tip -b --desc description | \ |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
49 |
fixheaders |
ea1016b32e94
patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents:
4597
diff
changeset
|
50 |
|
7357
6eb38b2dca6c
patchbomb: make test markers more syntax highlighter friendly
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7265
diff
changeset
|
51 |
echo "% utf-8 patch" |
7265
0cf3442ee844
test-patchbomb: write in binary mode, force non-interactive mode (win32)
Patrick Mezard <pmezard@gmail.com>
parents:
7193
diff
changeset
|
52 |
python -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();' |
7193
12fc42c78598
mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents:
5753
diff
changeset
|
53 |
hg commit -A -d '4 0' -m 'charset=utf-8; content-transfer-encoding: base64' |
12fc42c78598
mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents:
5753
diff
changeset
|
54 |
|
7357
6eb38b2dca6c
patchbomb: make test markers more syntax highlighter friendly
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7265
diff
changeset
|
55 |
echo "% no mime encoding for email --test" |
8351 | 56 |
hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n | \ |
57 |
fixheaders > mailtest |
|
7357
6eb38b2dca6c
patchbomb: make test markers more syntax highlighter friendly
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7265
diff
changeset
|
58 |
echo "% md5sum of 8-bit output" |
7193
12fc42c78598
mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents:
5753
diff
changeset
|
59 |
$TESTDIR/md5sum.py mailtest |
12fc42c78598
mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents:
5753
diff
changeset
|
60 |
rm mailtest |
12fc42c78598
mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents:
5753
diff
changeset
|
61 |
|
8332
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
62 |
echo "% mime encoded mbox (base64)" |
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
63 |
hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox |
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
64 |
cat mbox | fixheaders |
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
65 |
rm mbox |
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
66 |
|
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
67 |
echo "% mime encoded mbox (quoted-printable)" |
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
68 |
python -c 'fp = open("qp", "wb"); fp.write("%s\nfoo\n\nbar\n" % \ |
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
69 |
("x" * 1024)); fp.close();' |
8351 | 70 |
hg commit -A -d '4 0' -m \ |
71 |
'charset=utf-8; content-transfer-encoding: quoted-printable' |
|
8332
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
72 |
|
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
73 |
echo "% no mime encoding for email --test" |
8351 | 74 |
hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n | \ |
75 |
fixheaders > mailtest |
|
8332
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
76 |
echo "% md5sum of qp output" |
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
77 |
$TESTDIR/md5sum.py mailtest |
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
78 |
rm mailtest |
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
79 |
|
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
80 |
echo "% mime encoded mbox (quoted-printable)" |
7265
0cf3442ee844
test-patchbomb: write in binary mode, force non-interactive mode (win32)
Patrick Mezard <pmezard@gmail.com>
parents:
7193
diff
changeset
|
81 |
hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox |
7193
12fc42c78598
mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents:
5753
diff
changeset
|
82 |
cat mbox | fixheaders |
12fc42c78598
mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents:
5753
diff
changeset
|
83 |
rm mbox |
12fc42c78598
mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents:
5753
diff
changeset
|
84 |
|
7357
6eb38b2dca6c
patchbomb: make test markers more syntax highlighter friendly
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7265
diff
changeset
|
85 |
echo "% iso-8859-1 patch" |
7265
0cf3442ee844
test-patchbomb: write in binary mode, force non-interactive mode (win32)
Patrick Mezard <pmezard@gmail.com>
parents:
7193
diff
changeset
|
86 |
python -c 'fp = open("isolatin", "wb"); fp.write("h\xF6mma!\n"); fp.close();' |
7193
12fc42c78598
mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents:
5753
diff
changeset
|
87 |
hg commit -A -d '5 0' -m 'charset=us-ascii; content-transfer-encoding: 8bit' |
12fc42c78598
mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents:
5753
diff
changeset
|
88 |
|
7357
6eb38b2dca6c
patchbomb: make test markers more syntax highlighter friendly
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7265
diff
changeset
|
89 |
echo "% fake ascii mbox" |
7265
0cf3442ee844
test-patchbomb: write in binary mode, force non-interactive mode (win32)
Patrick Mezard <pmezard@gmail.com>
parents:
7193
diff
changeset
|
90 |
hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox |
7193
12fc42c78598
mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents:
5753
diff
changeset
|
91 |
fixheaders < mbox > mboxfix |
7357
6eb38b2dca6c
patchbomb: make test markers more syntax highlighter friendly
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7265
diff
changeset
|
92 |
echo "% md5sum of 8-bit output" |
7193
12fc42c78598
mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents:
5753
diff
changeset
|
93 |
$TESTDIR/md5sum.py mboxfix |
7358
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
94 |
|
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
95 |
echo "% test diffstat for single patch" |
8351 | 96 |
hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2 | \ |
7358
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
97 |
fixheaders |
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
98 |
|
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
99 |
echo "% test diffstat for multiple patches" |
8351 | 100 |
hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \ |
101 |
-r 0:1 | fixheaders |
|
7358
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
102 |
|
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
103 |
echo "% test inline for single patch" |
8351 | 104 |
hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | \ |
7358
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
105 |
fixheaders |
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
106 |
|
8332
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
107 |
echo "% test inline for single patch (quoted-printable)" |
8351 | 108 |
hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4 | \ |
8332
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
109 |
fixheaders |
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
110 |
|
7358
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
111 |
echo "% test inline for multiple patches" |
8332
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
112 |
hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \ |
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
113 |
-r 0:1 -r 4 | fixheaders |
7358
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
114 |
|
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
115 |
echo "% test attach for single patch" |
8351 | 116 |
hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2 | \ |
7358
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
117 |
fixheaders |
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
118 |
|
8332
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
119 |
echo "% test attach for single patch (quoted-printable)" |
8351 | 120 |
hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4 | \ |
8332
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
121 |
fixheaders |
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
122 |
|
7358
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
123 |
echo "% test attach for multiple patches" |
8332
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
124 |
hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \ |
3e544c074459
patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents:
8160
diff
changeset
|
125 |
-r 0:1 -r 4 | fixheaders |
7358
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
126 |
|
7360
42f1b8cb9a60
patchbomb: add option to send intro email for a single patch (issue1120)
Chris Winter <elwintro@gmail.com>
parents:
7358
diff
changeset
|
127 |
echo "% test intro for single patch" |
8351 | 128 |
hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \ |
129 |
-r 2 | fixheaders |
|
7360
42f1b8cb9a60
patchbomb: add option to send intro email for a single patch (issue1120)
Chris Winter <elwintro@gmail.com>
parents:
7358
diff
changeset
|
130 |
|
42f1b8cb9a60
patchbomb: add option to send intro email for a single patch (issue1120)
Chris Winter <elwintro@gmail.com>
parents:
7358
diff
changeset
|
131 |
echo "% test intro for multiple patches" |
8351 | 132 |
hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \ |
133 |
-r 0:1 | fixheaders |
|
7360
42f1b8cb9a60
patchbomb: add option to send intro email for a single patch (issue1120)
Chris Winter <elwintro@gmail.com>
parents:
7358
diff
changeset
|
134 |
|
7358
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
135 |
echo "% tagging csets" |
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
136 |
hg tag -r0 zero zero.foo |
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
137 |
hg tag -r1 one one.patch |
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
138 |
hg tag -r2 two two.diff |
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
139 |
|
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
140 |
echo "% test inline for single named patch" |
8351 | 141 |
hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | \ |
7358
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
142 |
fixheaders |
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
143 |
|
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
144 |
echo "% test inline for multiple named/unnamed patches" |
8351 | 145 |
hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 0:1 | \ |
7358
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
146 |
fixheaders |
3c2ed7c2dcb4
patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents:
7357
diff
changeset
|
147 |
|
8025
1280934dd2dd
patchbomb: Support initial in-reply-to header
Henrik Stuart <henrik.stuart at edlund.dk>
parents:
7547
diff
changeset
|
148 |
echo "% test inreplyto" |
8351 | 149 |
hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \ |
150 |
-r tip | fixheaders |
|
8514
252232621165
patchbomb: with --in-reply-to, still thread message under first in series
Cédric Duval <cedricduval@free.fr>
parents:
8351
diff
changeset
|
151 |
|
252232621165
patchbomb: with --in-reply-to, still thread message under first in series
Cédric Duval <cedricduval@free.fr>
parents:
8351
diff
changeset
|
152 |
hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \ |
252232621165
patchbomb: with --in-reply-to, still thread message under first in series
Cédric Duval <cedricduval@free.fr>
parents:
8351
diff
changeset
|
153 |
-r 0:1 | fixheaders |