comparison tests/test-patchbomb @ 5753:ea1016b32e94

patchbomb: make --bundle respect --desc
author Patrick Mezard <pmezard@gmail.com>
date Thu, 27 Dec 2007 22:40:07 -0600
parents ec431334e4fc
children 12fc42c78598
comparison
equal deleted inserted replaced
5752:84a6e463b948 5753:ea1016b32e94
1 #!/bin/sh 1 #!/bin/sh
2
3 fixheaders()
4 {
5 sed -e 's/\(Message-Id:.*@\).*/\1/' \
6 -e 's/\(In-Reply-To:.*@\).*/\1/' \
7 -e 's/===.*/===/'
8 }
2 9
3 echo "[extensions]" >> $HGRCPATH 10 echo "[extensions]" >> $HGRCPATH
4 echo "patchbomb=" >> $HGRCPATH 11 echo "patchbomb=" >> $HGRCPATH
5 12
6 hg init 13 hg init t
14 cd t
7 echo a > a 15 echo a > a
8 hg commit -Ama -d '1 0' 16 hg commit -Ama -d '1 0'
9 17
10 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar tip | \ 18 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar tip | \
11 sed -e 's/\(Message-Id:.*@\).*/\1/' 19 fixheaders
12 20
13 echo b > b 21 echo b > b
14 hg commit -Amb -d '2 0' 22 hg commit -Amb -d '2 0'
15 23
16 hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test 0:tip | \ 24 hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test 0:tip | \
17 sed -e 's/\(Message-Id:.*@\).*/\1/' | \ 25 fixheaders
18 sed -e 's/\(In-Reply-To:.*@\).*/\1/'
19 26
20 hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip 27 hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip
28
29 cd ..
30
31 hg clone -q t t2
32 cd t2
33 echo c > c
34 hg commit -Amc -d '3 0'
35
36 cat > description <<EOF
37 a multiline
38
39 description
40 EOF
41
42 echo % test bundle and description
43 hg email --date '1970-1-1 0:3' -n -f quux -t foo \
44 -c bar -s test -r tip -b --desc description | \
45 fixheaders
46