Mercurial > hg
comparison tests/test-patchbomb @ 8351:f28c2f8b9969
test-patchbomb: fix style
Specifying revisions without -r is deprecated, break long lines.
author | Rocco Rutte <pdmef@gmx.net> |
---|---|
date | Tue, 12 May 2009 11:27:26 +0200 |
parents | 3e544c074459 |
children | 252232621165 |
comparison
equal
deleted
inserted
replaced
8350:1f0f01bc86a5 | 8351:f28c2f8b9969 |
---|---|
17 hg init t | 17 hg init t |
18 cd t | 18 cd t |
19 echo a > a | 19 echo a > a |
20 hg commit -Ama -d '1 0' | 20 hg commit -Ama -d '1 0' |
21 | 21 |
22 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar tip | \ | 22 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip | \ |
23 fixheaders | 23 fixheaders |
24 | 24 |
25 echo b > b | 25 echo b > b |
26 hg commit -Amb -d '2 0' | 26 hg commit -Amb -d '2 0' |
27 | 27 |
28 hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test 0:tip | \ | 28 hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test -r 0:tip | \ |
29 fixheaders | 29 fixheaders |
30 | 30 |
31 hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip | 31 hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip |
32 | 32 |
33 cd .. | 33 cd .. |
51 echo "% utf-8 patch" | 51 echo "% utf-8 patch" |
52 python -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();' | 52 python -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();' |
53 hg commit -A -d '4 0' -m 'charset=utf-8; content-transfer-encoding: base64' | 53 hg commit -A -d '4 0' -m 'charset=utf-8; content-transfer-encoding: base64' |
54 | 54 |
55 echo "% no mime encoding for email --test" | 55 echo "% no mime encoding for email --test" |
56 hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n | fixheaders > mailtest | 56 hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n | \ |
57 fixheaders > mailtest | |
57 echo "% md5sum of 8-bit output" | 58 echo "% md5sum of 8-bit output" |
58 $TESTDIR/md5sum.py mailtest | 59 $TESTDIR/md5sum.py mailtest |
59 rm mailtest | 60 rm mailtest |
60 | 61 |
61 echo "% mime encoded mbox (base64)" | 62 echo "% mime encoded mbox (base64)" |
64 rm mbox | 65 rm mbox |
65 | 66 |
66 echo "% mime encoded mbox (quoted-printable)" | 67 echo "% mime encoded mbox (quoted-printable)" |
67 python -c 'fp = open("qp", "wb"); fp.write("%s\nfoo\n\nbar\n" % \ | 68 python -c 'fp = open("qp", "wb"); fp.write("%s\nfoo\n\nbar\n" % \ |
68 ("x" * 1024)); fp.close();' | 69 ("x" * 1024)); fp.close();' |
69 hg commit -A -d '4 0' -m 'charset=utf-8; content-transfer-encoding: quoted-printable' | 70 hg commit -A -d '4 0' -m \ |
71 'charset=utf-8; content-transfer-encoding: quoted-printable' | |
70 | 72 |
71 echo "% no mime encoding for email --test" | 73 echo "% no mime encoding for email --test" |
72 hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n | fixheaders > mailtest | 74 hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n | \ |
75 fixheaders > mailtest | |
73 echo "% md5sum of qp output" | 76 echo "% md5sum of qp output" |
74 $TESTDIR/md5sum.py mailtest | 77 $TESTDIR/md5sum.py mailtest |
75 rm mailtest | 78 rm mailtest |
76 | 79 |
77 echo "% mime encoded mbox (quoted-printable)" | 80 echo "% mime encoded mbox (quoted-printable)" |
88 fixheaders < mbox > mboxfix | 91 fixheaders < mbox > mboxfix |
89 echo "% md5sum of 8-bit output" | 92 echo "% md5sum of 8-bit output" |
90 $TESTDIR/md5sum.py mboxfix | 93 $TESTDIR/md5sum.py mboxfix |
91 | 94 |
92 echo "% test diffstat for single patch" | 95 echo "% test diffstat for single patch" |
93 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y 2 | \ | 96 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2 | \ |
94 fixheaders | 97 fixheaders |
95 | 98 |
96 echo "% test diffstat for multiple patches" | 99 echo "% test diffstat for multiple patches" |
97 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y 0:1 | \ | 100 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \ |
98 fixheaders | 101 -r 0:1 | fixheaders |
99 | 102 |
100 echo "% test inline for single patch" | 103 echo "% test inline for single patch" |
101 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i 2 | \ | 104 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | \ |
102 fixheaders | 105 fixheaders |
103 | 106 |
104 echo "% test inline for single patch (quoted-printable)" | 107 echo "% test inline for single patch (quoted-printable)" |
105 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i 4 | \ | 108 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4 | \ |
106 fixheaders | 109 fixheaders |
107 | 110 |
108 echo "% test inline for multiple patches" | 111 echo "% test inline for multiple patches" |
109 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \ | 112 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \ |
110 -r 0:1 -r 4 | fixheaders | 113 -r 0:1 -r 4 | fixheaders |
111 | 114 |
112 echo "% test attach for single patch" | 115 echo "% test attach for single patch" |
113 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a 2 | \ | 116 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2 | \ |
114 fixheaders | 117 fixheaders |
115 | 118 |
116 echo "% test attach for single patch (quoted-printable)" | 119 echo "% test attach for single patch (quoted-printable)" |
117 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a 4 | \ | 120 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4 | \ |
118 fixheaders | 121 fixheaders |
119 | 122 |
120 echo "% test attach for multiple patches" | 123 echo "% test attach for multiple patches" |
121 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \ | 124 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \ |
122 -r 0:1 -r 4 | fixheaders | 125 -r 0:1 -r 4 | fixheaders |
123 | 126 |
124 echo "% test intro for single patch" | 127 echo "% test intro for single patch" |
125 hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test 2 | \ | 128 hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \ |
126 fixheaders | 129 -r 2 | fixheaders |
127 | 130 |
128 echo "% test intro for multiple patches" | 131 echo "% test intro for multiple patches" |
129 hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test 0:1 | \ | 132 hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \ |
130 fixheaders | 133 -r 0:1 | fixheaders |
131 | 134 |
132 echo "% tagging csets" | 135 echo "% tagging csets" |
133 hg tag -r0 zero zero.foo | 136 hg tag -r0 zero zero.foo |
134 hg tag -r1 one one.patch | 137 hg tag -r1 one one.patch |
135 hg tag -r2 two two.diff | 138 hg tag -r2 two two.diff |
136 | 139 |
137 echo "% test inline for single named patch" | 140 echo "% test inline for single named patch" |
138 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i 2 | \ | 141 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | \ |
139 fixheaders | 142 fixheaders |
140 | 143 |
141 echo "% test inline for multiple named/unnamed patches" | 144 echo "% test inline for multiple named/unnamed patches" |
142 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i 0:1 | \ | 145 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 0:1 | \ |
143 fixheaders | 146 fixheaders |
144 | 147 |
145 echo "% test inreplyto" | 148 echo "% test inreplyto" |
146 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz tip | \ | 149 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \ |
147 fixheaders | 150 -r tip | fixheaders |