##// END OF EJS Templates
py3: quote $PYTHON in test-patchbomb.t for Windows...
Matt Harbison -
r41005:55fcdb73 default
parent child Browse files
Show More
@@ -1,3079 +1,3081 b''
1 Note for future hackers of patchbomb: this file is a bit heavy on
1 Note for future hackers of patchbomb: this file is a bit heavy on
2 wildcards in test expectations due to how many things like hostnames
2 wildcards in test expectations due to how many things like hostnames
3 tend to make it into outputs. As a result, you may need to perform the
3 tend to make it into outputs. As a result, you may need to perform the
4 following regular expression substitutions:
4 following regular expression substitutions:
5 Mercurial-patchbomb/.* -> Mercurial-patchbomb/* (glob)
5 Mercurial-patchbomb/.* -> Mercurial-patchbomb/* (glob)
6 /mixed; boundary="===+[0-9]+==" -> /mixed; boundary="===*== (glob)"
6 /mixed; boundary="===+[0-9]+==" -> /mixed; boundary="===*== (glob)"
7 --===+[0-9]+=+--$ -> --===*=-- (glob)
7 --===+[0-9]+=+--$ -> --===*=-- (glob)
8 --===+[0-9]+=+$ -> --===*= (glob)
8 --===+[0-9]+=+$ -> --===*= (glob)
9
9
10 $ cat > prune-blank-after-boundary.py <<EOF
10 $ cat > prune-blank-after-boundary.py <<EOF
11 > from __future__ import absolute_import, print_function
11 > from __future__ import absolute_import, print_function
12 > import sys
12 > import sys
13 > skipblank = False
13 > skipblank = False
14 > trim = lambda x: x.strip(' \r\n')
14 > trim = lambda x: x.strip(' \r\n')
15 > for l in sys.stdin:
15 > for l in sys.stdin:
16 > if trim(l).endswith('=--') or trim(l).endswith('=='):
16 > if trim(l).endswith('=--') or trim(l).endswith('=='):
17 > skipblank = True
17 > skipblank = True
18 > print(l, end='')
18 > print(l, end='')
19 > continue
19 > continue
20 > if not trim(l) and skipblank:
20 > if not trim(l) and skipblank:
21 > continue
21 > continue
22 > skipblank = False
22 > skipblank = False
23 > print(l, end='')
23 > print(l, end='')
24 > EOF
24 > EOF
25 $ FILTERBOUNDARY="$PYTHON `pwd`/prune-blank-after-boundary.py"
25 $ filterboundary() {
26 > "$PYTHON" "$TESTTMP/prune-blank-after-boundary.py"
27 > }
26 $ echo "[extensions]" >> $HGRCPATH
28 $ echo "[extensions]" >> $HGRCPATH
27 $ echo "patchbomb=" >> $HGRCPATH
29 $ echo "patchbomb=" >> $HGRCPATH
28
30
29 $ hg init t
31 $ hg init t
30 $ cd t
32 $ cd t
31 $ echo a > a
33 $ echo a > a
32 $ hg commit -Ama -d '1 0'
34 $ hg commit -Ama -d '1 0'
33 adding a
35 adding a
34
36
35 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
37 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
36 this patch series consists of 1 patches.
38 this patch series consists of 1 patches.
37
39
38
40
39 displaying [PATCH] a ...
41 displaying [PATCH] a ...
40 MIME-Version: 1.0
42 MIME-Version: 1.0
41 Content-Type: text/plain; charset="us-ascii"
43 Content-Type: text/plain; charset="us-ascii"
42 Content-Transfer-Encoding: 7bit
44 Content-Transfer-Encoding: 7bit
43 Subject: [PATCH] a
45 Subject: [PATCH] a
44 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
46 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
45 X-Mercurial-Series-Index: 1
47 X-Mercurial-Series-Index: 1
46 X-Mercurial-Series-Total: 1
48 X-Mercurial-Series-Total: 1
47 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
49 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
48 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
50 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
49 User-Agent: Mercurial-patchbomb/* (glob)
51 User-Agent: Mercurial-patchbomb/* (glob)
50 Date: Thu, 01 Jan 1970 00:01:00 +0000
52 Date: Thu, 01 Jan 1970 00:01:00 +0000
51 From: quux
53 From: quux
52 To: foo
54 To: foo
53 Cc: bar
55 Cc: bar
54
56
55 # HG changeset patch
57 # HG changeset patch
56 # User test
58 # User test
57 # Date 1 0
59 # Date 1 0
58 # Thu Jan 01 00:00:01 1970 +0000
60 # Thu Jan 01 00:00:01 1970 +0000
59 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
61 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
60 # Parent 0000000000000000000000000000000000000000
62 # Parent 0000000000000000000000000000000000000000
61 a
63 a
62
64
63 diff -r 000000000000 -r 8580ff50825a a
65 diff -r 000000000000 -r 8580ff50825a a
64 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
66 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
65 +++ b/a Thu Jan 01 00:00:01 1970 +0000
67 +++ b/a Thu Jan 01 00:00:01 1970 +0000
66 @@ -0,0 +1,1 @@
68 @@ -0,0 +1,1 @@
67 +a
69 +a
68
70
69
71
70 If --to is specified on the command line, it should override any
72 If --to is specified on the command line, it should override any
71 email.to config setting. Same for --cc:
73 email.to config setting. Same for --cc:
72
74
73 $ hg email --date '1970-1-1 0:1' -n -f quux --to foo --cc bar -r tip \
75 $ hg email --date '1970-1-1 0:1' -n -f quux --to foo --cc bar -r tip \
74 > --config email.to=bob@example.com --config email.cc=alice@example.com
76 > --config email.to=bob@example.com --config email.cc=alice@example.com
75 this patch series consists of 1 patches.
77 this patch series consists of 1 patches.
76
78
77
79
78 displaying [PATCH] a ...
80 displaying [PATCH] a ...
79 MIME-Version: 1.0
81 MIME-Version: 1.0
80 Content-Type: text/plain; charset="us-ascii"
82 Content-Type: text/plain; charset="us-ascii"
81 Content-Transfer-Encoding: 7bit
83 Content-Transfer-Encoding: 7bit
82 Subject: [PATCH] a
84 Subject: [PATCH] a
83 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
85 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
84 X-Mercurial-Series-Index: 1
86 X-Mercurial-Series-Index: 1
85 X-Mercurial-Series-Total: 1
87 X-Mercurial-Series-Total: 1
86 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
88 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
87 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
89 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
88 User-Agent: Mercurial-patchbomb/* (glob)
90 User-Agent: Mercurial-patchbomb/* (glob)
89 Date: Thu, 01 Jan 1970 00:01:00 +0000
91 Date: Thu, 01 Jan 1970 00:01:00 +0000
90 From: quux
92 From: quux
91 To: foo
93 To: foo
92 Cc: bar
94 Cc: bar
93
95
94 # HG changeset patch
96 # HG changeset patch
95 # User test
97 # User test
96 # Date 1 0
98 # Date 1 0
97 # Thu Jan 01 00:00:01 1970 +0000
99 # Thu Jan 01 00:00:01 1970 +0000
98 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
100 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
99 # Parent 0000000000000000000000000000000000000000
101 # Parent 0000000000000000000000000000000000000000
100 a
102 a
101
103
102 diff -r 000000000000 -r 8580ff50825a a
104 diff -r 000000000000 -r 8580ff50825a a
103 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
105 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
104 +++ b/a Thu Jan 01 00:00:01 1970 +0000
106 +++ b/a Thu Jan 01 00:00:01 1970 +0000
105 @@ -0,0 +1,1 @@
107 @@ -0,0 +1,1 @@
106 +a
108 +a
107
109
108
110
109 $ hg --config ui.interactive=1 email --confirm -n -f quux -t foo -c bar -r tip<<EOF
111 $ hg --config ui.interactive=1 email --confirm -n -f quux -t foo -c bar -r tip<<EOF
110 > n
112 > n
111 > EOF
113 > EOF
112 this patch series consists of 1 patches.
114 this patch series consists of 1 patches.
113
115
114
116
115 Final summary:
117 Final summary:
116
118
117 From: quux
119 From: quux
118 To: foo
120 To: foo
119 Cc: bar
121 Cc: bar
120 Subject: [PATCH] a
122 Subject: [PATCH] a
121 a | 1 +
123 a | 1 +
122 1 files changed, 1 insertions(+), 0 deletions(-)
124 1 files changed, 1 insertions(+), 0 deletions(-)
123
125
124 are you sure you want to send (yn)? n
126 are you sure you want to send (yn)? n
125 abort: patchbomb canceled
127 abort: patchbomb canceled
126 [255]
128 [255]
127
129
128 $ hg --config ui.interactive=1 --config patchbomb.confirm=true email -n -f quux -t foo -c bar -r tip<<EOF
130 $ hg --config ui.interactive=1 --config patchbomb.confirm=true email -n -f quux -t foo -c bar -r tip<<EOF
129 > n
131 > n
130 > EOF
132 > EOF
131 this patch series consists of 1 patches.
133 this patch series consists of 1 patches.
132
134
133
135
134 Final summary:
136 Final summary:
135
137
136 From: quux
138 From: quux
137 To: foo
139 To: foo
138 Cc: bar
140 Cc: bar
139 Subject: [PATCH] a
141 Subject: [PATCH] a
140 a | 1 +
142 a | 1 +
141 1 files changed, 1 insertions(+), 0 deletions(-)
143 1 files changed, 1 insertions(+), 0 deletions(-)
142
144
143 are you sure you want to send (yn)? n
145 are you sure you want to send (yn)? n
144 abort: patchbomb canceled
146 abort: patchbomb canceled
145 [255]
147 [255]
146
148
147
149
148 Test diff.git is respected
150 Test diff.git is respected
149 $ hg --config diff.git=True email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
151 $ hg --config diff.git=True email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
150 this patch series consists of 1 patches.
152 this patch series consists of 1 patches.
151
153
152
154
153 displaying [PATCH] a ...
155 displaying [PATCH] a ...
154 MIME-Version: 1.0
156 MIME-Version: 1.0
155 Content-Type: text/plain; charset="us-ascii"
157 Content-Type: text/plain; charset="us-ascii"
156 Content-Transfer-Encoding: 7bit
158 Content-Transfer-Encoding: 7bit
157 Subject: [PATCH] a
159 Subject: [PATCH] a
158 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
160 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
159 X-Mercurial-Series-Index: 1
161 X-Mercurial-Series-Index: 1
160 X-Mercurial-Series-Total: 1
162 X-Mercurial-Series-Total: 1
161 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
163 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
162 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
164 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
163 User-Agent: Mercurial-patchbomb/* (glob)
165 User-Agent: Mercurial-patchbomb/* (glob)
164 Date: Thu, 01 Jan 1970 00:01:00 +0000
166 Date: Thu, 01 Jan 1970 00:01:00 +0000
165 From: quux
167 From: quux
166 To: foo
168 To: foo
167 Cc: bar
169 Cc: bar
168
170
169 # HG changeset patch
171 # HG changeset patch
170 # User test
172 # User test
171 # Date 1 0
173 # Date 1 0
172 # Thu Jan 01 00:00:01 1970 +0000
174 # Thu Jan 01 00:00:01 1970 +0000
173 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
175 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
174 # Parent 0000000000000000000000000000000000000000
176 # Parent 0000000000000000000000000000000000000000
175 a
177 a
176
178
177 diff --git a/a b/a
179 diff --git a/a b/a
178 new file mode 100644
180 new file mode 100644
179 --- /dev/null
181 --- /dev/null
180 +++ b/a
182 +++ b/a
181 @@ -0,0 +1,1 @@
183 @@ -0,0 +1,1 @@
182 +a
184 +a
183
185
184
186
185
187
186 Test breaking format changes aren't
188 Test breaking format changes aren't
187 $ hg --config diff.noprefix=True email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
189 $ hg --config diff.noprefix=True email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
188 this patch series consists of 1 patches.
190 this patch series consists of 1 patches.
189
191
190
192
191 displaying [PATCH] a ...
193 displaying [PATCH] a ...
192 MIME-Version: 1.0
194 MIME-Version: 1.0
193 Content-Type: text/plain; charset="us-ascii"
195 Content-Type: text/plain; charset="us-ascii"
194 Content-Transfer-Encoding: 7bit
196 Content-Transfer-Encoding: 7bit
195 Subject: [PATCH] a
197 Subject: [PATCH] a
196 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
198 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
197 X-Mercurial-Series-Index: 1
199 X-Mercurial-Series-Index: 1
198 X-Mercurial-Series-Total: 1
200 X-Mercurial-Series-Total: 1
199 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
201 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
200 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
202 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
201 User-Agent: Mercurial-patchbomb/* (glob)
203 User-Agent: Mercurial-patchbomb/* (glob)
202 Date: Thu, 01 Jan 1970 00:01:00 +0000
204 Date: Thu, 01 Jan 1970 00:01:00 +0000
203 From: quux
205 From: quux
204 To: foo
206 To: foo
205 Cc: bar
207 Cc: bar
206
208
207 # HG changeset patch
209 # HG changeset patch
208 # User test
210 # User test
209 # Date 1 0
211 # Date 1 0
210 # Thu Jan 01 00:00:01 1970 +0000
212 # Thu Jan 01 00:00:01 1970 +0000
211 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
213 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
212 # Parent 0000000000000000000000000000000000000000
214 # Parent 0000000000000000000000000000000000000000
213 a
215 a
214
216
215 diff -r 000000000000 -r 8580ff50825a a
217 diff -r 000000000000 -r 8580ff50825a a
216 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
218 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
217 +++ b/a Thu Jan 01 00:00:01 1970 +0000
219 +++ b/a Thu Jan 01 00:00:01 1970 +0000
218 @@ -0,0 +1,1 @@
220 @@ -0,0 +1,1 @@
219 +a
221 +a
220
222
221
223
222 $ echo b > b
224 $ echo b > b
223 $ hg commit -Amb -d '2 0'
225 $ hg commit -Amb -d '2 0'
224 adding b
226 adding b
225
227
226 $ hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test -r 0:tip
228 $ hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test -r 0:tip
227 this patch series consists of 2 patches.
229 this patch series consists of 2 patches.
228
230
229
231
230 Write the introductory message for the patch series.
232 Write the introductory message for the patch series.
231
233
232
234
233 displaying [PATCH 0 of 2] test ...
235 displaying [PATCH 0 of 2] test ...
234 MIME-Version: 1.0
236 MIME-Version: 1.0
235 Content-Type: text/plain; charset="us-ascii"
237 Content-Type: text/plain; charset="us-ascii"
236 Content-Transfer-Encoding: 7bit
238 Content-Transfer-Encoding: 7bit
237 Subject: [PATCH 0 of 2] test
239 Subject: [PATCH 0 of 2] test
238 Message-Id: <patchbomb.120@test-hostname>
240 Message-Id: <patchbomb.120@test-hostname>
239 User-Agent: Mercurial-patchbomb/* (glob)
241 User-Agent: Mercurial-patchbomb/* (glob)
240 Date: Thu, 01 Jan 1970 00:02:00 +0000
242 Date: Thu, 01 Jan 1970 00:02:00 +0000
241 From: quux
243 From: quux
242 To: foo
244 To: foo
243 Cc: bar
245 Cc: bar
244
246
245
247
246 displaying [PATCH 1 of 2] a ...
248 displaying [PATCH 1 of 2] a ...
247 MIME-Version: 1.0
249 MIME-Version: 1.0
248 Content-Type: text/plain; charset="us-ascii"
250 Content-Type: text/plain; charset="us-ascii"
249 Content-Transfer-Encoding: 7bit
251 Content-Transfer-Encoding: 7bit
250 Subject: [PATCH 1 of 2] a
252 Subject: [PATCH 1 of 2] a
251 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
253 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
252 X-Mercurial-Series-Index: 1
254 X-Mercurial-Series-Index: 1
253 X-Mercurial-Series-Total: 2
255 X-Mercurial-Series-Total: 2
254 Message-Id: <8580ff50825a50c8f716.121@test-hostname>
256 Message-Id: <8580ff50825a50c8f716.121@test-hostname>
255 X-Mercurial-Series-Id: <8580ff50825a50c8f716.121@test-hostname>
257 X-Mercurial-Series-Id: <8580ff50825a50c8f716.121@test-hostname>
256 In-Reply-To: <patchbomb.120@test-hostname>
258 In-Reply-To: <patchbomb.120@test-hostname>
257 References: <patchbomb.120@test-hostname>
259 References: <patchbomb.120@test-hostname>
258 User-Agent: Mercurial-patchbomb/* (glob)
260 User-Agent: Mercurial-patchbomb/* (glob)
259 Date: Thu, 01 Jan 1970 00:02:01 +0000
261 Date: Thu, 01 Jan 1970 00:02:01 +0000
260 From: quux
262 From: quux
261 To: foo
263 To: foo
262 Cc: bar
264 Cc: bar
263
265
264 # HG changeset patch
266 # HG changeset patch
265 # User test
267 # User test
266 # Date 1 0
268 # Date 1 0
267 # Thu Jan 01 00:00:01 1970 +0000
269 # Thu Jan 01 00:00:01 1970 +0000
268 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
270 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
269 # Parent 0000000000000000000000000000000000000000
271 # Parent 0000000000000000000000000000000000000000
270 a
272 a
271
273
272 diff -r 000000000000 -r 8580ff50825a a
274 diff -r 000000000000 -r 8580ff50825a a
273 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
275 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
274 +++ b/a Thu Jan 01 00:00:01 1970 +0000
276 +++ b/a Thu Jan 01 00:00:01 1970 +0000
275 @@ -0,0 +1,1 @@
277 @@ -0,0 +1,1 @@
276 +a
278 +a
277
279
278 displaying [PATCH 2 of 2] b ...
280 displaying [PATCH 2 of 2] b ...
279 MIME-Version: 1.0
281 MIME-Version: 1.0
280 Content-Type: text/plain; charset="us-ascii"
282 Content-Type: text/plain; charset="us-ascii"
281 Content-Transfer-Encoding: 7bit
283 Content-Transfer-Encoding: 7bit
282 Subject: [PATCH 2 of 2] b
284 Subject: [PATCH 2 of 2] b
283 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
285 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
284 X-Mercurial-Series-Index: 2
286 X-Mercurial-Series-Index: 2
285 X-Mercurial-Series-Total: 2
287 X-Mercurial-Series-Total: 2
286 Message-Id: <97d72e5f12c7e84f8506.122@test-hostname>
288 Message-Id: <97d72e5f12c7e84f8506.122@test-hostname>
287 X-Mercurial-Series-Id: <8580ff50825a50c8f716.121@test-hostname>
289 X-Mercurial-Series-Id: <8580ff50825a50c8f716.121@test-hostname>
288 In-Reply-To: <patchbomb.120@test-hostname>
290 In-Reply-To: <patchbomb.120@test-hostname>
289 References: <patchbomb.120@test-hostname>
291 References: <patchbomb.120@test-hostname>
290 User-Agent: Mercurial-patchbomb/* (glob)
292 User-Agent: Mercurial-patchbomb/* (glob)
291 Date: Thu, 01 Jan 1970 00:02:02 +0000
293 Date: Thu, 01 Jan 1970 00:02:02 +0000
292 From: quux
294 From: quux
293 To: foo
295 To: foo
294 Cc: bar
296 Cc: bar
295
297
296 # HG changeset patch
298 # HG changeset patch
297 # User test
299 # User test
298 # Date 2 0
300 # Date 2 0
299 # Thu Jan 01 00:00:02 1970 +0000
301 # Thu Jan 01 00:00:02 1970 +0000
300 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
302 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
301 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
303 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
302 b
304 b
303
305
304 diff -r 8580ff50825a -r 97d72e5f12c7 b
306 diff -r 8580ff50825a -r 97d72e5f12c7 b
305 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
307 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
306 +++ b/b Thu Jan 01 00:00:02 1970 +0000
308 +++ b/b Thu Jan 01 00:00:02 1970 +0000
307 @@ -0,0 +1,1 @@
309 @@ -0,0 +1,1 @@
308 +b
310 +b
309
311
310
312
311 .hg/last-email.txt
313 .hg/last-email.txt
312
314
313 $ cat > editor.sh << '__EOF__'
315 $ cat > editor.sh << '__EOF__'
314 > echo "a precious introductory message" > "$1"
316 > echo "a precious introductory message" > "$1"
315 > __EOF__
317 > __EOF__
316 $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg email -n -t foo -s test -r 0:tip > /dev/null
318 $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg email -n -t foo -s test -r 0:tip > /dev/null
317 $ cat .hg/last-email.txt
319 $ cat .hg/last-email.txt
318 a precious introductory message
320 a precious introductory message
319
321
320 $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip \
322 $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip \
321 > --config extensions.progress= --config progress.assume-tty=1 \
323 > --config extensions.progress= --config progress.assume-tty=1 \
322 > --config progress.delay=0 --config progress.refresh=0 \
324 > --config progress.delay=0 --config progress.refresh=0 \
323 > --config progress.width=60 \
325 > --config progress.width=60 \
324 > --config extensions.mocktime=$TESTDIR/mocktime.py
326 > --config extensions.mocktime=$TESTDIR/mocktime.py
325 this patch series consists of 2 patches.
327 this patch series consists of 2 patches.
326
328
327
329
328 Write the introductory message for the patch series.
330 Write the introductory message for the patch series.
329
331
330 \r (no-eol) (esc)
332 \r (no-eol) (esc)
331 sending [ ] 0/3\r (no-eol) (esc)
333 sending [ ] 0/3\r (no-eol) (esc)
332 \r (no-eol) (esc)
334 \r (no-eol) (esc)
333 \r (no-eol) (esc)
335 \r (no-eol) (esc)
334 sending [============> ] 1/3 01s\r (no-eol) (esc)
336 sending [============> ] 1/3 01s\r (no-eol) (esc)
335 \r (no-eol) (esc)
337 \r (no-eol) (esc)
336 \r (no-eol) (esc)
338 \r (no-eol) (esc)
337 sending [==========================> ] 2/3 01s\r (no-eol) (esc)
339 sending [==========================> ] 2/3 01s\r (no-eol) (esc)
338 \r (esc)
340 \r (esc)
339 sending [PATCH 0 of 2] test ...
341 sending [PATCH 0 of 2] test ...
340 sending [PATCH 1 of 2] a ...
342 sending [PATCH 1 of 2] a ...
341 sending [PATCH 2 of 2] b ...
343 sending [PATCH 2 of 2] b ...
342
344
343 $ cd ..
345 $ cd ..
344
346
345 $ hg clone -q t t2
347 $ hg clone -q t t2
346 $ cd t2
348 $ cd t2
347 $ echo c > c
349 $ echo c > c
348 $ hg commit -Amc -d '3 0'
350 $ hg commit -Amc -d '3 0'
349 adding c
351 adding c
350
352
351 $ cat > description <<EOF
353 $ cat > description <<EOF
352 > a multiline
354 > a multiline
353 >
355 >
354 > description
356 > description
355 > EOF
357 > EOF
356
358
357
359
358 test bundle and description:
360 test bundle and description:
359 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
361 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
360 > -c bar -s test -r tip -b --desc description | $FILTERBOUNDARY
362 > -c bar -s test -r tip -b --desc description | filterboundary
361 searching for changes
363 searching for changes
362 1 changesets found
364 1 changesets found
363
365
364 displaying test ...
366 displaying test ...
365 Content-Type: multipart/mixed; boundary="===*==" (glob)
367 Content-Type: multipart/mixed; boundary="===*==" (glob)
366 MIME-Version: 1.0
368 MIME-Version: 1.0
367 Subject: test
369 Subject: test
368 Message-Id: <patchbomb.180@test-hostname>
370 Message-Id: <patchbomb.180@test-hostname>
369 User-Agent: Mercurial-patchbomb/* (glob)
371 User-Agent: Mercurial-patchbomb/* (glob)
370 Date: Thu, 01 Jan 1970 00:03:00 +0000
372 Date: Thu, 01 Jan 1970 00:03:00 +0000
371 From: quux
373 From: quux
372 To: foo
374 To: foo
373 Cc: bar
375 Cc: bar
374
376
375 --===*= (glob)
377 --===*= (glob)
376 MIME-Version: 1.0
378 MIME-Version: 1.0
377 Content-Type: text/plain; charset="us-ascii"
379 Content-Type: text/plain; charset="us-ascii"
378 Content-Transfer-Encoding: 7bit
380 Content-Transfer-Encoding: 7bit
379
381
380 a multiline
382 a multiline
381
383
382 description
384 description
383
385
384 --===*= (glob)
386 --===*= (glob)
385 Content-Type: application/x-mercurial-bundle
387 Content-Type: application/x-mercurial-bundle
386 MIME-Version: 1.0
388 MIME-Version: 1.0
387 Content-Disposition: attachment; filename="bundle.hg"
389 Content-Disposition: attachment; filename="bundle.hg"
388 Content-Transfer-Encoding: base64
390 Content-Transfer-Encoding: base64
389
391
390 SEcyMAAAAA5Db21wcmVzc2lvbj1CWkJaaDkxQVkmU1l91TAVAAAN////vFcSXL9/8H7R09C/578I
392 SEcyMAAAAA5Db21wcmVzc2lvbj1CWkJaaDkxQVkmU1l91TAVAAAN////vFcSXL9/8H7R09C/578I
391 Ak0E4pe4SIIIgQSgGEQOcLABGYYNKgJgmhpp6mmjIZMCZNMhpgBBpkaYJpo9QaZMg02iaY2lCImK
393 Ak0E4pe4SIIIgQSgGEQOcLABGYYNKgJgmhpp6mmjIZMCZNMhpgBBpkaYJpo9QaZMg02iaY2lCImK
392 emk02kmEAeoA0D01ANBoHqHqADTaj1NAAyZqA0Gg0KiYnqaepk0eoNDTCGj1A0eoyBoGjRkYBqAB
394 emk02kmEAeoA0D01ANBoHqHqADTaj1NAAyZqA0Gg0KiYnqaepk0eoNDTCGj1A0eoyBoGjRkYBqAB
393 poNMmhkBhENSP0knlYZbqyEIYxkFdpDUS6roBDMgAGhkAqd92kEcgyeMo2MM366gpLNHjfKrhJPN
395 poNMmhkBhENSP0knlYZbqyEIYxkFdpDUS6roBDMgAGhkAqd92kEcgyeMo2MM366gpLNHjfKrhJPN
394 vdBCHAEDsYzAvzkHKxy5KWBAmh5e1nFttGChpsxrgmutRG0YrsSLWEBH9h95cbZEKFeUKYykRXHa
396 vdBCHAEDsYzAvzkHKxy5KWBAmh5e1nFttGChpsxrgmutRG0YrsSLWEBH9h95cbZEKFeUKYykRXHa
395 Bkt2OSgELsqqnWKeMudBR+YSZCOSHrwPz7B/Gfou7/L6QV6S0IgclBCitBVHMxMFq/vGwp5WHezM
397 Bkt2OSgELsqqnWKeMudBR+YSZCOSHrwPz7B/Gfou7/L6QV6S0IgclBCitBVHMxMFq/vGwp5WHezM
396 JwhKTnH0OkMbmVjrAkQKR7VM2aNSXn+GzLOCzOQm0AJ1TLCpdSgnfFPcY7mGxAOyHXS1YEFVi5O9
398 JwhKTnH0OkMbmVjrAkQKR7VM2aNSXn+GzLOCzOQm0AJ1TLCpdSgnfFPcY7mGxAOyHXS1YEFVi5O9
397 I4EVBBd8VRgN4n1MAm8l6QQ+yB60hkeX/0ZZmKoQRINkEBxEDZU2HjIZMcwWRvZtbRIa5kgkGIb/
399 I4EVBBd8VRgN4n1MAm8l6QQ+yB60hkeX/0ZZmKoQRINkEBxEDZU2HjIZMcwWRvZtbRIa5kgkGIb/
398 SkImFwIkDtQxyX+LuSKcKEg+6pgKgA==
400 SkImFwIkDtQxyX+LuSKcKEg+6pgKgA==
399 --===============*==-- (glob)
401 --===============*==-- (glob)
400
402
401 with a specific bundle type
403 with a specific bundle type
402 (binary part must be different)
404 (binary part must be different)
403
405
404 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
406 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
405 > -c bar -s test -r tip -b --desc description \
407 > -c bar -s test -r tip -b --desc description \
406 > --config patchbomb.bundletype=gzip-v1 | $FILTERBOUNDARY
408 > --config patchbomb.bundletype=gzip-v1 | filterboundary
407 searching for changes
409 searching for changes
408 1 changesets found
410 1 changesets found
409
411
410 displaying test ...
412 displaying test ...
411 Content-Type: multipart/mixed; boundary="===*==" (glob)
413 Content-Type: multipart/mixed; boundary="===*==" (glob)
412 MIME-Version: 1.0
414 MIME-Version: 1.0
413 Subject: test
415 Subject: test
414 Message-Id: <patchbomb.180@test-hostname>
416 Message-Id: <patchbomb.180@test-hostname>
415 User-Agent: Mercurial-patchbomb/* (glob)
417 User-Agent: Mercurial-patchbomb/* (glob)
416 Date: Thu, 01 Jan 1970 00:03:00 +0000
418 Date: Thu, 01 Jan 1970 00:03:00 +0000
417 From: quux
419 From: quux
418 To: foo
420 To: foo
419 Cc: bar
421 Cc: bar
420
422
421 --===*= (glob)
423 --===*= (glob)
422 MIME-Version: 1.0
424 MIME-Version: 1.0
423 Content-Type: text/plain; charset="us-ascii"
425 Content-Type: text/plain; charset="us-ascii"
424 Content-Transfer-Encoding: 7bit
426 Content-Transfer-Encoding: 7bit
425
427
426 a multiline
428 a multiline
427
429
428 description
430 description
429
431
430 --===*= (glob)
432 --===*= (glob)
431 Content-Type: application/x-mercurial-bundle
433 Content-Type: application/x-mercurial-bundle
432 MIME-Version: 1.0
434 MIME-Version: 1.0
433 Content-Disposition: attachment; filename="bundle.hg"
435 Content-Disposition: attachment; filename="bundle.hg"
434 Content-Transfer-Encoding: base64
436 Content-Transfer-Encoding: base64
435
437
436 SEcxMEdaeJxjYGBY8V9n/iLGbtFfJZuNk/euDCpWfrRy/vTrevFCx1/4t7J5LdeL0ix0Opx3kwEL
438 SEcxMEdaeJxjYGBY8V9n/iLGbtFfJZuNk/euDCpWfrRy/vTrevFCx1/4t7J5LdeL0ix0Opx3kwEL
437 wKYXKqUJwqnG5sYWSWmmJsaWlqYWaRaWJpaWiWamZpYWRgZGxolJiabmSQbmZqlcQMV6QGwCxGzG
439 wKYXKqUJwqnG5sYWSWmmJsaWlqYWaRaWJpaWiWamZpYWRgZGxolJiabmSQbmZqlcQMV6QGwCxGzG
438 CgZcySARUyA2A2LGZKiZ3Y+Lu786z4z4MWXmsrAZCsqrl1az5y21PMcjpbThzWeXGT+/nutbmvvz
440 CgZcySARUyA2A2LGZKiZ3Y+Lu786z4z4MWXmsrAZCsqrl1az5y21PMcjpbThzWeXGT+/nutbmvvz
439 zXYS3BoGxdrJDIYmlimJJiZpRokmqYYmaSYWFknmSSkmhqbmliamiZYWxuYmBhbJBgZcUBNZQe5K
441 zXYS3BoGxdrJDIYmlimJJiZpRokmqYYmaSYWFknmSSkmhqbmliamiZYWxuYmBhbJBgZcUBNZQe5K
440 Epm7xF/LT+RLx/a9juFTomaYO/Rgsx4rwBN+IMCUDLOKAQBrsmti
442 Epm7xF/LT+RLx/a9juFTomaYO/Rgsx4rwBN+IMCUDLOKAQBrsmti
441 (?)
443 (?)
442 --===============*==-- (glob)
444 --===============*==-- (glob)
443
445
444 utf-8 patch:
446 utf-8 patch:
445 $ "$PYTHON" -c 'fp = open("utf", "wb"); fp.write(b"h\xC3\xB6mma!\n"); fp.close();'
447 $ "$PYTHON" -c 'fp = open("utf", "wb"); fp.write(b"h\xC3\xB6mma!\n"); fp.close();'
446 $ hg commit -A -d '4 0' -m 'utf-8 content'
448 $ hg commit -A -d '4 0' -m 'utf-8 content'
447 adding description
449 adding description
448 adding utf
450 adding utf
449
451
450 no mime encoding for email --test:
452 no mime encoding for email --test:
451 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
453 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
452 this patch series consists of 1 patches.
454 this patch series consists of 1 patches.
453
455
454
456
455 displaying [PATCH] utf-8 content ...
457 displaying [PATCH] utf-8 content ...
456 MIME-Version: 1.0
458 MIME-Version: 1.0
457 Content-Type: text/plain; charset="iso-8859-1"
459 Content-Type: text/plain; charset="iso-8859-1"
458 Content-Transfer-Encoding: quoted-printable
460 Content-Transfer-Encoding: quoted-printable
459 Subject: [PATCH] utf-8 content
461 Subject: [PATCH] utf-8 content
460 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
462 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
461 X-Mercurial-Series-Index: 1
463 X-Mercurial-Series-Index: 1
462 X-Mercurial-Series-Total: 1
464 X-Mercurial-Series-Total: 1
463 Message-Id: <909a00e13e9d78b575ae.240@test-hostname>
465 Message-Id: <909a00e13e9d78b575ae.240@test-hostname>
464 X-Mercurial-Series-Id: <909a00e13e9d78b575ae.240@test-hostname>
466 X-Mercurial-Series-Id: <909a00e13e9d78b575ae.240@test-hostname>
465 User-Agent: Mercurial-patchbomb/* (glob)
467 User-Agent: Mercurial-patchbomb/* (glob)
466 Date: Thu, 01 Jan 1970 00:04:00 +0000
468 Date: Thu, 01 Jan 1970 00:04:00 +0000
467 From: quux
469 From: quux
468 To: foo
470 To: foo
469 Cc: bar
471 Cc: bar
470
472
471 # HG changeset patch
473 # HG changeset patch
472 # User test
474 # User test
473 # Date 4 0
475 # Date 4 0
474 # Thu Jan 01 00:00:04 1970 +0000
476 # Thu Jan 01 00:00:04 1970 +0000
475 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
477 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
476 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
478 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
477 utf-8 content
479 utf-8 content
478
480
479 diff -r ff2c9fa2018b -r 909a00e13e9d description
481 diff -r ff2c9fa2018b -r 909a00e13e9d description
480 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
482 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
481 +++ b/description Thu Jan 01 00:00:04 1970 +0000
483 +++ b/description Thu Jan 01 00:00:04 1970 +0000
482 @@ -0,0 +1,3 @@
484 @@ -0,0 +1,3 @@
483 +a multiline
485 +a multiline
484 +
486 +
485 +description
487 +description
486 diff -r ff2c9fa2018b -r 909a00e13e9d utf
488 diff -r ff2c9fa2018b -r 909a00e13e9d utf
487 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
489 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
488 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
490 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
489 @@ -0,0 +1,1 @@
491 @@ -0,0 +1,1 @@
490 +h=C3=B6mma!
492 +h=C3=B6mma!
491
493
492
494
493 mime encoded mbox (base64):
495 mime encoded mbox (base64):
494 $ hg email --date '1970-1-1 0:4' -f 'Q <quux>' -t foo -c bar -r tip -m mbox
496 $ hg email --date '1970-1-1 0:4' -f 'Q <quux>' -t foo -c bar -r tip -m mbox
495 this patch series consists of 1 patches.
497 this patch series consists of 1 patches.
496
498
497
499
498 sending [PATCH] utf-8 content ...
500 sending [PATCH] utf-8 content ...
499
501
500 $ cat mbox
502 $ cat mbox
501 From quux ... ... .. ..:..:.. .... (re)
503 From quux ... ... .. ..:..:.. .... (re)
502 MIME-Version: 1.0
504 MIME-Version: 1.0
503 Content-Type: text/plain; charset="utf-8"
505 Content-Type: text/plain; charset="utf-8"
504 Content-Transfer-Encoding: base64
506 Content-Transfer-Encoding: base64
505 Subject: [PATCH] utf-8 content
507 Subject: [PATCH] utf-8 content
506 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
508 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
507 X-Mercurial-Series-Index: 1
509 X-Mercurial-Series-Index: 1
508 X-Mercurial-Series-Total: 1
510 X-Mercurial-Series-Total: 1
509 Message-Id: <909a00e13e9d78b575ae.240@test-hostname>
511 Message-Id: <909a00e13e9d78b575ae.240@test-hostname>
510 X-Mercurial-Series-Id: <909a00e13e9d78b575ae.240@test-hostname>
512 X-Mercurial-Series-Id: <909a00e13e9d78b575ae.240@test-hostname>
511 User-Agent: Mercurial-patchbomb/* (glob)
513 User-Agent: Mercurial-patchbomb/* (glob)
512 Date: Thu, 01 Jan 1970 00:04:00 +0000
514 Date: Thu, 01 Jan 1970 00:04:00 +0000
513 From: Q <quux>
515 From: Q <quux>
514 To: foo
516 To: foo
515 Cc: bar
517 Cc: bar
516
518
517 IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojICAgICAgVGh1IEph
519 IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojICAgICAgVGh1IEph
518 biAwMSAwMDowMDowNCAxOTcwICswMDAwCiMgTm9kZSBJRCA5MDlhMDBlMTNlOWQ3OGI1NzVhZWVl
520 biAwMSAwMDowMDowNCAxOTcwICswMDAwCiMgTm9kZSBJRCA5MDlhMDBlMTNlOWQ3OGI1NzVhZWVl
519 MjNkZGRiYWRhNDZkNWExNDNmCiMgUGFyZW50ICBmZjJjOWZhMjAxOGIxNWZhNzRiMzMzNjNiZGE5
521 MjNkZGRiYWRhNDZkNWExNDNmCiMgUGFyZW50ICBmZjJjOWZhMjAxOGIxNWZhNzRiMzMzNjNiZGE5
520 NTI3MzIzZTJhOTlmCnV0Zi04IGNvbnRlbnQKCmRpZmYgLXIgZmYyYzlmYTIwMThiIC1yIDkwOWEw
522 NTI3MzIzZTJhOTlmCnV0Zi04IGNvbnRlbnQKCmRpZmYgLXIgZmYyYzlmYTIwMThiIC1yIDkwOWEw
521 MGUxM2U5ZCBkZXNjcmlwdGlvbgotLS0gL2Rldi9udWxsCVRodSBKYW4gMDEgMDA6MDA6MDAgMTk3
523 MGUxM2U5ZCBkZXNjcmlwdGlvbgotLS0gL2Rldi9udWxsCVRodSBKYW4gMDEgMDA6MDA6MDAgMTk3
522 MCArMDAwMAorKysgYi9kZXNjcmlwdGlvbglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
524 MCArMDAwMAorKysgYi9kZXNjcmlwdGlvbglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
523 QEAgLTAsMCArMSwzIEBACithIG11bHRpbGluZQorCitkZXNjcmlwdGlvbgpkaWZmIC1yIGZmMmM5
525 QEAgLTAsMCArMSwzIEBACithIG11bHRpbGluZQorCitkZXNjcmlwdGlvbgpkaWZmIC1yIGZmMmM5
524 ZmEyMDE4YiAtciA5MDlhMDBlMTNlOWQgdXRmCi0tLSAvZGV2L251bGwJVGh1IEphbiAwMSAwMDow
526 ZmEyMDE4YiAtciA5MDlhMDBlMTNlOWQgdXRmCi0tLSAvZGV2L251bGwJVGh1IEphbiAwMSAwMDow
525 MDowMCAxOTcwICswMDAwCisrKyBiL3V0ZglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
527 MDowMCAxOTcwICswMDAwCisrKyBiL3V0ZglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
526 QEAgLTAsMCArMSwxIEBACitow7ZtbWEhCg==
528 QEAgLTAsMCArMSwxIEBACitow7ZtbWEhCg==
527
529
528
530
529 >>> import base64
531 >>> import base64
530 >>> patch = base64.b64decode(open("mbox").read().split("\n\n")[1])
532 >>> patch = base64.b64decode(open("mbox").read().split("\n\n")[1])
531 >>> if not isinstance(patch, str):
533 >>> if not isinstance(patch, str):
532 ... import sys
534 ... import sys
533 ... sys.stdout.flush()
535 ... sys.stdout.flush()
534 ... junk = sys.stdout.buffer.write(patch + b"\n")
536 ... junk = sys.stdout.buffer.write(patch + b"\n")
535 ... else:
537 ... else:
536 ... print(patch)
538 ... print(patch)
537 # HG changeset patch
539 # HG changeset patch
538 # User test
540 # User test
539 # Date 4 0
541 # Date 4 0
540 # Thu Jan 01 00:00:04 1970 +0000
542 # Thu Jan 01 00:00:04 1970 +0000
541 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
543 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
542 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
544 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
543 utf-8 content
545 utf-8 content
544
546
545 diff -r ff2c9fa2018b -r 909a00e13e9d description
547 diff -r ff2c9fa2018b -r 909a00e13e9d description
546 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
548 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
547 +++ b/description Thu Jan 01 00:00:04 1970 +0000
549 +++ b/description Thu Jan 01 00:00:04 1970 +0000
548 @@ -0,0 +1,3 @@
550 @@ -0,0 +1,3 @@
549 +a multiline
551 +a multiline
550 +
552 +
551 +description
553 +description
552 diff -r ff2c9fa2018b -r 909a00e13e9d utf
554 diff -r ff2c9fa2018b -r 909a00e13e9d utf
553 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
555 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
554 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
556 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
555 @@ -0,0 +1,1 @@
557 @@ -0,0 +1,1 @@
556 +h\xc3\xb6mma! (esc)
558 +h\xc3\xb6mma! (esc)
557
559
558 $ rm mbox
560 $ rm mbox
559
561
560 mime encoded mbox (quoted-printable):
562 mime encoded mbox (quoted-printable):
561 $ "$PYTHON" -c 'fp = open("long", "wb"); fp.write(b"%s\nfoo\n\nbar\n" % (b"x" * 1024)); fp.close();'
563 $ "$PYTHON" -c 'fp = open("long", "wb"); fp.write(b"%s\nfoo\n\nbar\n" % (b"x" * 1024)); fp.close();'
562 $ hg commit -A -d '4 0' -m 'long line'
564 $ hg commit -A -d '4 0' -m 'long line'
563 adding long
565 adding long
564
566
565 no mime encoding for email --test:
567 no mime encoding for email --test:
566 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
568 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
567 this patch series consists of 1 patches.
569 this patch series consists of 1 patches.
568
570
569
571
570 displaying [PATCH] long line ...
572 displaying [PATCH] long line ...
571 MIME-Version: 1.0
573 MIME-Version: 1.0
572 Content-Type: text/plain; charset="us-ascii"
574 Content-Type: text/plain; charset="us-ascii"
573 Content-Transfer-Encoding: quoted-printable
575 Content-Transfer-Encoding: quoted-printable
574 Subject: [PATCH] long line
576 Subject: [PATCH] long line
575 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
577 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
576 X-Mercurial-Series-Index: 1
578 X-Mercurial-Series-Index: 1
577 X-Mercurial-Series-Total: 1
579 X-Mercurial-Series-Total: 1
578 Message-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
580 Message-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
579 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
581 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
580 User-Agent: Mercurial-patchbomb/* (glob)
582 User-Agent: Mercurial-patchbomb/* (glob)
581 Date: Thu, 01 Jan 1970 00:04:00 +0000
583 Date: Thu, 01 Jan 1970 00:04:00 +0000
582 From: quux
584 From: quux
583 To: foo
585 To: foo
584 Cc: bar
586 Cc: bar
585
587
586 # HG changeset patch
588 # HG changeset patch
587 # User test
589 # User test
588 # Date 4 0
590 # Date 4 0
589 # Thu Jan 01 00:00:04 1970 +0000
591 # Thu Jan 01 00:00:04 1970 +0000
590 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
592 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
591 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
593 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
592 long line
594 long line
593
595
594 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
596 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
595 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
597 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
596 +++ b/long Thu Jan 01 00:00:04 1970 +0000
598 +++ b/long Thu Jan 01 00:00:04 1970 +0000
597 @@ -0,0 +1,4 @@
599 @@ -0,0 +1,4 @@
598 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
600 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
599 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
601 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
600 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
602 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
601 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
603 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
602 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
604 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
603 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
605 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
604 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
606 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
605 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
607 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
606 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
608 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
607 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
609 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
608 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
610 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
609 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
611 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
610 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
612 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
611 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
613 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
612 +foo
614 +foo
613 +
615 +
614 +bar
616 +bar
615
617
616
618
617 mime encoded mbox (quoted-printable):
619 mime encoded mbox (quoted-printable):
618 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
620 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
619 this patch series consists of 1 patches.
621 this patch series consists of 1 patches.
620
622
621
623
622 sending [PATCH] long line ...
624 sending [PATCH] long line ...
623 $ cat mbox
625 $ cat mbox
624 From quux ... ... .. ..:..:.. .... (re)
626 From quux ... ... .. ..:..:.. .... (re)
625 MIME-Version: 1.0
627 MIME-Version: 1.0
626 Content-Type: text/plain; charset="us-ascii"
628 Content-Type: text/plain; charset="us-ascii"
627 Content-Transfer-Encoding: quoted-printable
629 Content-Transfer-Encoding: quoted-printable
628 Subject: [PATCH] long line
630 Subject: [PATCH] long line
629 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
631 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
630 X-Mercurial-Series-Index: 1
632 X-Mercurial-Series-Index: 1
631 X-Mercurial-Series-Total: 1
633 X-Mercurial-Series-Total: 1
632 Message-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
634 Message-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
633 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
635 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.240@test-hostname>
634 User-Agent: Mercurial-patchbomb/* (glob)
636 User-Agent: Mercurial-patchbomb/* (glob)
635 Date: Thu, 01 Jan 1970 00:04:00 +0000
637 Date: Thu, 01 Jan 1970 00:04:00 +0000
636 From: quux
638 From: quux
637 To: foo
639 To: foo
638 Cc: bar
640 Cc: bar
639
641
640 # HG changeset patch
642 # HG changeset patch
641 # User test
643 # User test
642 # Date 4 0
644 # Date 4 0
643 # Thu Jan 01 00:00:04 1970 +0000
645 # Thu Jan 01 00:00:04 1970 +0000
644 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
646 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
645 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
647 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
646 long line
648 long line
647
649
648 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
650 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
649 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
651 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
650 +++ b/long Thu Jan 01 00:00:04 1970 +0000
652 +++ b/long Thu Jan 01 00:00:04 1970 +0000
651 @@ -0,0 +1,4 @@
653 @@ -0,0 +1,4 @@
652 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
654 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
653 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
655 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
654 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
656 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
655 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
657 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
656 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
658 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
657 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
659 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
658 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
660 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
659 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
661 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
660 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
662 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
661 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
663 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
662 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
664 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
663 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
665 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
664 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
666 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
665 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
667 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
666 +foo
668 +foo
667 +
669 +
668 +bar
670 +bar
669
671
670
672
671
673
672 $ rm mbox
674 $ rm mbox
673
675
674 iso-8859-1 patch:
676 iso-8859-1 patch:
675 $ "$PYTHON" -c 'fp = open("isolatin", "wb"); fp.write(b"h\xF6mma!\n"); fp.close();'
677 $ "$PYTHON" -c 'fp = open("isolatin", "wb"); fp.write(b"h\xF6mma!\n"); fp.close();'
676 $ hg commit -A -d '5 0' -m 'isolatin 8-bit encoding'
678 $ hg commit -A -d '5 0' -m 'isolatin 8-bit encoding'
677 adding isolatin
679 adding isolatin
678
680
679 iso-8859-1 mbox:
681 iso-8859-1 mbox:
680 $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
682 $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
681 this patch series consists of 1 patches.
683 this patch series consists of 1 patches.
682
684
683
685
684 sending [PATCH] isolatin 8-bit encoding ...
686 sending [PATCH] isolatin 8-bit encoding ...
685 $ cat mbox
687 $ cat mbox
686 From quux ... ... .. ..:..:.. .... (re)
688 From quux ... ... .. ..:..:.. .... (re)
687 MIME-Version: 1.0
689 MIME-Version: 1.0
688 Content-Type: text/plain; charset="iso-8859-1"
690 Content-Type: text/plain; charset="iso-8859-1"
689 Content-Transfer-Encoding: quoted-printable
691 Content-Transfer-Encoding: quoted-printable
690 Subject: [PATCH] isolatin 8-bit encoding
692 Subject: [PATCH] isolatin 8-bit encoding
691 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
693 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
692 X-Mercurial-Series-Index: 1
694 X-Mercurial-Series-Index: 1
693 X-Mercurial-Series-Total: 1
695 X-Mercurial-Series-Total: 1
694 Message-Id: <240fb913fc1b7ff15ddb.300@test-hostname>
696 Message-Id: <240fb913fc1b7ff15ddb.300@test-hostname>
695 X-Mercurial-Series-Id: <240fb913fc1b7ff15ddb.300@test-hostname>
697 X-Mercurial-Series-Id: <240fb913fc1b7ff15ddb.300@test-hostname>
696 User-Agent: Mercurial-patchbomb/* (glob)
698 User-Agent: Mercurial-patchbomb/* (glob)
697 Date: Thu, 01 Jan 1970 00:05:00 +0000
699 Date: Thu, 01 Jan 1970 00:05:00 +0000
698 From: quux
700 From: quux
699 To: foo
701 To: foo
700 Cc: bar
702 Cc: bar
701
703
702 # HG changeset patch
704 # HG changeset patch
703 # User test
705 # User test
704 # Date 5 0
706 # Date 5 0
705 # Thu Jan 01 00:00:05 1970 +0000
707 # Thu Jan 01 00:00:05 1970 +0000
706 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
708 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
707 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
709 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
708 isolatin 8-bit encoding
710 isolatin 8-bit encoding
709
711
710 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
712 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
711 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
713 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
712 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
714 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
713 @@ -0,0 +1,1 @@
715 @@ -0,0 +1,1 @@
714 +h=F6mma!
716 +h=F6mma!
715
717
716
718
717
719
718 test diffstat for single patch:
720 test diffstat for single patch:
719 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2
721 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2
720 this patch series consists of 1 patches.
722 this patch series consists of 1 patches.
721
723
722
724
723 Final summary:
725 Final summary:
724
726
725 From: quux
727 From: quux
726 To: foo
728 To: foo
727 Cc: bar
729 Cc: bar
728 Subject: [PATCH] test
730 Subject: [PATCH] test
729 c | 1 +
731 c | 1 +
730 1 files changed, 1 insertions(+), 0 deletions(-)
732 1 files changed, 1 insertions(+), 0 deletions(-)
731
733
732 are you sure you want to send (yn)? y
734 are you sure you want to send (yn)? y
733
735
734 displaying [PATCH] test ...
736 displaying [PATCH] test ...
735 MIME-Version: 1.0
737 MIME-Version: 1.0
736 Content-Type: text/plain; charset="us-ascii"
738 Content-Type: text/plain; charset="us-ascii"
737 Content-Transfer-Encoding: 7bit
739 Content-Transfer-Encoding: 7bit
738 Subject: [PATCH] test
740 Subject: [PATCH] test
739 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
741 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
740 X-Mercurial-Series-Index: 1
742 X-Mercurial-Series-Index: 1
741 X-Mercurial-Series-Total: 1
743 X-Mercurial-Series-Total: 1
742 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
744 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
743 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
745 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
744 User-Agent: Mercurial-patchbomb/* (glob)
746 User-Agent: Mercurial-patchbomb/* (glob)
745 Date: Thu, 01 Jan 1970 00:01:00 +0000
747 Date: Thu, 01 Jan 1970 00:01:00 +0000
746 From: quux
748 From: quux
747 To: foo
749 To: foo
748 Cc: bar
750 Cc: bar
749
751
750 c | 1 +
752 c | 1 +
751 1 files changed, 1 insertions(+), 0 deletions(-)
753 1 files changed, 1 insertions(+), 0 deletions(-)
752
754
753
755
754 # HG changeset patch
756 # HG changeset patch
755 # User test
757 # User test
756 # Date 3 0
758 # Date 3 0
757 # Thu Jan 01 00:00:03 1970 +0000
759 # Thu Jan 01 00:00:03 1970 +0000
758 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
760 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
759 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
761 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
760 c
762 c
761
763
762 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
764 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
763 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
765 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
764 +++ b/c Thu Jan 01 00:00:03 1970 +0000
766 +++ b/c Thu Jan 01 00:00:03 1970 +0000
765 @@ -0,0 +1,1 @@
767 @@ -0,0 +1,1 @@
766 +c
768 +c
767
769
768
770
769 test diffstat for multiple patches:
771 test diffstat for multiple patches:
770 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \
772 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \
771 > -r 0:1
773 > -r 0:1
772 this patch series consists of 2 patches.
774 this patch series consists of 2 patches.
773
775
774
776
775 Write the introductory message for the patch series.
777 Write the introductory message for the patch series.
776
778
777
779
778 Final summary:
780 Final summary:
779
781
780 From: quux
782 From: quux
781 To: foo
783 To: foo
782 Cc: bar
784 Cc: bar
783 Subject: [PATCH 0 of 2] test
785 Subject: [PATCH 0 of 2] test
784 a | 1 +
786 a | 1 +
785 b | 1 +
787 b | 1 +
786 2 files changed, 2 insertions(+), 0 deletions(-)
788 2 files changed, 2 insertions(+), 0 deletions(-)
787 Subject: [PATCH 1 of 2] a
789 Subject: [PATCH 1 of 2] a
788 a | 1 +
790 a | 1 +
789 1 files changed, 1 insertions(+), 0 deletions(-)
791 1 files changed, 1 insertions(+), 0 deletions(-)
790 Subject: [PATCH 2 of 2] b
792 Subject: [PATCH 2 of 2] b
791 b | 1 +
793 b | 1 +
792 1 files changed, 1 insertions(+), 0 deletions(-)
794 1 files changed, 1 insertions(+), 0 deletions(-)
793
795
794 are you sure you want to send (yn)? y
796 are you sure you want to send (yn)? y
795
797
796 displaying [PATCH 0 of 2] test ...
798 displaying [PATCH 0 of 2] test ...
797 MIME-Version: 1.0
799 MIME-Version: 1.0
798 Content-Type: text/plain; charset="us-ascii"
800 Content-Type: text/plain; charset="us-ascii"
799 Content-Transfer-Encoding: 7bit
801 Content-Transfer-Encoding: 7bit
800 Subject: [PATCH 0 of 2] test
802 Subject: [PATCH 0 of 2] test
801 Message-Id: <patchbomb.60@test-hostname>
803 Message-Id: <patchbomb.60@test-hostname>
802 User-Agent: Mercurial-patchbomb/* (glob)
804 User-Agent: Mercurial-patchbomb/* (glob)
803 Date: Thu, 01 Jan 1970 00:01:00 +0000
805 Date: Thu, 01 Jan 1970 00:01:00 +0000
804 From: quux
806 From: quux
805 To: foo
807 To: foo
806 Cc: bar
808 Cc: bar
807
809
808
810
809 a | 1 +
811 a | 1 +
810 b | 1 +
812 b | 1 +
811 2 files changed, 2 insertions(+), 0 deletions(-)
813 2 files changed, 2 insertions(+), 0 deletions(-)
812
814
813 displaying [PATCH 1 of 2] a ...
815 displaying [PATCH 1 of 2] a ...
814 MIME-Version: 1.0
816 MIME-Version: 1.0
815 Content-Type: text/plain; charset="us-ascii"
817 Content-Type: text/plain; charset="us-ascii"
816 Content-Transfer-Encoding: 7bit
818 Content-Transfer-Encoding: 7bit
817 Subject: [PATCH 1 of 2] a
819 Subject: [PATCH 1 of 2] a
818 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
820 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
819 X-Mercurial-Series-Index: 1
821 X-Mercurial-Series-Index: 1
820 X-Mercurial-Series-Total: 2
822 X-Mercurial-Series-Total: 2
821 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
823 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
822 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
824 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
823 In-Reply-To: <patchbomb.60@test-hostname>
825 In-Reply-To: <patchbomb.60@test-hostname>
824 References: <patchbomb.60@test-hostname>
826 References: <patchbomb.60@test-hostname>
825 User-Agent: Mercurial-patchbomb/* (glob)
827 User-Agent: Mercurial-patchbomb/* (glob)
826 Date: Thu, 01 Jan 1970 00:01:01 +0000
828 Date: Thu, 01 Jan 1970 00:01:01 +0000
827 From: quux
829 From: quux
828 To: foo
830 To: foo
829 Cc: bar
831 Cc: bar
830
832
831 a | 1 +
833 a | 1 +
832 1 files changed, 1 insertions(+), 0 deletions(-)
834 1 files changed, 1 insertions(+), 0 deletions(-)
833
835
834
836
835 # HG changeset patch
837 # HG changeset patch
836 # User test
838 # User test
837 # Date 1 0
839 # Date 1 0
838 # Thu Jan 01 00:00:01 1970 +0000
840 # Thu Jan 01 00:00:01 1970 +0000
839 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
841 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
840 # Parent 0000000000000000000000000000000000000000
842 # Parent 0000000000000000000000000000000000000000
841 a
843 a
842
844
843 diff -r 000000000000 -r 8580ff50825a a
845 diff -r 000000000000 -r 8580ff50825a a
844 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
846 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
845 +++ b/a Thu Jan 01 00:00:01 1970 +0000
847 +++ b/a Thu Jan 01 00:00:01 1970 +0000
846 @@ -0,0 +1,1 @@
848 @@ -0,0 +1,1 @@
847 +a
849 +a
848
850
849 displaying [PATCH 2 of 2] b ...
851 displaying [PATCH 2 of 2] b ...
850 MIME-Version: 1.0
852 MIME-Version: 1.0
851 Content-Type: text/plain; charset="us-ascii"
853 Content-Type: text/plain; charset="us-ascii"
852 Content-Transfer-Encoding: 7bit
854 Content-Transfer-Encoding: 7bit
853 Subject: [PATCH 2 of 2] b
855 Subject: [PATCH 2 of 2] b
854 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
856 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
855 X-Mercurial-Series-Index: 2
857 X-Mercurial-Series-Index: 2
856 X-Mercurial-Series-Total: 2
858 X-Mercurial-Series-Total: 2
857 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
859 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
858 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
860 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
859 In-Reply-To: <patchbomb.60@test-hostname>
861 In-Reply-To: <patchbomb.60@test-hostname>
860 References: <patchbomb.60@test-hostname>
862 References: <patchbomb.60@test-hostname>
861 User-Agent: Mercurial-patchbomb/* (glob)
863 User-Agent: Mercurial-patchbomb/* (glob)
862 Date: Thu, 01 Jan 1970 00:01:02 +0000
864 Date: Thu, 01 Jan 1970 00:01:02 +0000
863 From: quux
865 From: quux
864 To: foo
866 To: foo
865 Cc: bar
867 Cc: bar
866
868
867 b | 1 +
869 b | 1 +
868 1 files changed, 1 insertions(+), 0 deletions(-)
870 1 files changed, 1 insertions(+), 0 deletions(-)
869
871
870
872
871 # HG changeset patch
873 # HG changeset patch
872 # User test
874 # User test
873 # Date 2 0
875 # Date 2 0
874 # Thu Jan 01 00:00:02 1970 +0000
876 # Thu Jan 01 00:00:02 1970 +0000
875 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
877 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
876 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
878 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
877 b
879 b
878
880
879 diff -r 8580ff50825a -r 97d72e5f12c7 b
881 diff -r 8580ff50825a -r 97d72e5f12c7 b
880 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
882 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
881 +++ b/b Thu Jan 01 00:00:02 1970 +0000
883 +++ b/b Thu Jan 01 00:00:02 1970 +0000
882 @@ -0,0 +1,1 @@
884 @@ -0,0 +1,1 @@
883 +b
885 +b
884
886
885
887
886 test inline for single patch:
888 test inline for single patch:
887 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | $FILTERBOUNDARY
889 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | filterboundary
888 this patch series consists of 1 patches.
890 this patch series consists of 1 patches.
889
891
890
892
891 displaying [PATCH] test ...
893 displaying [PATCH] test ...
892 Content-Type: multipart/mixed; boundary="===*==" (glob)
894 Content-Type: multipart/mixed; boundary="===*==" (glob)
893 MIME-Version: 1.0
895 MIME-Version: 1.0
894 Subject: [PATCH] test
896 Subject: [PATCH] test
895 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
897 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
896 X-Mercurial-Series-Index: 1
898 X-Mercurial-Series-Index: 1
897 X-Mercurial-Series-Total: 1
899 X-Mercurial-Series-Total: 1
898 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
900 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
899 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
901 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
900 User-Agent: Mercurial-patchbomb/* (glob)
902 User-Agent: Mercurial-patchbomb/* (glob)
901 Date: Thu, 01 Jan 1970 00:01:00 +0000
903 Date: Thu, 01 Jan 1970 00:01:00 +0000
902 From: quux
904 From: quux
903 To: foo
905 To: foo
904 Cc: bar
906 Cc: bar
905
907
906 --===*= (glob)
908 --===*= (glob)
907 MIME-Version: 1.0
909 MIME-Version: 1.0
908 Content-Type: text/x-patch; charset="us-ascii"
910 Content-Type: text/x-patch; charset="us-ascii"
909 Content-Transfer-Encoding: 7bit
911 Content-Transfer-Encoding: 7bit
910 Content-Disposition: inline; filename=t2.patch
912 Content-Disposition: inline; filename=t2.patch
911
913
912 # HG changeset patch
914 # HG changeset patch
913 # User test
915 # User test
914 # Date 3 0
916 # Date 3 0
915 # Thu Jan 01 00:00:03 1970 +0000
917 # Thu Jan 01 00:00:03 1970 +0000
916 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
918 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
917 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
919 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
918 c
920 c
919
921
920 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
922 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
921 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
923 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
922 +++ b/c Thu Jan 01 00:00:03 1970 +0000
924 +++ b/c Thu Jan 01 00:00:03 1970 +0000
923 @@ -0,0 +1,1 @@
925 @@ -0,0 +1,1 @@
924 +c
926 +c
925
927
926 --===*=-- (glob)
928 --===*=-- (glob)
927
929
928
930
929 test inline for single patch (quoted-printable):
931 test inline for single patch (quoted-printable):
930 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4 | $FILTERBOUNDARY
932 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4 | filterboundary
931 this patch series consists of 1 patches.
933 this patch series consists of 1 patches.
932
934
933
935
934 displaying [PATCH] test ...
936 displaying [PATCH] test ...
935 Content-Type: multipart/mixed; boundary="===*==" (glob)
937 Content-Type: multipart/mixed; boundary="===*==" (glob)
936 MIME-Version: 1.0
938 MIME-Version: 1.0
937 Subject: [PATCH] test
939 Subject: [PATCH] test
938 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
940 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
939 X-Mercurial-Series-Index: 1
941 X-Mercurial-Series-Index: 1
940 X-Mercurial-Series-Total: 1
942 X-Mercurial-Series-Total: 1
941 Message-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
943 Message-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
942 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
944 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
943 User-Agent: Mercurial-patchbomb/* (glob)
945 User-Agent: Mercurial-patchbomb/* (glob)
944 Date: Thu, 01 Jan 1970 00:01:00 +0000
946 Date: Thu, 01 Jan 1970 00:01:00 +0000
945 From: quux
947 From: quux
946 To: foo
948 To: foo
947 Cc: bar
949 Cc: bar
948
950
949 --===*= (glob)
951 --===*= (glob)
950 MIME-Version: 1.0
952 MIME-Version: 1.0
951 Content-Type: text/x-patch; charset="us-ascii"
953 Content-Type: text/x-patch; charset="us-ascii"
952 Content-Transfer-Encoding: quoted-printable
954 Content-Transfer-Encoding: quoted-printable
953 Content-Disposition: inline; filename=t2.patch
955 Content-Disposition: inline; filename=t2.patch
954
956
955 # HG changeset patch
957 # HG changeset patch
956 # User test
958 # User test
957 # Date 4 0
959 # Date 4 0
958 # Thu Jan 01 00:00:04 1970 +0000
960 # Thu Jan 01 00:00:04 1970 +0000
959 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
961 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
960 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
962 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
961 long line
963 long line
962
964
963 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
965 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
964 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
966 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
965 +++ b/long Thu Jan 01 00:00:04 1970 +0000
967 +++ b/long Thu Jan 01 00:00:04 1970 +0000
966 @@ -0,0 +1,4 @@
968 @@ -0,0 +1,4 @@
967 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
969 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
968 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
970 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
969 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
971 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
970 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
972 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
971 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
973 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
972 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
974 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
973 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
975 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
974 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
976 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
975 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
977 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
976 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
978 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
977 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
979 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
978 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
980 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
979 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
981 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
980 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
982 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
981 +foo
983 +foo
982 +
984 +
983 +bar
985 +bar
984
986
985 --===*=-- (glob)
987 --===*=-- (glob)
986
988
987 test inline for multiple patches:
989 test inline for multiple patches:
988 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
990 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
989 > -r 0:1 -r 4 | $FILTERBOUNDARY
991 > -r 0:1 -r 4 | filterboundary
990 this patch series consists of 3 patches.
992 this patch series consists of 3 patches.
991
993
992
994
993 Write the introductory message for the patch series.
995 Write the introductory message for the patch series.
994
996
995
997
996 displaying [PATCH 0 of 3] test ...
998 displaying [PATCH 0 of 3] test ...
997 MIME-Version: 1.0
999 MIME-Version: 1.0
998 Content-Type: text/plain; charset="us-ascii"
1000 Content-Type: text/plain; charset="us-ascii"
999 Content-Transfer-Encoding: 7bit
1001 Content-Transfer-Encoding: 7bit
1000 Subject: [PATCH 0 of 3] test
1002 Subject: [PATCH 0 of 3] test
1001 Message-Id: <patchbomb.60@test-hostname>
1003 Message-Id: <patchbomb.60@test-hostname>
1002 User-Agent: Mercurial-patchbomb/* (glob)
1004 User-Agent: Mercurial-patchbomb/* (glob)
1003 Date: Thu, 01 Jan 1970 00:01:00 +0000
1005 Date: Thu, 01 Jan 1970 00:01:00 +0000
1004 From: quux
1006 From: quux
1005 To: foo
1007 To: foo
1006 Cc: bar
1008 Cc: bar
1007
1009
1008
1010
1009 displaying [PATCH 1 of 3] a ...
1011 displaying [PATCH 1 of 3] a ...
1010 Content-Type: multipart/mixed; boundary="===*==" (glob)
1012 Content-Type: multipart/mixed; boundary="===*==" (glob)
1011 MIME-Version: 1.0
1013 MIME-Version: 1.0
1012 Subject: [PATCH 1 of 3] a
1014 Subject: [PATCH 1 of 3] a
1013 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1015 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1014 X-Mercurial-Series-Index: 1
1016 X-Mercurial-Series-Index: 1
1015 X-Mercurial-Series-Total: 3
1017 X-Mercurial-Series-Total: 3
1016 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
1018 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
1017 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1019 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1018 In-Reply-To: <patchbomb.60@test-hostname>
1020 In-Reply-To: <patchbomb.60@test-hostname>
1019 References: <patchbomb.60@test-hostname>
1021 References: <patchbomb.60@test-hostname>
1020 User-Agent: Mercurial-patchbomb/* (glob)
1022 User-Agent: Mercurial-patchbomb/* (glob)
1021 Date: Thu, 01 Jan 1970 00:01:01 +0000
1023 Date: Thu, 01 Jan 1970 00:01:01 +0000
1022 From: quux
1024 From: quux
1023 To: foo
1025 To: foo
1024 Cc: bar
1026 Cc: bar
1025
1027
1026 --===*= (glob)
1028 --===*= (glob)
1027 MIME-Version: 1.0
1029 MIME-Version: 1.0
1028 Content-Type: text/x-patch; charset="us-ascii"
1030 Content-Type: text/x-patch; charset="us-ascii"
1029 Content-Transfer-Encoding: 7bit
1031 Content-Transfer-Encoding: 7bit
1030 Content-Disposition: inline; filename=t2-1.patch
1032 Content-Disposition: inline; filename=t2-1.patch
1031
1033
1032 # HG changeset patch
1034 # HG changeset patch
1033 # User test
1035 # User test
1034 # Date 1 0
1036 # Date 1 0
1035 # Thu Jan 01 00:00:01 1970 +0000
1037 # Thu Jan 01 00:00:01 1970 +0000
1036 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1038 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1037 # Parent 0000000000000000000000000000000000000000
1039 # Parent 0000000000000000000000000000000000000000
1038 a
1040 a
1039
1041
1040 diff -r 000000000000 -r 8580ff50825a a
1042 diff -r 000000000000 -r 8580ff50825a a
1041 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1043 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1042 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1044 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1043 @@ -0,0 +1,1 @@
1045 @@ -0,0 +1,1 @@
1044 +a
1046 +a
1045
1047
1046 --===*=-- (glob)
1048 --===*=-- (glob)
1047 displaying [PATCH 2 of 3] b ...
1049 displaying [PATCH 2 of 3] b ...
1048 Content-Type: multipart/mixed; boundary="===*==" (glob)
1050 Content-Type: multipart/mixed; boundary="===*==" (glob)
1049 MIME-Version: 1.0
1051 MIME-Version: 1.0
1050 Subject: [PATCH 2 of 3] b
1052 Subject: [PATCH 2 of 3] b
1051 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1053 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1052 X-Mercurial-Series-Index: 2
1054 X-Mercurial-Series-Index: 2
1053 X-Mercurial-Series-Total: 3
1055 X-Mercurial-Series-Total: 3
1054 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
1056 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
1055 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1057 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1056 In-Reply-To: <patchbomb.60@test-hostname>
1058 In-Reply-To: <patchbomb.60@test-hostname>
1057 References: <patchbomb.60@test-hostname>
1059 References: <patchbomb.60@test-hostname>
1058 User-Agent: Mercurial-patchbomb/* (glob)
1060 User-Agent: Mercurial-patchbomb/* (glob)
1059 Date: Thu, 01 Jan 1970 00:01:02 +0000
1061 Date: Thu, 01 Jan 1970 00:01:02 +0000
1060 From: quux
1062 From: quux
1061 To: foo
1063 To: foo
1062 Cc: bar
1064 Cc: bar
1063
1065
1064 --===*= (glob)
1066 --===*= (glob)
1065 MIME-Version: 1.0
1067 MIME-Version: 1.0
1066 Content-Type: text/x-patch; charset="us-ascii"
1068 Content-Type: text/x-patch; charset="us-ascii"
1067 Content-Transfer-Encoding: 7bit
1069 Content-Transfer-Encoding: 7bit
1068 Content-Disposition: inline; filename=t2-2.patch
1070 Content-Disposition: inline; filename=t2-2.patch
1069
1071
1070 # HG changeset patch
1072 # HG changeset patch
1071 # User test
1073 # User test
1072 # Date 2 0
1074 # Date 2 0
1073 # Thu Jan 01 00:00:02 1970 +0000
1075 # Thu Jan 01 00:00:02 1970 +0000
1074 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1076 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1075 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1077 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1076 b
1078 b
1077
1079
1078 diff -r 8580ff50825a -r 97d72e5f12c7 b
1080 diff -r 8580ff50825a -r 97d72e5f12c7 b
1079 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1081 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1080 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1082 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1081 @@ -0,0 +1,1 @@
1083 @@ -0,0 +1,1 @@
1082 +b
1084 +b
1083
1085
1084 --===*=-- (glob)
1086 --===*=-- (glob)
1085 displaying [PATCH 3 of 3] long line ...
1087 displaying [PATCH 3 of 3] long line ...
1086 Content-Type: multipart/mixed; boundary="===*==" (glob)
1088 Content-Type: multipart/mixed; boundary="===*==" (glob)
1087 MIME-Version: 1.0
1089 MIME-Version: 1.0
1088 Subject: [PATCH 3 of 3] long line
1090 Subject: [PATCH 3 of 3] long line
1089 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1091 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1090 X-Mercurial-Series-Index: 3
1092 X-Mercurial-Series-Index: 3
1091 X-Mercurial-Series-Total: 3
1093 X-Mercurial-Series-Total: 3
1092 Message-Id: <a2ea8fc83dd8b93cfd86.63@test-hostname>
1094 Message-Id: <a2ea8fc83dd8b93cfd86.63@test-hostname>
1093 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1095 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1094 In-Reply-To: <patchbomb.60@test-hostname>
1096 In-Reply-To: <patchbomb.60@test-hostname>
1095 References: <patchbomb.60@test-hostname>
1097 References: <patchbomb.60@test-hostname>
1096 User-Agent: Mercurial-patchbomb/* (glob)
1098 User-Agent: Mercurial-patchbomb/* (glob)
1097 Date: Thu, 01 Jan 1970 00:01:03 +0000
1099 Date: Thu, 01 Jan 1970 00:01:03 +0000
1098 From: quux
1100 From: quux
1099 To: foo
1101 To: foo
1100 Cc: bar
1102 Cc: bar
1101
1103
1102 --===*= (glob)
1104 --===*= (glob)
1103 MIME-Version: 1.0
1105 MIME-Version: 1.0
1104 Content-Type: text/x-patch; charset="us-ascii"
1106 Content-Type: text/x-patch; charset="us-ascii"
1105 Content-Transfer-Encoding: quoted-printable
1107 Content-Transfer-Encoding: quoted-printable
1106 Content-Disposition: inline; filename=t2-3.patch
1108 Content-Disposition: inline; filename=t2-3.patch
1107
1109
1108 # HG changeset patch
1110 # HG changeset patch
1109 # User test
1111 # User test
1110 # Date 4 0
1112 # Date 4 0
1111 # Thu Jan 01 00:00:04 1970 +0000
1113 # Thu Jan 01 00:00:04 1970 +0000
1112 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1114 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1113 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1115 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1114 long line
1116 long line
1115
1117
1116 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1118 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1117 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1119 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1118 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1120 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1119 @@ -0,0 +1,4 @@
1121 @@ -0,0 +1,4 @@
1120 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1122 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1121 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1123 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1122 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1124 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1123 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1125 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1124 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1126 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1125 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1127 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1126 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1128 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1127 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1129 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1128 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1130 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1129 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1131 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1130 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1132 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1131 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1133 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1132 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1134 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1133 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1135 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1134 +foo
1136 +foo
1135 +
1137 +
1136 +bar
1138 +bar
1137
1139
1138 --===*=-- (glob)
1140 --===*=-- (glob)
1139
1141
1140 test attach for single patch:
1142 test attach for single patch:
1141 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2 | $FILTERBOUNDARY
1143 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2 | filterboundary
1142 this patch series consists of 1 patches.
1144 this patch series consists of 1 patches.
1143
1145
1144
1146
1145 displaying [PATCH] test ...
1147 displaying [PATCH] test ...
1146 Content-Type: multipart/mixed; boundary="===*==" (glob)
1148 Content-Type: multipart/mixed; boundary="===*==" (glob)
1147 MIME-Version: 1.0
1149 MIME-Version: 1.0
1148 Subject: [PATCH] test
1150 Subject: [PATCH] test
1149 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1151 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1150 X-Mercurial-Series-Index: 1
1152 X-Mercurial-Series-Index: 1
1151 X-Mercurial-Series-Total: 1
1153 X-Mercurial-Series-Total: 1
1152 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1154 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1153 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1155 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1154 User-Agent: Mercurial-patchbomb/* (glob)
1156 User-Agent: Mercurial-patchbomb/* (glob)
1155 Date: Thu, 01 Jan 1970 00:01:00 +0000
1157 Date: Thu, 01 Jan 1970 00:01:00 +0000
1156 From: quux
1158 From: quux
1157 To: foo
1159 To: foo
1158 Cc: bar
1160 Cc: bar
1159
1161
1160 --===*= (glob)
1162 --===*= (glob)
1161 MIME-Version: 1.0
1163 MIME-Version: 1.0
1162 Content-Type: text/plain; charset="us-ascii"
1164 Content-Type: text/plain; charset="us-ascii"
1163 Content-Transfer-Encoding: 7bit
1165 Content-Transfer-Encoding: 7bit
1164
1166
1165 Patch subject is complete summary.
1167 Patch subject is complete summary.
1166
1168
1167
1169
1168
1170
1169 --===*= (glob)
1171 --===*= (glob)
1170 MIME-Version: 1.0
1172 MIME-Version: 1.0
1171 Content-Type: text/x-patch; charset="us-ascii"
1173 Content-Type: text/x-patch; charset="us-ascii"
1172 Content-Transfer-Encoding: 7bit
1174 Content-Transfer-Encoding: 7bit
1173 Content-Disposition: attachment; filename=t2.patch
1175 Content-Disposition: attachment; filename=t2.patch
1174
1176
1175 # HG changeset patch
1177 # HG changeset patch
1176 # User test
1178 # User test
1177 # Date 3 0
1179 # Date 3 0
1178 # Thu Jan 01 00:00:03 1970 +0000
1180 # Thu Jan 01 00:00:03 1970 +0000
1179 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1181 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1180 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1182 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1181 c
1183 c
1182
1184
1183 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1185 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1184 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1186 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1185 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1187 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1186 @@ -0,0 +1,1 @@
1188 @@ -0,0 +1,1 @@
1187 +c
1189 +c
1188
1190
1189 --===*=-- (glob)
1191 --===*=-- (glob)
1190
1192
1191 test attach for single patch (quoted-printable):
1193 test attach for single patch (quoted-printable):
1192 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4 | $FILTERBOUNDARY
1194 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4 | filterboundary
1193 this patch series consists of 1 patches.
1195 this patch series consists of 1 patches.
1194
1196
1195
1197
1196 displaying [PATCH] test ...
1198 displaying [PATCH] test ...
1197 Content-Type: multipart/mixed; boundary="===*==" (glob)
1199 Content-Type: multipart/mixed; boundary="===*==" (glob)
1198 MIME-Version: 1.0
1200 MIME-Version: 1.0
1199 Subject: [PATCH] test
1201 Subject: [PATCH] test
1200 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1202 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1201 X-Mercurial-Series-Index: 1
1203 X-Mercurial-Series-Index: 1
1202 X-Mercurial-Series-Total: 1
1204 X-Mercurial-Series-Total: 1
1203 Message-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
1205 Message-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
1204 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
1206 X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.60@test-hostname>
1205 User-Agent: Mercurial-patchbomb/* (glob)
1207 User-Agent: Mercurial-patchbomb/* (glob)
1206 Date: Thu, 01 Jan 1970 00:01:00 +0000
1208 Date: Thu, 01 Jan 1970 00:01:00 +0000
1207 From: quux
1209 From: quux
1208 To: foo
1210 To: foo
1209 Cc: bar
1211 Cc: bar
1210
1212
1211 --===*= (glob)
1213 --===*= (glob)
1212 MIME-Version: 1.0
1214 MIME-Version: 1.0
1213 Content-Type: text/plain; charset="us-ascii"
1215 Content-Type: text/plain; charset="us-ascii"
1214 Content-Transfer-Encoding: 7bit
1216 Content-Transfer-Encoding: 7bit
1215
1217
1216 Patch subject is complete summary.
1218 Patch subject is complete summary.
1217
1219
1218
1220
1219
1221
1220 --===*= (glob)
1222 --===*= (glob)
1221 MIME-Version: 1.0
1223 MIME-Version: 1.0
1222 Content-Type: text/x-patch; charset="us-ascii"
1224 Content-Type: text/x-patch; charset="us-ascii"
1223 Content-Transfer-Encoding: quoted-printable
1225 Content-Transfer-Encoding: quoted-printable
1224 Content-Disposition: attachment; filename=t2.patch
1226 Content-Disposition: attachment; filename=t2.patch
1225
1227
1226 # HG changeset patch
1228 # HG changeset patch
1227 # User test
1229 # User test
1228 # Date 4 0
1230 # Date 4 0
1229 # Thu Jan 01 00:00:04 1970 +0000
1231 # Thu Jan 01 00:00:04 1970 +0000
1230 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1232 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1231 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1233 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1232 long line
1234 long line
1233
1235
1234 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1236 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1235 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1237 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1236 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1238 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1237 @@ -0,0 +1,4 @@
1239 @@ -0,0 +1,4 @@
1238 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1240 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1239 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1241 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1240 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1242 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1241 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1243 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1242 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1244 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1243 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1245 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1244 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1246 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1245 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1247 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1246 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1248 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1247 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1249 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1248 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1250 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1249 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1251 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1250 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1252 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1251 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1253 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1252 +foo
1254 +foo
1253 +
1255 +
1254 +bar
1256 +bar
1255
1257
1256 --===*=-- (glob)
1258 --===*=-- (glob)
1257
1259
1258 test attach and body for single patch:
1260 test attach and body for single patch:
1259 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a --body -r 2 | $FILTERBOUNDARY
1261 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a --body -r 2 | filterboundary
1260 this patch series consists of 1 patches.
1262 this patch series consists of 1 patches.
1261
1263
1262
1264
1263 displaying [PATCH] test ...
1265 displaying [PATCH] test ...
1264 Content-Type: multipart/mixed; boundary="===*==" (glob)
1266 Content-Type: multipart/mixed; boundary="===*==" (glob)
1265 MIME-Version: 1.0
1267 MIME-Version: 1.0
1266 Subject: [PATCH] test
1268 Subject: [PATCH] test
1267 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1269 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1268 X-Mercurial-Series-Index: 1
1270 X-Mercurial-Series-Index: 1
1269 X-Mercurial-Series-Total: 1
1271 X-Mercurial-Series-Total: 1
1270 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1272 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1271 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1273 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1272 User-Agent: Mercurial-patchbomb/* (glob)
1274 User-Agent: Mercurial-patchbomb/* (glob)
1273 Date: Thu, 01 Jan 1970 00:01:00 +0000
1275 Date: Thu, 01 Jan 1970 00:01:00 +0000
1274 From: quux
1276 From: quux
1275 To: foo
1277 To: foo
1276 Cc: bar
1278 Cc: bar
1277
1279
1278 --===*= (glob)
1280 --===*= (glob)
1279 MIME-Version: 1.0
1281 MIME-Version: 1.0
1280 Content-Type: text/plain; charset="us-ascii"
1282 Content-Type: text/plain; charset="us-ascii"
1281 Content-Transfer-Encoding: 7bit
1283 Content-Transfer-Encoding: 7bit
1282
1284
1283 # HG changeset patch
1285 # HG changeset patch
1284 # User test
1286 # User test
1285 # Date 3 0
1287 # Date 3 0
1286 # Thu Jan 01 00:00:03 1970 +0000
1288 # Thu Jan 01 00:00:03 1970 +0000
1287 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1289 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1288 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1290 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1289 c
1291 c
1290
1292
1291 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1293 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1292 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1294 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1293 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1295 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1294 @@ -0,0 +1,1 @@
1296 @@ -0,0 +1,1 @@
1295 +c
1297 +c
1296
1298
1297 --===*= (glob)
1299 --===*= (glob)
1298 MIME-Version: 1.0
1300 MIME-Version: 1.0
1299 Content-Type: text/x-patch; charset="us-ascii"
1301 Content-Type: text/x-patch; charset="us-ascii"
1300 Content-Transfer-Encoding: 7bit
1302 Content-Transfer-Encoding: 7bit
1301 Content-Disposition: attachment; filename=t2.patch
1303 Content-Disposition: attachment; filename=t2.patch
1302
1304
1303 # HG changeset patch
1305 # HG changeset patch
1304 # User test
1306 # User test
1305 # Date 3 0
1307 # Date 3 0
1306 # Thu Jan 01 00:00:03 1970 +0000
1308 # Thu Jan 01 00:00:03 1970 +0000
1307 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1309 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1308 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1310 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1309 c
1311 c
1310
1312
1311 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1313 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1312 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1314 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1313 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1315 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1314 @@ -0,0 +1,1 @@
1316 @@ -0,0 +1,1 @@
1315 +c
1317 +c
1316
1318
1317 --===*=-- (glob)
1319 --===*=-- (glob)
1318
1320
1319 test attach for multiple patches:
1321 test attach for multiple patches:
1320 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
1322 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
1321 > -r 0:1 -r 4 | $FILTERBOUNDARY
1323 > -r 0:1 -r 4 | filterboundary
1322 this patch series consists of 3 patches.
1324 this patch series consists of 3 patches.
1323
1325
1324
1326
1325 Write the introductory message for the patch series.
1327 Write the introductory message for the patch series.
1326
1328
1327
1329
1328 displaying [PATCH 0 of 3] test ...
1330 displaying [PATCH 0 of 3] test ...
1329 MIME-Version: 1.0
1331 MIME-Version: 1.0
1330 Content-Type: text/plain; charset="us-ascii"
1332 Content-Type: text/plain; charset="us-ascii"
1331 Content-Transfer-Encoding: 7bit
1333 Content-Transfer-Encoding: 7bit
1332 Subject: [PATCH 0 of 3] test
1334 Subject: [PATCH 0 of 3] test
1333 Message-Id: <patchbomb.60@test-hostname>
1335 Message-Id: <patchbomb.60@test-hostname>
1334 User-Agent: Mercurial-patchbomb/* (glob)
1336 User-Agent: Mercurial-patchbomb/* (glob)
1335 Date: Thu, 01 Jan 1970 00:01:00 +0000
1337 Date: Thu, 01 Jan 1970 00:01:00 +0000
1336 From: quux
1338 From: quux
1337 To: foo
1339 To: foo
1338 Cc: bar
1340 Cc: bar
1339
1341
1340
1342
1341 displaying [PATCH 1 of 3] a ...
1343 displaying [PATCH 1 of 3] a ...
1342 Content-Type: multipart/mixed; boundary="===*==" (glob)
1344 Content-Type: multipart/mixed; boundary="===*==" (glob)
1343 MIME-Version: 1.0
1345 MIME-Version: 1.0
1344 Subject: [PATCH 1 of 3] a
1346 Subject: [PATCH 1 of 3] a
1345 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1347 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1346 X-Mercurial-Series-Index: 1
1348 X-Mercurial-Series-Index: 1
1347 X-Mercurial-Series-Total: 3
1349 X-Mercurial-Series-Total: 3
1348 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
1350 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
1349 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1351 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1350 In-Reply-To: <patchbomb.60@test-hostname>
1352 In-Reply-To: <patchbomb.60@test-hostname>
1351 References: <patchbomb.60@test-hostname>
1353 References: <patchbomb.60@test-hostname>
1352 User-Agent: Mercurial-patchbomb/* (glob)
1354 User-Agent: Mercurial-patchbomb/* (glob)
1353 Date: Thu, 01 Jan 1970 00:01:01 +0000
1355 Date: Thu, 01 Jan 1970 00:01:01 +0000
1354 From: quux
1356 From: quux
1355 To: foo
1357 To: foo
1356 Cc: bar
1358 Cc: bar
1357
1359
1358 --===*= (glob)
1360 --===*= (glob)
1359 MIME-Version: 1.0
1361 MIME-Version: 1.0
1360 Content-Type: text/plain; charset="us-ascii"
1362 Content-Type: text/plain; charset="us-ascii"
1361 Content-Transfer-Encoding: 7bit
1363 Content-Transfer-Encoding: 7bit
1362
1364
1363 Patch subject is complete summary.
1365 Patch subject is complete summary.
1364
1366
1365
1367
1366
1368
1367 --===*= (glob)
1369 --===*= (glob)
1368 MIME-Version: 1.0
1370 MIME-Version: 1.0
1369 Content-Type: text/x-patch; charset="us-ascii"
1371 Content-Type: text/x-patch; charset="us-ascii"
1370 Content-Transfer-Encoding: 7bit
1372 Content-Transfer-Encoding: 7bit
1371 Content-Disposition: attachment; filename=t2-1.patch
1373 Content-Disposition: attachment; filename=t2-1.patch
1372
1374
1373 # HG changeset patch
1375 # HG changeset patch
1374 # User test
1376 # User test
1375 # Date 1 0
1377 # Date 1 0
1376 # Thu Jan 01 00:00:01 1970 +0000
1378 # Thu Jan 01 00:00:01 1970 +0000
1377 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1379 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1378 # Parent 0000000000000000000000000000000000000000
1380 # Parent 0000000000000000000000000000000000000000
1379 a
1381 a
1380
1382
1381 diff -r 000000000000 -r 8580ff50825a a
1383 diff -r 000000000000 -r 8580ff50825a a
1382 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1384 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1383 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1385 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1384 @@ -0,0 +1,1 @@
1386 @@ -0,0 +1,1 @@
1385 +a
1387 +a
1386
1388
1387 --===*=-- (glob)
1389 --===*=-- (glob)
1388 displaying [PATCH 2 of 3] b ...
1390 displaying [PATCH 2 of 3] b ...
1389 Content-Type: multipart/mixed; boundary="===*==" (glob)
1391 Content-Type: multipart/mixed; boundary="===*==" (glob)
1390 MIME-Version: 1.0
1392 MIME-Version: 1.0
1391 Subject: [PATCH 2 of 3] b
1393 Subject: [PATCH 2 of 3] b
1392 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1394 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1393 X-Mercurial-Series-Index: 2
1395 X-Mercurial-Series-Index: 2
1394 X-Mercurial-Series-Total: 3
1396 X-Mercurial-Series-Total: 3
1395 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
1397 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
1396 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1398 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1397 In-Reply-To: <patchbomb.60@test-hostname>
1399 In-Reply-To: <patchbomb.60@test-hostname>
1398 References: <patchbomb.60@test-hostname>
1400 References: <patchbomb.60@test-hostname>
1399 User-Agent: Mercurial-patchbomb/* (glob)
1401 User-Agent: Mercurial-patchbomb/* (glob)
1400 Date: Thu, 01 Jan 1970 00:01:02 +0000
1402 Date: Thu, 01 Jan 1970 00:01:02 +0000
1401 From: quux
1403 From: quux
1402 To: foo
1404 To: foo
1403 Cc: bar
1405 Cc: bar
1404
1406
1405 --===*= (glob)
1407 --===*= (glob)
1406 MIME-Version: 1.0
1408 MIME-Version: 1.0
1407 Content-Type: text/plain; charset="us-ascii"
1409 Content-Type: text/plain; charset="us-ascii"
1408 Content-Transfer-Encoding: 7bit
1410 Content-Transfer-Encoding: 7bit
1409
1411
1410 Patch subject is complete summary.
1412 Patch subject is complete summary.
1411
1413
1412
1414
1413
1415
1414 --===*= (glob)
1416 --===*= (glob)
1415 MIME-Version: 1.0
1417 MIME-Version: 1.0
1416 Content-Type: text/x-patch; charset="us-ascii"
1418 Content-Type: text/x-patch; charset="us-ascii"
1417 Content-Transfer-Encoding: 7bit
1419 Content-Transfer-Encoding: 7bit
1418 Content-Disposition: attachment; filename=t2-2.patch
1420 Content-Disposition: attachment; filename=t2-2.patch
1419
1421
1420 # HG changeset patch
1422 # HG changeset patch
1421 # User test
1423 # User test
1422 # Date 2 0
1424 # Date 2 0
1423 # Thu Jan 01 00:00:02 1970 +0000
1425 # Thu Jan 01 00:00:02 1970 +0000
1424 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1426 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1425 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1427 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1426 b
1428 b
1427
1429
1428 diff -r 8580ff50825a -r 97d72e5f12c7 b
1430 diff -r 8580ff50825a -r 97d72e5f12c7 b
1429 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1431 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1430 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1432 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1431 @@ -0,0 +1,1 @@
1433 @@ -0,0 +1,1 @@
1432 +b
1434 +b
1433
1435
1434 --===*=-- (glob)
1436 --===*=-- (glob)
1435 displaying [PATCH 3 of 3] long line ...
1437 displaying [PATCH 3 of 3] long line ...
1436 Content-Type: multipart/mixed; boundary="===*==" (glob)
1438 Content-Type: multipart/mixed; boundary="===*==" (glob)
1437 MIME-Version: 1.0
1439 MIME-Version: 1.0
1438 Subject: [PATCH 3 of 3] long line
1440 Subject: [PATCH 3 of 3] long line
1439 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1441 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1440 X-Mercurial-Series-Index: 3
1442 X-Mercurial-Series-Index: 3
1441 X-Mercurial-Series-Total: 3
1443 X-Mercurial-Series-Total: 3
1442 Message-Id: <a2ea8fc83dd8b93cfd86.63@test-hostname>
1444 Message-Id: <a2ea8fc83dd8b93cfd86.63@test-hostname>
1443 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1445 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1444 In-Reply-To: <patchbomb.60@test-hostname>
1446 In-Reply-To: <patchbomb.60@test-hostname>
1445 References: <patchbomb.60@test-hostname>
1447 References: <patchbomb.60@test-hostname>
1446 User-Agent: Mercurial-patchbomb/* (glob)
1448 User-Agent: Mercurial-patchbomb/* (glob)
1447 Date: Thu, 01 Jan 1970 00:01:03 +0000
1449 Date: Thu, 01 Jan 1970 00:01:03 +0000
1448 From: quux
1450 From: quux
1449 To: foo
1451 To: foo
1450 Cc: bar
1452 Cc: bar
1451
1453
1452 --===*= (glob)
1454 --===*= (glob)
1453 MIME-Version: 1.0
1455 MIME-Version: 1.0
1454 Content-Type: text/plain; charset="us-ascii"
1456 Content-Type: text/plain; charset="us-ascii"
1455 Content-Transfer-Encoding: 7bit
1457 Content-Transfer-Encoding: 7bit
1456
1458
1457 Patch subject is complete summary.
1459 Patch subject is complete summary.
1458
1460
1459
1461
1460
1462
1461 --===*= (glob)
1463 --===*= (glob)
1462 MIME-Version: 1.0
1464 MIME-Version: 1.0
1463 Content-Type: text/x-patch; charset="us-ascii"
1465 Content-Type: text/x-patch; charset="us-ascii"
1464 Content-Transfer-Encoding: quoted-printable
1466 Content-Transfer-Encoding: quoted-printable
1465 Content-Disposition: attachment; filename=t2-3.patch
1467 Content-Disposition: attachment; filename=t2-3.patch
1466
1468
1467 # HG changeset patch
1469 # HG changeset patch
1468 # User test
1470 # User test
1469 # Date 4 0
1471 # Date 4 0
1470 # Thu Jan 01 00:00:04 1970 +0000
1472 # Thu Jan 01 00:00:04 1970 +0000
1471 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1473 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1472 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1474 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1473 long line
1475 long line
1474
1476
1475 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1477 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1476 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1478 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1477 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1479 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1478 @@ -0,0 +1,4 @@
1480 @@ -0,0 +1,4 @@
1479 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1481 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1480 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1482 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1481 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1483 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1482 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1484 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1483 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1485 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1484 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1486 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1485 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1487 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1486 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1488 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1487 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1489 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1488 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1490 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1489 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1491 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1490 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1492 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1491 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1493 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1492 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1494 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1493 +foo
1495 +foo
1494 +
1496 +
1495 +bar
1497 +bar
1496
1498
1497 --===*=-- (glob)
1499 --===*=-- (glob)
1498
1500
1499 test intro for single patch:
1501 test intro for single patch:
1500 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1502 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1501 > -r 2
1503 > -r 2
1502 this patch series consists of 1 patches.
1504 this patch series consists of 1 patches.
1503
1505
1504
1506
1505 Write the introductory message for the patch series.
1507 Write the introductory message for the patch series.
1506
1508
1507
1509
1508 displaying [PATCH 0 of 1] test ...
1510 displaying [PATCH 0 of 1] test ...
1509 MIME-Version: 1.0
1511 MIME-Version: 1.0
1510 Content-Type: text/plain; charset="us-ascii"
1512 Content-Type: text/plain; charset="us-ascii"
1511 Content-Transfer-Encoding: 7bit
1513 Content-Transfer-Encoding: 7bit
1512 Subject: [PATCH 0 of 1] test
1514 Subject: [PATCH 0 of 1] test
1513 Message-Id: <patchbomb.60@test-hostname>
1515 Message-Id: <patchbomb.60@test-hostname>
1514 User-Agent: Mercurial-patchbomb/* (glob)
1516 User-Agent: Mercurial-patchbomb/* (glob)
1515 Date: Thu, 01 Jan 1970 00:01:00 +0000
1517 Date: Thu, 01 Jan 1970 00:01:00 +0000
1516 From: quux
1518 From: quux
1517 To: foo
1519 To: foo
1518 Cc: bar
1520 Cc: bar
1519
1521
1520
1522
1521 displaying [PATCH 1 of 1] c ...
1523 displaying [PATCH 1 of 1] c ...
1522 MIME-Version: 1.0
1524 MIME-Version: 1.0
1523 Content-Type: text/plain; charset="us-ascii"
1525 Content-Type: text/plain; charset="us-ascii"
1524 Content-Transfer-Encoding: 7bit
1526 Content-Transfer-Encoding: 7bit
1525 Subject: [PATCH 1 of 1] c
1527 Subject: [PATCH 1 of 1] c
1526 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1528 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1527 X-Mercurial-Series-Index: 1
1529 X-Mercurial-Series-Index: 1
1528 X-Mercurial-Series-Total: 1
1530 X-Mercurial-Series-Total: 1
1529 Message-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
1531 Message-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
1530 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
1532 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
1531 In-Reply-To: <patchbomb.60@test-hostname>
1533 In-Reply-To: <patchbomb.60@test-hostname>
1532 References: <patchbomb.60@test-hostname>
1534 References: <patchbomb.60@test-hostname>
1533 User-Agent: Mercurial-patchbomb/* (glob)
1535 User-Agent: Mercurial-patchbomb/* (glob)
1534 Date: Thu, 01 Jan 1970 00:01:01 +0000
1536 Date: Thu, 01 Jan 1970 00:01:01 +0000
1535 From: quux
1537 From: quux
1536 To: foo
1538 To: foo
1537 Cc: bar
1539 Cc: bar
1538
1540
1539 # HG changeset patch
1541 # HG changeset patch
1540 # User test
1542 # User test
1541 # Date 3 0
1543 # Date 3 0
1542 # Thu Jan 01 00:00:03 1970 +0000
1544 # Thu Jan 01 00:00:03 1970 +0000
1543 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1545 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1544 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1546 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1545 c
1547 c
1546
1548
1547 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1549 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1548 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1550 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1549 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1551 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1550 @@ -0,0 +1,1 @@
1552 @@ -0,0 +1,1 @@
1551 +c
1553 +c
1552
1554
1553
1555
1554 test --desc without --intro for a single patch:
1556 test --desc without --intro for a single patch:
1555 $ echo foo > intro.text
1557 $ echo foo > intro.text
1556 $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \
1558 $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \
1557 > -s test -r 2
1559 > -s test -r 2
1558 this patch series consists of 1 patches.
1560 this patch series consists of 1 patches.
1559
1561
1560
1562
1561 displaying [PATCH 0 of 1] test ...
1563 displaying [PATCH 0 of 1] test ...
1562 MIME-Version: 1.0
1564 MIME-Version: 1.0
1563 Content-Type: text/plain; charset="us-ascii"
1565 Content-Type: text/plain; charset="us-ascii"
1564 Content-Transfer-Encoding: 7bit
1566 Content-Transfer-Encoding: 7bit
1565 Subject: [PATCH 0 of 1] test
1567 Subject: [PATCH 0 of 1] test
1566 Message-Id: <patchbomb.60@test-hostname>
1568 Message-Id: <patchbomb.60@test-hostname>
1567 User-Agent: Mercurial-patchbomb/* (glob)
1569 User-Agent: Mercurial-patchbomb/* (glob)
1568 Date: Thu, 01 Jan 1970 00:01:00 +0000
1570 Date: Thu, 01 Jan 1970 00:01:00 +0000
1569 From: quux
1571 From: quux
1570 To: foo
1572 To: foo
1571 Cc: bar
1573 Cc: bar
1572
1574
1573 foo
1575 foo
1574
1576
1575 displaying [PATCH 1 of 1] c ...
1577 displaying [PATCH 1 of 1] c ...
1576 MIME-Version: 1.0
1578 MIME-Version: 1.0
1577 Content-Type: text/plain; charset="us-ascii"
1579 Content-Type: text/plain; charset="us-ascii"
1578 Content-Transfer-Encoding: 7bit
1580 Content-Transfer-Encoding: 7bit
1579 Subject: [PATCH 1 of 1] c
1581 Subject: [PATCH 1 of 1] c
1580 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1582 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1581 X-Mercurial-Series-Index: 1
1583 X-Mercurial-Series-Index: 1
1582 X-Mercurial-Series-Total: 1
1584 X-Mercurial-Series-Total: 1
1583 Message-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
1585 Message-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
1584 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
1586 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.61@test-hostname>
1585 In-Reply-To: <patchbomb.60@test-hostname>
1587 In-Reply-To: <patchbomb.60@test-hostname>
1586 References: <patchbomb.60@test-hostname>
1588 References: <patchbomb.60@test-hostname>
1587 User-Agent: Mercurial-patchbomb/* (glob)
1589 User-Agent: Mercurial-patchbomb/* (glob)
1588 Date: Thu, 01 Jan 1970 00:01:01 +0000
1590 Date: Thu, 01 Jan 1970 00:01:01 +0000
1589 From: quux
1591 From: quux
1590 To: foo
1592 To: foo
1591 Cc: bar
1593 Cc: bar
1592
1594
1593 # HG changeset patch
1595 # HG changeset patch
1594 # User test
1596 # User test
1595 # Date 3 0
1597 # Date 3 0
1596 # Thu Jan 01 00:00:03 1970 +0000
1598 # Thu Jan 01 00:00:03 1970 +0000
1597 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1599 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1598 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1600 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1599 c
1601 c
1600
1602
1601 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1603 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1602 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1604 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1603 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1605 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1604 @@ -0,0 +1,1 @@
1606 @@ -0,0 +1,1 @@
1605 +c
1607 +c
1606
1608
1607
1609
1608 test intro for multiple patches:
1610 test intro for multiple patches:
1609 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1611 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1610 > -r 0:1
1612 > -r 0:1
1611 this patch series consists of 2 patches.
1613 this patch series consists of 2 patches.
1612
1614
1613
1615
1614 Write the introductory message for the patch series.
1616 Write the introductory message for the patch series.
1615
1617
1616
1618
1617 displaying [PATCH 0 of 2] test ...
1619 displaying [PATCH 0 of 2] test ...
1618 MIME-Version: 1.0
1620 MIME-Version: 1.0
1619 Content-Type: text/plain; charset="us-ascii"
1621 Content-Type: text/plain; charset="us-ascii"
1620 Content-Transfer-Encoding: 7bit
1622 Content-Transfer-Encoding: 7bit
1621 Subject: [PATCH 0 of 2] test
1623 Subject: [PATCH 0 of 2] test
1622 Message-Id: <patchbomb.60@test-hostname>
1624 Message-Id: <patchbomb.60@test-hostname>
1623 User-Agent: Mercurial-patchbomb/* (glob)
1625 User-Agent: Mercurial-patchbomb/* (glob)
1624 Date: Thu, 01 Jan 1970 00:01:00 +0000
1626 Date: Thu, 01 Jan 1970 00:01:00 +0000
1625 From: quux
1627 From: quux
1626 To: foo
1628 To: foo
1627 Cc: bar
1629 Cc: bar
1628
1630
1629
1631
1630 displaying [PATCH 1 of 2] a ...
1632 displaying [PATCH 1 of 2] a ...
1631 MIME-Version: 1.0
1633 MIME-Version: 1.0
1632 Content-Type: text/plain; charset="us-ascii"
1634 Content-Type: text/plain; charset="us-ascii"
1633 Content-Transfer-Encoding: 7bit
1635 Content-Transfer-Encoding: 7bit
1634 Subject: [PATCH 1 of 2] a
1636 Subject: [PATCH 1 of 2] a
1635 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1637 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1636 X-Mercurial-Series-Index: 1
1638 X-Mercurial-Series-Index: 1
1637 X-Mercurial-Series-Total: 2
1639 X-Mercurial-Series-Total: 2
1638 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
1640 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
1639 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1641 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1640 In-Reply-To: <patchbomb.60@test-hostname>
1642 In-Reply-To: <patchbomb.60@test-hostname>
1641 References: <patchbomb.60@test-hostname>
1643 References: <patchbomb.60@test-hostname>
1642 User-Agent: Mercurial-patchbomb/* (glob)
1644 User-Agent: Mercurial-patchbomb/* (glob)
1643 Date: Thu, 01 Jan 1970 00:01:01 +0000
1645 Date: Thu, 01 Jan 1970 00:01:01 +0000
1644 From: quux
1646 From: quux
1645 To: foo
1647 To: foo
1646 Cc: bar
1648 Cc: bar
1647
1649
1648 # HG changeset patch
1650 # HG changeset patch
1649 # User test
1651 # User test
1650 # Date 1 0
1652 # Date 1 0
1651 # Thu Jan 01 00:00:01 1970 +0000
1653 # Thu Jan 01 00:00:01 1970 +0000
1652 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1654 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1653 # Parent 0000000000000000000000000000000000000000
1655 # Parent 0000000000000000000000000000000000000000
1654 a
1656 a
1655
1657
1656 diff -r 000000000000 -r 8580ff50825a a
1658 diff -r 000000000000 -r 8580ff50825a a
1657 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1659 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1658 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1660 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1659 @@ -0,0 +1,1 @@
1661 @@ -0,0 +1,1 @@
1660 +a
1662 +a
1661
1663
1662 displaying [PATCH 2 of 2] b ...
1664 displaying [PATCH 2 of 2] b ...
1663 MIME-Version: 1.0
1665 MIME-Version: 1.0
1664 Content-Type: text/plain; charset="us-ascii"
1666 Content-Type: text/plain; charset="us-ascii"
1665 Content-Transfer-Encoding: 7bit
1667 Content-Transfer-Encoding: 7bit
1666 Subject: [PATCH 2 of 2] b
1668 Subject: [PATCH 2 of 2] b
1667 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1669 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1668 X-Mercurial-Series-Index: 2
1670 X-Mercurial-Series-Index: 2
1669 X-Mercurial-Series-Total: 2
1671 X-Mercurial-Series-Total: 2
1670 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
1672 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
1671 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1673 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1672 In-Reply-To: <patchbomb.60@test-hostname>
1674 In-Reply-To: <patchbomb.60@test-hostname>
1673 References: <patchbomb.60@test-hostname>
1675 References: <patchbomb.60@test-hostname>
1674 User-Agent: Mercurial-patchbomb/* (glob)
1676 User-Agent: Mercurial-patchbomb/* (glob)
1675 Date: Thu, 01 Jan 1970 00:01:02 +0000
1677 Date: Thu, 01 Jan 1970 00:01:02 +0000
1676 From: quux
1678 From: quux
1677 To: foo
1679 To: foo
1678 Cc: bar
1680 Cc: bar
1679
1681
1680 # HG changeset patch
1682 # HG changeset patch
1681 # User test
1683 # User test
1682 # Date 2 0
1684 # Date 2 0
1683 # Thu Jan 01 00:00:02 1970 +0000
1685 # Thu Jan 01 00:00:02 1970 +0000
1684 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1686 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1685 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1687 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1686 b
1688 b
1687
1689
1688 diff -r 8580ff50825a -r 97d72e5f12c7 b
1690 diff -r 8580ff50825a -r 97d72e5f12c7 b
1689 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1691 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1690 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1692 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1691 @@ -0,0 +1,1 @@
1693 @@ -0,0 +1,1 @@
1692 +b
1694 +b
1693
1695
1694
1696
1695 test reply-to via config:
1697 test reply-to via config:
1696 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1698 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1697 > --config patchbomb.reply-to='baz@example.com'
1699 > --config patchbomb.reply-to='baz@example.com'
1698 this patch series consists of 1 patches.
1700 this patch series consists of 1 patches.
1699
1701
1700
1702
1701 displaying [PATCH] test ...
1703 displaying [PATCH] test ...
1702 MIME-Version: 1.0
1704 MIME-Version: 1.0
1703 Content-Type: text/plain; charset="us-ascii"
1705 Content-Type: text/plain; charset="us-ascii"
1704 Content-Transfer-Encoding: 7bit
1706 Content-Transfer-Encoding: 7bit
1705 Subject: [PATCH] test
1707 Subject: [PATCH] test
1706 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1708 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1707 X-Mercurial-Series-Index: 1
1709 X-Mercurial-Series-Index: 1
1708 X-Mercurial-Series-Total: 1
1710 X-Mercurial-Series-Total: 1
1709 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1711 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1710 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1712 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1711 User-Agent: Mercurial-patchbomb/* (glob)
1713 User-Agent: Mercurial-patchbomb/* (glob)
1712 Date: Thu, 01 Jan 1970 00:01:00 +0000
1714 Date: Thu, 01 Jan 1970 00:01:00 +0000
1713 From: quux
1715 From: quux
1714 To: foo
1716 To: foo
1715 Cc: bar
1717 Cc: bar
1716 Reply-To: baz@example.com
1718 Reply-To: baz@example.com
1717
1719
1718 # HG changeset patch
1720 # HG changeset patch
1719 # User test
1721 # User test
1720 # Date 3 0
1722 # Date 3 0
1721 # Thu Jan 01 00:00:03 1970 +0000
1723 # Thu Jan 01 00:00:03 1970 +0000
1722 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1724 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1723 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1725 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1724 c
1726 c
1725
1727
1726 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1728 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1727 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1729 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1728 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1730 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1729 @@ -0,0 +1,1 @@
1731 @@ -0,0 +1,1 @@
1730 +c
1732 +c
1731
1733
1732
1734
1733 test reply-to via command line:
1735 test reply-to via command line:
1734 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1736 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1735 > --reply-to baz --reply-to fred
1737 > --reply-to baz --reply-to fred
1736 this patch series consists of 1 patches.
1738 this patch series consists of 1 patches.
1737
1739
1738
1740
1739 displaying [PATCH] test ...
1741 displaying [PATCH] test ...
1740 MIME-Version: 1.0
1742 MIME-Version: 1.0
1741 Content-Type: text/plain; charset="us-ascii"
1743 Content-Type: text/plain; charset="us-ascii"
1742 Content-Transfer-Encoding: 7bit
1744 Content-Transfer-Encoding: 7bit
1743 Subject: [PATCH] test
1745 Subject: [PATCH] test
1744 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1746 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1745 X-Mercurial-Series-Index: 1
1747 X-Mercurial-Series-Index: 1
1746 X-Mercurial-Series-Total: 1
1748 X-Mercurial-Series-Total: 1
1747 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1749 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1748 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1750 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1749 User-Agent: Mercurial-patchbomb/* (glob)
1751 User-Agent: Mercurial-patchbomb/* (glob)
1750 Date: Thu, 01 Jan 1970 00:01:00 +0000
1752 Date: Thu, 01 Jan 1970 00:01:00 +0000
1751 From: quux
1753 From: quux
1752 To: foo
1754 To: foo
1753 Cc: bar
1755 Cc: bar
1754 Reply-To: baz, fred
1756 Reply-To: baz, fred
1755
1757
1756 # HG changeset patch
1758 # HG changeset patch
1757 # User test
1759 # User test
1758 # Date 3 0
1760 # Date 3 0
1759 # Thu Jan 01 00:00:03 1970 +0000
1761 # Thu Jan 01 00:00:03 1970 +0000
1760 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1762 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1761 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1763 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1762 c
1764 c
1763
1765
1764 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1766 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1765 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1767 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1766 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1768 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1767 @@ -0,0 +1,1 @@
1769 @@ -0,0 +1,1 @@
1768 +c
1770 +c
1769
1771
1770
1772
1771 tagging csets:
1773 tagging csets:
1772 $ hg tag -r0 zero zero.foo
1774 $ hg tag -r0 zero zero.foo
1773 $ hg tag -r1 one one.patch
1775 $ hg tag -r1 one one.patch
1774 $ hg tag -r2 two two.diff
1776 $ hg tag -r2 two two.diff
1775
1777
1776 test inline for single named patch:
1778 test inline for single named patch:
1777 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
1779 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
1778 > -r 2 | $FILTERBOUNDARY
1780 > -r 2 | filterboundary
1779 this patch series consists of 1 patches.
1781 this patch series consists of 1 patches.
1780
1782
1781
1783
1782 displaying [PATCH] test ...
1784 displaying [PATCH] test ...
1783 Content-Type: multipart/mixed; boundary="===*==" (glob)
1785 Content-Type: multipart/mixed; boundary="===*==" (glob)
1784 MIME-Version: 1.0
1786 MIME-Version: 1.0
1785 Subject: [PATCH] test
1787 Subject: [PATCH] test
1786 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1788 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1787 X-Mercurial-Series-Index: 1
1789 X-Mercurial-Series-Index: 1
1788 X-Mercurial-Series-Total: 1
1790 X-Mercurial-Series-Total: 1
1789 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1791 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1790 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1792 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
1791 User-Agent: Mercurial-patchbomb/* (glob)
1793 User-Agent: Mercurial-patchbomb/* (glob)
1792 Date: Thu, 01 Jan 1970 00:01:00 +0000
1794 Date: Thu, 01 Jan 1970 00:01:00 +0000
1793 From: quux
1795 From: quux
1794 To: foo
1796 To: foo
1795 Cc: bar
1797 Cc: bar
1796
1798
1797 --===*= (glob)
1799 --===*= (glob)
1798 MIME-Version: 1.0
1800 MIME-Version: 1.0
1799 Content-Type: text/x-patch; charset="us-ascii"
1801 Content-Type: text/x-patch; charset="us-ascii"
1800 Content-Transfer-Encoding: 7bit
1802 Content-Transfer-Encoding: 7bit
1801 Content-Disposition: inline; filename=two.diff
1803 Content-Disposition: inline; filename=two.diff
1802
1804
1803 # HG changeset patch
1805 # HG changeset patch
1804 # User test
1806 # User test
1805 # Date 3 0
1807 # Date 3 0
1806 # Thu Jan 01 00:00:03 1970 +0000
1808 # Thu Jan 01 00:00:03 1970 +0000
1807 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1809 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1808 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1810 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1809 c
1811 c
1810
1812
1811 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1813 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1812 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1814 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1813 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1815 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1814 @@ -0,0 +1,1 @@
1816 @@ -0,0 +1,1 @@
1815 +c
1817 +c
1816
1818
1817 --===*=-- (glob)
1819 --===*=-- (glob)
1818
1820
1819 test inline for multiple named/unnamed patches:
1821 test inline for multiple named/unnamed patches:
1820 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
1822 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
1821 > -r 0:1 | $FILTERBOUNDARY
1823 > -r 0:1 | filterboundary
1822 this patch series consists of 2 patches.
1824 this patch series consists of 2 patches.
1823
1825
1824
1826
1825 Write the introductory message for the patch series.
1827 Write the introductory message for the patch series.
1826
1828
1827
1829
1828 displaying [PATCH 0 of 2] test ...
1830 displaying [PATCH 0 of 2] test ...
1829 MIME-Version: 1.0
1831 MIME-Version: 1.0
1830 Content-Type: text/plain; charset="us-ascii"
1832 Content-Type: text/plain; charset="us-ascii"
1831 Content-Transfer-Encoding: 7bit
1833 Content-Transfer-Encoding: 7bit
1832 Subject: [PATCH 0 of 2] test
1834 Subject: [PATCH 0 of 2] test
1833 Message-Id: <patchbomb.60@test-hostname>
1835 Message-Id: <patchbomb.60@test-hostname>
1834 User-Agent: Mercurial-patchbomb/* (glob)
1836 User-Agent: Mercurial-patchbomb/* (glob)
1835 Date: Thu, 01 Jan 1970 00:01:00 +0000
1837 Date: Thu, 01 Jan 1970 00:01:00 +0000
1836 From: quux
1838 From: quux
1837 To: foo
1839 To: foo
1838 Cc: bar
1840 Cc: bar
1839
1841
1840
1842
1841 displaying [PATCH 1 of 2] a ...
1843 displaying [PATCH 1 of 2] a ...
1842 Content-Type: multipart/mixed; boundary="===*==" (glob)
1844 Content-Type: multipart/mixed; boundary="===*==" (glob)
1843 MIME-Version: 1.0
1845 MIME-Version: 1.0
1844 Subject: [PATCH 1 of 2] a
1846 Subject: [PATCH 1 of 2] a
1845 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1847 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1846 X-Mercurial-Series-Index: 1
1848 X-Mercurial-Series-Index: 1
1847 X-Mercurial-Series-Total: 2
1849 X-Mercurial-Series-Total: 2
1848 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
1850 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
1849 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1851 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1850 In-Reply-To: <patchbomb.60@test-hostname>
1852 In-Reply-To: <patchbomb.60@test-hostname>
1851 References: <patchbomb.60@test-hostname>
1853 References: <patchbomb.60@test-hostname>
1852 User-Agent: Mercurial-patchbomb/* (glob)
1854 User-Agent: Mercurial-patchbomb/* (glob)
1853 Date: Thu, 01 Jan 1970 00:01:01 +0000
1855 Date: Thu, 01 Jan 1970 00:01:01 +0000
1854 From: quux
1856 From: quux
1855 To: foo
1857 To: foo
1856 Cc: bar
1858 Cc: bar
1857
1859
1858 --===*= (glob)
1860 --===*= (glob)
1859 MIME-Version: 1.0
1861 MIME-Version: 1.0
1860 Content-Type: text/x-patch; charset="us-ascii"
1862 Content-Type: text/x-patch; charset="us-ascii"
1861 Content-Transfer-Encoding: 7bit
1863 Content-Transfer-Encoding: 7bit
1862 Content-Disposition: inline; filename=t2-1.patch
1864 Content-Disposition: inline; filename=t2-1.patch
1863
1865
1864 # HG changeset patch
1866 # HG changeset patch
1865 # User test
1867 # User test
1866 # Date 1 0
1868 # Date 1 0
1867 # Thu Jan 01 00:00:01 1970 +0000
1869 # Thu Jan 01 00:00:01 1970 +0000
1868 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1870 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1869 # Parent 0000000000000000000000000000000000000000
1871 # Parent 0000000000000000000000000000000000000000
1870 a
1872 a
1871
1873
1872 diff -r 000000000000 -r 8580ff50825a a
1874 diff -r 000000000000 -r 8580ff50825a a
1873 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1875 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1874 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1876 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1875 @@ -0,0 +1,1 @@
1877 @@ -0,0 +1,1 @@
1876 +a
1878 +a
1877
1879
1878 --===*=-- (glob)
1880 --===*=-- (glob)
1879 displaying [PATCH 2 of 2] b ...
1881 displaying [PATCH 2 of 2] b ...
1880 Content-Type: multipart/mixed; boundary="===*==" (glob)
1882 Content-Type: multipart/mixed; boundary="===*==" (glob)
1881 MIME-Version: 1.0
1883 MIME-Version: 1.0
1882 Subject: [PATCH 2 of 2] b
1884 Subject: [PATCH 2 of 2] b
1883 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1885 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1884 X-Mercurial-Series-Index: 2
1886 X-Mercurial-Series-Index: 2
1885 X-Mercurial-Series-Total: 2
1887 X-Mercurial-Series-Total: 2
1886 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
1888 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
1887 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1889 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
1888 In-Reply-To: <patchbomb.60@test-hostname>
1890 In-Reply-To: <patchbomb.60@test-hostname>
1889 References: <patchbomb.60@test-hostname>
1891 References: <patchbomb.60@test-hostname>
1890 User-Agent: Mercurial-patchbomb/* (glob)
1892 User-Agent: Mercurial-patchbomb/* (glob)
1891 Date: Thu, 01 Jan 1970 00:01:02 +0000
1893 Date: Thu, 01 Jan 1970 00:01:02 +0000
1892 From: quux
1894 From: quux
1893 To: foo
1895 To: foo
1894 Cc: bar
1896 Cc: bar
1895
1897
1896 --===*= (glob)
1898 --===*= (glob)
1897 MIME-Version: 1.0
1899 MIME-Version: 1.0
1898 Content-Type: text/x-patch; charset="us-ascii"
1900 Content-Type: text/x-patch; charset="us-ascii"
1899 Content-Transfer-Encoding: 7bit
1901 Content-Transfer-Encoding: 7bit
1900 Content-Disposition: inline; filename=one.patch
1902 Content-Disposition: inline; filename=one.patch
1901
1903
1902 # HG changeset patch
1904 # HG changeset patch
1903 # User test
1905 # User test
1904 # Date 2 0
1906 # Date 2 0
1905 # Thu Jan 01 00:00:02 1970 +0000
1907 # Thu Jan 01 00:00:02 1970 +0000
1906 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1908 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1907 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1909 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1908 b
1910 b
1909
1911
1910 diff -r 8580ff50825a -r 97d72e5f12c7 b
1912 diff -r 8580ff50825a -r 97d72e5f12c7 b
1911 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1913 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1912 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1914 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1913 @@ -0,0 +1,1 @@
1915 @@ -0,0 +1,1 @@
1914 +b
1916 +b
1915
1917
1916 --===*=-- (glob)
1918 --===*=-- (glob)
1917
1919
1918
1920
1919 test inreplyto:
1921 test inreplyto:
1920 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1922 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1921 > -r tip
1923 > -r tip
1922 this patch series consists of 1 patches.
1924 this patch series consists of 1 patches.
1923
1925
1924
1926
1925 displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
1927 displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
1926 MIME-Version: 1.0
1928 MIME-Version: 1.0
1927 Content-Type: text/plain; charset="us-ascii"
1929 Content-Type: text/plain; charset="us-ascii"
1928 Content-Transfer-Encoding: 7bit
1930 Content-Transfer-Encoding: 7bit
1929 Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
1931 Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
1930 X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
1932 X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
1931 X-Mercurial-Series-Index: 1
1933 X-Mercurial-Series-Index: 1
1932 X-Mercurial-Series-Total: 1
1934 X-Mercurial-Series-Total: 1
1933 Message-Id: <7aead2484924c445ad8c.60@test-hostname>
1935 Message-Id: <7aead2484924c445ad8c.60@test-hostname>
1934 X-Mercurial-Series-Id: <7aead2484924c445ad8c.60@test-hostname>
1936 X-Mercurial-Series-Id: <7aead2484924c445ad8c.60@test-hostname>
1935 In-Reply-To: <baz>
1937 In-Reply-To: <baz>
1936 References: <baz>
1938 References: <baz>
1937 User-Agent: Mercurial-patchbomb/* (glob)
1939 User-Agent: Mercurial-patchbomb/* (glob)
1938 Date: Thu, 01 Jan 1970 00:01:00 +0000
1940 Date: Thu, 01 Jan 1970 00:01:00 +0000
1939 From: quux
1941 From: quux
1940 To: foo
1942 To: foo
1941 Cc: bar
1943 Cc: bar
1942
1944
1943 # HG changeset patch
1945 # HG changeset patch
1944 # User test
1946 # User test
1945 # Date 0 0
1947 # Date 0 0
1946 # Thu Jan 01 00:00:00 1970 +0000
1948 # Thu Jan 01 00:00:00 1970 +0000
1947 # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
1949 # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
1948 # Parent 045ca29b1ea20e4940411e695e20e521f2f0f98e
1950 # Parent 045ca29b1ea20e4940411e695e20e521f2f0f98e
1949 Added tag two, two.diff for changeset ff2c9fa2018b
1951 Added tag two, two.diff for changeset ff2c9fa2018b
1950
1952
1951 diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
1953 diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
1952 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
1954 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
1953 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
1955 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
1954 @@ -2,3 +2,5 @@
1956 @@ -2,3 +2,5 @@
1955 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
1957 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
1956 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
1958 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
1957 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
1959 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
1958 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
1960 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
1959 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
1961 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
1960
1962
1961 no intro message in non-interactive mode
1963 no intro message in non-interactive mode
1962 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1964 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1963 > -r 0:1
1965 > -r 0:1
1964 this patch series consists of 2 patches.
1966 this patch series consists of 2 patches.
1965
1967
1966 (optional) Subject: [PATCH 0 of 2]
1968 (optional) Subject: [PATCH 0 of 2]
1967
1969
1968 displaying [PATCH 1 of 2] a ...
1970 displaying [PATCH 1 of 2] a ...
1969 MIME-Version: 1.0
1971 MIME-Version: 1.0
1970 Content-Type: text/plain; charset="us-ascii"
1972 Content-Type: text/plain; charset="us-ascii"
1971 Content-Transfer-Encoding: 7bit
1973 Content-Transfer-Encoding: 7bit
1972 Subject: [PATCH 1 of 2] a
1974 Subject: [PATCH 1 of 2] a
1973 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1975 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1974 X-Mercurial-Series-Index: 1
1976 X-Mercurial-Series-Index: 1
1975 X-Mercurial-Series-Total: 2
1977 X-Mercurial-Series-Total: 2
1976 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
1978 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
1977 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
1979 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
1978 In-Reply-To: <baz>
1980 In-Reply-To: <baz>
1979 References: <baz>
1981 References: <baz>
1980 User-Agent: Mercurial-patchbomb/* (glob)
1982 User-Agent: Mercurial-patchbomb/* (glob)
1981 Date: Thu, 01 Jan 1970 00:01:00 +0000
1983 Date: Thu, 01 Jan 1970 00:01:00 +0000
1982 From: quux
1984 From: quux
1983 To: foo
1985 To: foo
1984 Cc: bar
1986 Cc: bar
1985
1987
1986 # HG changeset patch
1988 # HG changeset patch
1987 # User test
1989 # User test
1988 # Date 1 0
1990 # Date 1 0
1989 # Thu Jan 01 00:00:01 1970 +0000
1991 # Thu Jan 01 00:00:01 1970 +0000
1990 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1992 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1991 # Parent 0000000000000000000000000000000000000000
1993 # Parent 0000000000000000000000000000000000000000
1992 a
1994 a
1993
1995
1994 diff -r 000000000000 -r 8580ff50825a a
1996 diff -r 000000000000 -r 8580ff50825a a
1995 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1997 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1996 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1998 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1997 @@ -0,0 +1,1 @@
1999 @@ -0,0 +1,1 @@
1998 +a
2000 +a
1999
2001
2000 displaying [PATCH 2 of 2] b ...
2002 displaying [PATCH 2 of 2] b ...
2001 MIME-Version: 1.0
2003 MIME-Version: 1.0
2002 Content-Type: text/plain; charset="us-ascii"
2004 Content-Type: text/plain; charset="us-ascii"
2003 Content-Transfer-Encoding: 7bit
2005 Content-Transfer-Encoding: 7bit
2004 Subject: [PATCH 2 of 2] b
2006 Subject: [PATCH 2 of 2] b
2005 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2007 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2006 X-Mercurial-Series-Index: 2
2008 X-Mercurial-Series-Index: 2
2007 X-Mercurial-Series-Total: 2
2009 X-Mercurial-Series-Total: 2
2008 Message-Id: <97d72e5f12c7e84f8506.61@test-hostname>
2010 Message-Id: <97d72e5f12c7e84f8506.61@test-hostname>
2009 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
2011 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
2010 In-Reply-To: <baz>
2012 In-Reply-To: <baz>
2011 References: <baz>
2013 References: <baz>
2012 User-Agent: Mercurial-patchbomb/* (glob)
2014 User-Agent: Mercurial-patchbomb/* (glob)
2013 Date: Thu, 01 Jan 1970 00:01:01 +0000
2015 Date: Thu, 01 Jan 1970 00:01:01 +0000
2014 From: quux
2016 From: quux
2015 To: foo
2017 To: foo
2016 Cc: bar
2018 Cc: bar
2017
2019
2018 # HG changeset patch
2020 # HG changeset patch
2019 # User test
2021 # User test
2020 # Date 2 0
2022 # Date 2 0
2021 # Thu Jan 01 00:00:02 1970 +0000
2023 # Thu Jan 01 00:00:02 1970 +0000
2022 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2024 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2023 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2025 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2024 b
2026 b
2025
2027
2026 diff -r 8580ff50825a -r 97d72e5f12c7 b
2028 diff -r 8580ff50825a -r 97d72e5f12c7 b
2027 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2029 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2028 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2030 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2029 @@ -0,0 +1,1 @@
2031 @@ -0,0 +1,1 @@
2030 +b
2032 +b
2031
2033
2032
2034
2033
2035
2034
2036
2035 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
2037 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
2036 > -s test -r 0:1
2038 > -s test -r 0:1
2037 this patch series consists of 2 patches.
2039 this patch series consists of 2 patches.
2038
2040
2039
2041
2040 Write the introductory message for the patch series.
2042 Write the introductory message for the patch series.
2041
2043
2042
2044
2043 displaying [PATCH 0 of 2] test ...
2045 displaying [PATCH 0 of 2] test ...
2044 MIME-Version: 1.0
2046 MIME-Version: 1.0
2045 Content-Type: text/plain; charset="us-ascii"
2047 Content-Type: text/plain; charset="us-ascii"
2046 Content-Transfer-Encoding: 7bit
2048 Content-Transfer-Encoding: 7bit
2047 Subject: [PATCH 0 of 2] test
2049 Subject: [PATCH 0 of 2] test
2048 Message-Id: <patchbomb.60@test-hostname>
2050 Message-Id: <patchbomb.60@test-hostname>
2049 In-Reply-To: <baz>
2051 In-Reply-To: <baz>
2050 References: <baz>
2052 References: <baz>
2051 User-Agent: Mercurial-patchbomb/* (glob)
2053 User-Agent: Mercurial-patchbomb/* (glob)
2052 Date: Thu, 01 Jan 1970 00:01:00 +0000
2054 Date: Thu, 01 Jan 1970 00:01:00 +0000
2053 From: quux
2055 From: quux
2054 To: foo
2056 To: foo
2055 Cc: bar
2057 Cc: bar
2056
2058
2057
2059
2058 displaying [PATCH 1 of 2] a ...
2060 displaying [PATCH 1 of 2] a ...
2059 MIME-Version: 1.0
2061 MIME-Version: 1.0
2060 Content-Type: text/plain; charset="us-ascii"
2062 Content-Type: text/plain; charset="us-ascii"
2061 Content-Transfer-Encoding: 7bit
2063 Content-Transfer-Encoding: 7bit
2062 Subject: [PATCH 1 of 2] a
2064 Subject: [PATCH 1 of 2] a
2063 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2065 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2064 X-Mercurial-Series-Index: 1
2066 X-Mercurial-Series-Index: 1
2065 X-Mercurial-Series-Total: 2
2067 X-Mercurial-Series-Total: 2
2066 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
2068 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
2067 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2069 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2068 In-Reply-To: <patchbomb.60@test-hostname>
2070 In-Reply-To: <patchbomb.60@test-hostname>
2069 References: <patchbomb.60@test-hostname>
2071 References: <patchbomb.60@test-hostname>
2070 User-Agent: Mercurial-patchbomb/* (glob)
2072 User-Agent: Mercurial-patchbomb/* (glob)
2071 Date: Thu, 01 Jan 1970 00:01:01 +0000
2073 Date: Thu, 01 Jan 1970 00:01:01 +0000
2072 From: quux
2074 From: quux
2073 To: foo
2075 To: foo
2074 Cc: bar
2076 Cc: bar
2075
2077
2076 # HG changeset patch
2078 # HG changeset patch
2077 # User test
2079 # User test
2078 # Date 1 0
2080 # Date 1 0
2079 # Thu Jan 01 00:00:01 1970 +0000
2081 # Thu Jan 01 00:00:01 1970 +0000
2080 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2082 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2081 # Parent 0000000000000000000000000000000000000000
2083 # Parent 0000000000000000000000000000000000000000
2082 a
2084 a
2083
2085
2084 diff -r 000000000000 -r 8580ff50825a a
2086 diff -r 000000000000 -r 8580ff50825a a
2085 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2087 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2086 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2088 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2087 @@ -0,0 +1,1 @@
2089 @@ -0,0 +1,1 @@
2088 +a
2090 +a
2089
2091
2090 displaying [PATCH 2 of 2] b ...
2092 displaying [PATCH 2 of 2] b ...
2091 MIME-Version: 1.0
2093 MIME-Version: 1.0
2092 Content-Type: text/plain; charset="us-ascii"
2094 Content-Type: text/plain; charset="us-ascii"
2093 Content-Transfer-Encoding: 7bit
2095 Content-Transfer-Encoding: 7bit
2094 Subject: [PATCH 2 of 2] b
2096 Subject: [PATCH 2 of 2] b
2095 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2097 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2096 X-Mercurial-Series-Index: 2
2098 X-Mercurial-Series-Index: 2
2097 X-Mercurial-Series-Total: 2
2099 X-Mercurial-Series-Total: 2
2098 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
2100 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
2099 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2101 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2100 In-Reply-To: <patchbomb.60@test-hostname>
2102 In-Reply-To: <patchbomb.60@test-hostname>
2101 References: <patchbomb.60@test-hostname>
2103 References: <patchbomb.60@test-hostname>
2102 User-Agent: Mercurial-patchbomb/* (glob)
2104 User-Agent: Mercurial-patchbomb/* (glob)
2103 Date: Thu, 01 Jan 1970 00:01:02 +0000
2105 Date: Thu, 01 Jan 1970 00:01:02 +0000
2104 From: quux
2106 From: quux
2105 To: foo
2107 To: foo
2106 Cc: bar
2108 Cc: bar
2107
2109
2108 # HG changeset patch
2110 # HG changeset patch
2109 # User test
2111 # User test
2110 # Date 2 0
2112 # Date 2 0
2111 # Thu Jan 01 00:00:02 1970 +0000
2113 # Thu Jan 01 00:00:02 1970 +0000
2112 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2114 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2113 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2115 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2114 b
2116 b
2115
2117
2116 diff -r 8580ff50825a -r 97d72e5f12c7 b
2118 diff -r 8580ff50825a -r 97d72e5f12c7 b
2117 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2119 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2118 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2120 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2119 @@ -0,0 +1,1 @@
2121 @@ -0,0 +1,1 @@
2120 +b
2122 +b
2121
2123
2122
2124
2123 test single flag for single patch (and no warning when not mailing dirty rev):
2125 test single flag for single patch (and no warning when not mailing dirty rev):
2124 $ hg up -qr1
2126 $ hg up -qr1
2125 $ echo dirt > a
2127 $ echo dirt > a
2126 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
2128 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
2127 > -r 2 | $FILTERBOUNDARY
2129 > -r 2 | filterboundary
2128 this patch series consists of 1 patches.
2130 this patch series consists of 1 patches.
2129
2131
2130
2132
2131 displaying [PATCH fooFlag] test ...
2133 displaying [PATCH fooFlag] test ...
2132 MIME-Version: 1.0
2134 MIME-Version: 1.0
2133 Content-Type: text/plain; charset="us-ascii"
2135 Content-Type: text/plain; charset="us-ascii"
2134 Content-Transfer-Encoding: 7bit
2136 Content-Transfer-Encoding: 7bit
2135 Subject: [PATCH fooFlag] test
2137 Subject: [PATCH fooFlag] test
2136 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2138 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2137 X-Mercurial-Series-Index: 1
2139 X-Mercurial-Series-Index: 1
2138 X-Mercurial-Series-Total: 1
2140 X-Mercurial-Series-Total: 1
2139 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
2141 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
2140 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
2142 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
2141 User-Agent: Mercurial-patchbomb/* (glob)
2143 User-Agent: Mercurial-patchbomb/* (glob)
2142 Date: Thu, 01 Jan 1970 00:01:00 +0000
2144 Date: Thu, 01 Jan 1970 00:01:00 +0000
2143 From: quux
2145 From: quux
2144 To: foo
2146 To: foo
2145 Cc: bar
2147 Cc: bar
2146
2148
2147 # HG changeset patch
2149 # HG changeset patch
2148 # User test
2150 # User test
2149 # Date 3 0
2151 # Date 3 0
2150 # Thu Jan 01 00:00:03 1970 +0000
2152 # Thu Jan 01 00:00:03 1970 +0000
2151 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2153 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2152 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2154 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2153 c
2155 c
2154
2156
2155 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2157 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2156 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2158 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2157 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2159 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2158 @@ -0,0 +1,1 @@
2160 @@ -0,0 +1,1 @@
2159 +c
2161 +c
2160
2162
2161
2163
2162 test single flag for multiple patches (and warning when mailing dirty rev):
2164 test single flag for multiple patches (and warning when mailing dirty rev):
2163 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
2165 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
2164 > -r 0:1
2166 > -r 0:1
2165 warning: working directory has uncommitted changes
2167 warning: working directory has uncommitted changes
2166 this patch series consists of 2 patches.
2168 this patch series consists of 2 patches.
2167
2169
2168
2170
2169 Write the introductory message for the patch series.
2171 Write the introductory message for the patch series.
2170
2172
2171
2173
2172 displaying [PATCH 0 of 2 fooFlag] test ...
2174 displaying [PATCH 0 of 2 fooFlag] test ...
2173 MIME-Version: 1.0
2175 MIME-Version: 1.0
2174 Content-Type: text/plain; charset="us-ascii"
2176 Content-Type: text/plain; charset="us-ascii"
2175 Content-Transfer-Encoding: 7bit
2177 Content-Transfer-Encoding: 7bit
2176 Subject: [PATCH 0 of 2 fooFlag] test
2178 Subject: [PATCH 0 of 2 fooFlag] test
2177 Message-Id: <patchbomb.60@test-hostname>
2179 Message-Id: <patchbomb.60@test-hostname>
2178 User-Agent: Mercurial-patchbomb/* (glob)
2180 User-Agent: Mercurial-patchbomb/* (glob)
2179 Date: Thu, 01 Jan 1970 00:01:00 +0000
2181 Date: Thu, 01 Jan 1970 00:01:00 +0000
2180 From: quux
2182 From: quux
2181 To: foo
2183 To: foo
2182 Cc: bar
2184 Cc: bar
2183
2185
2184
2186
2185 displaying [PATCH 1 of 2 fooFlag] a ...
2187 displaying [PATCH 1 of 2 fooFlag] a ...
2186 MIME-Version: 1.0
2188 MIME-Version: 1.0
2187 Content-Type: text/plain; charset="us-ascii"
2189 Content-Type: text/plain; charset="us-ascii"
2188 Content-Transfer-Encoding: 7bit
2190 Content-Transfer-Encoding: 7bit
2189 Subject: [PATCH 1 of 2 fooFlag] a
2191 Subject: [PATCH 1 of 2 fooFlag] a
2190 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2192 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2191 X-Mercurial-Series-Index: 1
2193 X-Mercurial-Series-Index: 1
2192 X-Mercurial-Series-Total: 2
2194 X-Mercurial-Series-Total: 2
2193 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
2195 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
2194 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2196 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2195 In-Reply-To: <patchbomb.60@test-hostname>
2197 In-Reply-To: <patchbomb.60@test-hostname>
2196 References: <patchbomb.60@test-hostname>
2198 References: <patchbomb.60@test-hostname>
2197 User-Agent: Mercurial-patchbomb/* (glob)
2199 User-Agent: Mercurial-patchbomb/* (glob)
2198 Date: Thu, 01 Jan 1970 00:01:01 +0000
2200 Date: Thu, 01 Jan 1970 00:01:01 +0000
2199 From: quux
2201 From: quux
2200 To: foo
2202 To: foo
2201 Cc: bar
2203 Cc: bar
2202
2204
2203 # HG changeset patch
2205 # HG changeset patch
2204 # User test
2206 # User test
2205 # Date 1 0
2207 # Date 1 0
2206 # Thu Jan 01 00:00:01 1970 +0000
2208 # Thu Jan 01 00:00:01 1970 +0000
2207 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2209 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2208 # Parent 0000000000000000000000000000000000000000
2210 # Parent 0000000000000000000000000000000000000000
2209 a
2211 a
2210
2212
2211 diff -r 000000000000 -r 8580ff50825a a
2213 diff -r 000000000000 -r 8580ff50825a a
2212 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2214 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2213 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2215 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2214 @@ -0,0 +1,1 @@
2216 @@ -0,0 +1,1 @@
2215 +a
2217 +a
2216
2218
2217 displaying [PATCH 2 of 2 fooFlag] b ...
2219 displaying [PATCH 2 of 2 fooFlag] b ...
2218 MIME-Version: 1.0
2220 MIME-Version: 1.0
2219 Content-Type: text/plain; charset="us-ascii"
2221 Content-Type: text/plain; charset="us-ascii"
2220 Content-Transfer-Encoding: 7bit
2222 Content-Transfer-Encoding: 7bit
2221 Subject: [PATCH 2 of 2 fooFlag] b
2223 Subject: [PATCH 2 of 2 fooFlag] b
2222 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2224 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2223 X-Mercurial-Series-Index: 2
2225 X-Mercurial-Series-Index: 2
2224 X-Mercurial-Series-Total: 2
2226 X-Mercurial-Series-Total: 2
2225 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
2227 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
2226 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2228 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2227 In-Reply-To: <patchbomb.60@test-hostname>
2229 In-Reply-To: <patchbomb.60@test-hostname>
2228 References: <patchbomb.60@test-hostname>
2230 References: <patchbomb.60@test-hostname>
2229 User-Agent: Mercurial-patchbomb/* (glob)
2231 User-Agent: Mercurial-patchbomb/* (glob)
2230 Date: Thu, 01 Jan 1970 00:01:02 +0000
2232 Date: Thu, 01 Jan 1970 00:01:02 +0000
2231 From: quux
2233 From: quux
2232 To: foo
2234 To: foo
2233 Cc: bar
2235 Cc: bar
2234
2236
2235 # HG changeset patch
2237 # HG changeset patch
2236 # User test
2238 # User test
2237 # Date 2 0
2239 # Date 2 0
2238 # Thu Jan 01 00:00:02 1970 +0000
2240 # Thu Jan 01 00:00:02 1970 +0000
2239 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2241 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2240 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2242 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2241 b
2243 b
2242
2244
2243 diff -r 8580ff50825a -r 97d72e5f12c7 b
2245 diff -r 8580ff50825a -r 97d72e5f12c7 b
2244 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2246 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2245 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2247 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2246 @@ -0,0 +1,1 @@
2248 @@ -0,0 +1,1 @@
2247 +b
2249 +b
2248
2250
2249 $ hg revert --no-b a
2251 $ hg revert --no-b a
2250 $ hg up -q
2252 $ hg up -q
2251
2253
2252 test multiple flags for single patch:
2254 test multiple flags for single patch:
2253 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
2255 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
2254 > -c bar -s test -r 2
2256 > -c bar -s test -r 2
2255 this patch series consists of 1 patches.
2257 this patch series consists of 1 patches.
2256
2258
2257
2259
2258 displaying [PATCH fooFlag barFlag] test ...
2260 displaying [PATCH fooFlag barFlag] test ...
2259 MIME-Version: 1.0
2261 MIME-Version: 1.0
2260 Content-Type: text/plain; charset="us-ascii"
2262 Content-Type: text/plain; charset="us-ascii"
2261 Content-Transfer-Encoding: 7bit
2263 Content-Transfer-Encoding: 7bit
2262 Subject: [PATCH fooFlag barFlag] test
2264 Subject: [PATCH fooFlag barFlag] test
2263 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2265 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2264 X-Mercurial-Series-Index: 1
2266 X-Mercurial-Series-Index: 1
2265 X-Mercurial-Series-Total: 1
2267 X-Mercurial-Series-Total: 1
2266 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
2268 Message-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
2267 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
2269 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@test-hostname>
2268 User-Agent: Mercurial-patchbomb/* (glob)
2270 User-Agent: Mercurial-patchbomb/* (glob)
2269 Date: Thu, 01 Jan 1970 00:01:00 +0000
2271 Date: Thu, 01 Jan 1970 00:01:00 +0000
2270 From: quux
2272 From: quux
2271 To: foo
2273 To: foo
2272 Cc: bar
2274 Cc: bar
2273
2275
2274 # HG changeset patch
2276 # HG changeset patch
2275 # User test
2277 # User test
2276 # Date 3 0
2278 # Date 3 0
2277 # Thu Jan 01 00:00:03 1970 +0000
2279 # Thu Jan 01 00:00:03 1970 +0000
2278 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2280 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2279 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2281 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2280 c
2282 c
2281
2283
2282 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2284 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2283 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2285 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2284 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2286 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2285 @@ -0,0 +1,1 @@
2287 @@ -0,0 +1,1 @@
2286 +c
2288 +c
2287
2289
2288
2290
2289 test multiple flags for multiple patches:
2291 test multiple flags for multiple patches:
2290 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
2292 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
2291 > -c bar -s test -r 0:1
2293 > -c bar -s test -r 0:1
2292 this patch series consists of 2 patches.
2294 this patch series consists of 2 patches.
2293
2295
2294
2296
2295 Write the introductory message for the patch series.
2297 Write the introductory message for the patch series.
2296
2298
2297
2299
2298 displaying [PATCH 0 of 2 fooFlag barFlag] test ...
2300 displaying [PATCH 0 of 2 fooFlag barFlag] test ...
2299 MIME-Version: 1.0
2301 MIME-Version: 1.0
2300 Content-Type: text/plain; charset="us-ascii"
2302 Content-Type: text/plain; charset="us-ascii"
2301 Content-Transfer-Encoding: 7bit
2303 Content-Transfer-Encoding: 7bit
2302 Subject: [PATCH 0 of 2 fooFlag barFlag] test
2304 Subject: [PATCH 0 of 2 fooFlag barFlag] test
2303 Message-Id: <patchbomb.60@test-hostname>
2305 Message-Id: <patchbomb.60@test-hostname>
2304 User-Agent: Mercurial-patchbomb/* (glob)
2306 User-Agent: Mercurial-patchbomb/* (glob)
2305 Date: Thu, 01 Jan 1970 00:01:00 +0000
2307 Date: Thu, 01 Jan 1970 00:01:00 +0000
2306 From: quux
2308 From: quux
2307 To: foo
2309 To: foo
2308 Cc: bar
2310 Cc: bar
2309
2311
2310
2312
2311 displaying [PATCH 1 of 2 fooFlag barFlag] a ...
2313 displaying [PATCH 1 of 2 fooFlag barFlag] a ...
2312 MIME-Version: 1.0
2314 MIME-Version: 1.0
2313 Content-Type: text/plain; charset="us-ascii"
2315 Content-Type: text/plain; charset="us-ascii"
2314 Content-Transfer-Encoding: 7bit
2316 Content-Transfer-Encoding: 7bit
2315 Subject: [PATCH 1 of 2 fooFlag barFlag] a
2317 Subject: [PATCH 1 of 2 fooFlag barFlag] a
2316 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2318 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2317 X-Mercurial-Series-Index: 1
2319 X-Mercurial-Series-Index: 1
2318 X-Mercurial-Series-Total: 2
2320 X-Mercurial-Series-Total: 2
2319 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
2321 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
2320 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2322 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2321 In-Reply-To: <patchbomb.60@test-hostname>
2323 In-Reply-To: <patchbomb.60@test-hostname>
2322 References: <patchbomb.60@test-hostname>
2324 References: <patchbomb.60@test-hostname>
2323 User-Agent: Mercurial-patchbomb/* (glob)
2325 User-Agent: Mercurial-patchbomb/* (glob)
2324 Date: Thu, 01 Jan 1970 00:01:01 +0000
2326 Date: Thu, 01 Jan 1970 00:01:01 +0000
2325 From: quux
2327 From: quux
2326 To: foo
2328 To: foo
2327 Cc: bar
2329 Cc: bar
2328
2330
2329 # HG changeset patch
2331 # HG changeset patch
2330 # User test
2332 # User test
2331 # Date 1 0
2333 # Date 1 0
2332 # Thu Jan 01 00:00:01 1970 +0000
2334 # Thu Jan 01 00:00:01 1970 +0000
2333 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2335 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2334 # Parent 0000000000000000000000000000000000000000
2336 # Parent 0000000000000000000000000000000000000000
2335 a
2337 a
2336
2338
2337 diff -r 000000000000 -r 8580ff50825a a
2339 diff -r 000000000000 -r 8580ff50825a a
2338 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2340 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2339 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2341 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2340 @@ -0,0 +1,1 @@
2342 @@ -0,0 +1,1 @@
2341 +a
2343 +a
2342
2344
2343 displaying [PATCH 2 of 2 fooFlag barFlag] b ...
2345 displaying [PATCH 2 of 2 fooFlag barFlag] b ...
2344 MIME-Version: 1.0
2346 MIME-Version: 1.0
2345 Content-Type: text/plain; charset="us-ascii"
2347 Content-Type: text/plain; charset="us-ascii"
2346 Content-Transfer-Encoding: 7bit
2348 Content-Transfer-Encoding: 7bit
2347 Subject: [PATCH 2 of 2 fooFlag barFlag] b
2349 Subject: [PATCH 2 of 2 fooFlag barFlag] b
2348 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2350 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2349 X-Mercurial-Series-Index: 2
2351 X-Mercurial-Series-Index: 2
2350 X-Mercurial-Series-Total: 2
2352 X-Mercurial-Series-Total: 2
2351 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
2353 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
2352 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2354 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2353 In-Reply-To: <patchbomb.60@test-hostname>
2355 In-Reply-To: <patchbomb.60@test-hostname>
2354 References: <patchbomb.60@test-hostname>
2356 References: <patchbomb.60@test-hostname>
2355 User-Agent: Mercurial-patchbomb/* (glob)
2357 User-Agent: Mercurial-patchbomb/* (glob)
2356 Date: Thu, 01 Jan 1970 00:01:02 +0000
2358 Date: Thu, 01 Jan 1970 00:01:02 +0000
2357 From: quux
2359 From: quux
2358 To: foo
2360 To: foo
2359 Cc: bar
2361 Cc: bar
2360
2362
2361 # HG changeset patch
2363 # HG changeset patch
2362 # User test
2364 # User test
2363 # Date 2 0
2365 # Date 2 0
2364 # Thu Jan 01 00:00:02 1970 +0000
2366 # Thu Jan 01 00:00:02 1970 +0000
2365 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2367 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2366 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2368 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2367 b
2369 b
2368
2370
2369 diff -r 8580ff50825a -r 97d72e5f12c7 b
2371 diff -r 8580ff50825a -r 97d72e5f12c7 b
2370 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2372 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2371 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2373 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2372 @@ -0,0 +1,1 @@
2374 @@ -0,0 +1,1 @@
2373 +b
2375 +b
2374
2376
2375
2377
2376 test multi-address parsing:
2378 test multi-address parsing:
2377 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam><eggs>' \
2379 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam><eggs>' \
2378 > -t toast -c 'foo,bar@example.com' -c '"A, B <>" <a@example.com>' -s test -r 0 \
2380 > -t toast -c 'foo,bar@example.com' -c '"A, B <>" <a@example.com>' -s test -r 0 \
2379 > --config email.bcc='"Quux, A." <quux>'
2381 > --config email.bcc='"Quux, A." <quux>'
2380 this patch series consists of 1 patches.
2382 this patch series consists of 1 patches.
2381
2383
2382
2384
2383 sending [PATCH] test ...
2385 sending [PATCH] test ...
2384 $ cat < tmp.mbox
2386 $ cat < tmp.mbox
2385 From quux ... ... .. ..:..:.. .... (re)
2387 From quux ... ... .. ..:..:.. .... (re)
2386 MIME-Version: 1.0
2388 MIME-Version: 1.0
2387 Content-Type: text/plain; charset="us-ascii"
2389 Content-Type: text/plain; charset="us-ascii"
2388 Content-Transfer-Encoding: 7bit
2390 Content-Transfer-Encoding: 7bit
2389 Subject: [PATCH] test
2391 Subject: [PATCH] test
2390 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2392 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2391 X-Mercurial-Series-Index: 1
2393 X-Mercurial-Series-Index: 1
2392 X-Mercurial-Series-Total: 1
2394 X-Mercurial-Series-Total: 1
2393 Message-Id: <8580ff50825a50c8f716.315532860@test-hostname>
2395 Message-Id: <8580ff50825a50c8f716.315532860@test-hostname>
2394 X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@test-hostname>
2396 X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@test-hostname>
2395 User-Agent: Mercurial-patchbomb/* (glob)
2397 User-Agent: Mercurial-patchbomb/* (glob)
2396 Date: Tue, 01 Jan 1980 00:01:00 +0000
2398 Date: Tue, 01 Jan 1980 00:01:00 +0000
2397 From: quux
2399 From: quux
2398 To: spam <spam>, eggs, toast
2400 To: spam <spam>, eggs, toast
2399 Cc: foo, bar@example.com, "A, B <>" <a@example.com>
2401 Cc: foo, bar@example.com, "A, B <>" <a@example.com>
2400 Bcc: "Quux, A." <quux>
2402 Bcc: "Quux, A." <quux>
2401
2403
2402 # HG changeset patch
2404 # HG changeset patch
2403 # User test
2405 # User test
2404 # Date 1 0
2406 # Date 1 0
2405 # Thu Jan 01 00:00:01 1970 +0000
2407 # Thu Jan 01 00:00:01 1970 +0000
2406 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2408 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2407 # Parent 0000000000000000000000000000000000000000
2409 # Parent 0000000000000000000000000000000000000000
2408 a
2410 a
2409
2411
2410 diff -r 000000000000 -r 8580ff50825a a
2412 diff -r 000000000000 -r 8580ff50825a a
2411 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2413 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2412 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2414 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2413 @@ -0,0 +1,1 @@
2415 @@ -0,0 +1,1 @@
2414 +a
2416 +a
2415
2417
2416
2418
2417
2419
2418 test flag template:
2420 test flag template:
2419 $ echo foo > intro.text
2421 $ echo foo > intro.text
2420 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -r 0:1 \
2422 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -r 0:1 \
2421 > --desc intro.text --subject test \
2423 > --desc intro.text --subject test \
2422 > --config patchbomb.flagtemplate='R{rev}'
2424 > --config patchbomb.flagtemplate='R{rev}'
2423 this patch series consists of 2 patches.
2425 this patch series consists of 2 patches.
2424
2426
2425 Cc:
2427 Cc:
2426
2428
2427 displaying [PATCH 0 of 2 R1] test ...
2429 displaying [PATCH 0 of 2 R1] test ...
2428 MIME-Version: 1.0
2430 MIME-Version: 1.0
2429 Content-Type: text/plain; charset="us-ascii"
2431 Content-Type: text/plain; charset="us-ascii"
2430 Content-Transfer-Encoding: 7bit
2432 Content-Transfer-Encoding: 7bit
2431 Subject: [PATCH 0 of 2 R1] test
2433 Subject: [PATCH 0 of 2 R1] test
2432 Message-Id: <patchbomb.60@test-hostname>
2434 Message-Id: <patchbomb.60@test-hostname>
2433 User-Agent: Mercurial-patchbomb/* (glob)
2435 User-Agent: Mercurial-patchbomb/* (glob)
2434 Date: Thu, 01 Jan 1970 00:01:00 +0000
2436 Date: Thu, 01 Jan 1970 00:01:00 +0000
2435 From: quux
2437 From: quux
2436 To: foo
2438 To: foo
2437
2439
2438 foo
2440 foo
2439
2441
2440 displaying [PATCH 1 of 2 R0] a ...
2442 displaying [PATCH 1 of 2 R0] a ...
2441 MIME-Version: 1.0
2443 MIME-Version: 1.0
2442 Content-Type: text/plain; charset="us-ascii"
2444 Content-Type: text/plain; charset="us-ascii"
2443 Content-Transfer-Encoding: 7bit
2445 Content-Transfer-Encoding: 7bit
2444 Subject: [PATCH 1 of 2 R0] a
2446 Subject: [PATCH 1 of 2 R0] a
2445 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2447 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2446 X-Mercurial-Series-Index: 1
2448 X-Mercurial-Series-Index: 1
2447 X-Mercurial-Series-Total: 2
2449 X-Mercurial-Series-Total: 2
2448 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
2450 Message-Id: <8580ff50825a50c8f716.61@test-hostname>
2449 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2451 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2450 In-Reply-To: <patchbomb.60@test-hostname>
2452 In-Reply-To: <patchbomb.60@test-hostname>
2451 References: <patchbomb.60@test-hostname>
2453 References: <patchbomb.60@test-hostname>
2452 User-Agent: Mercurial-patchbomb/* (glob)
2454 User-Agent: Mercurial-patchbomb/* (glob)
2453 Date: Thu, 01 Jan 1970 00:01:01 +0000
2455 Date: Thu, 01 Jan 1970 00:01:01 +0000
2454 From: quux
2456 From: quux
2455 To: foo
2457 To: foo
2456
2458
2457 # HG changeset patch
2459 # HG changeset patch
2458 # User test
2460 # User test
2459 # Date 1 0
2461 # Date 1 0
2460 # Thu Jan 01 00:00:01 1970 +0000
2462 # Thu Jan 01 00:00:01 1970 +0000
2461 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2463 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2462 # Parent 0000000000000000000000000000000000000000
2464 # Parent 0000000000000000000000000000000000000000
2463 a
2465 a
2464
2466
2465 diff -r 000000000000 -r 8580ff50825a a
2467 diff -r 000000000000 -r 8580ff50825a a
2466 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2468 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2467 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2469 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2468 @@ -0,0 +1,1 @@
2470 @@ -0,0 +1,1 @@
2469 +a
2471 +a
2470
2472
2471 displaying [PATCH 2 of 2 R1] b ...
2473 displaying [PATCH 2 of 2 R1] b ...
2472 MIME-Version: 1.0
2474 MIME-Version: 1.0
2473 Content-Type: text/plain; charset="us-ascii"
2475 Content-Type: text/plain; charset="us-ascii"
2474 Content-Transfer-Encoding: 7bit
2476 Content-Transfer-Encoding: 7bit
2475 Subject: [PATCH 2 of 2 R1] b
2477 Subject: [PATCH 2 of 2 R1] b
2476 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2478 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2477 X-Mercurial-Series-Index: 2
2479 X-Mercurial-Series-Index: 2
2478 X-Mercurial-Series-Total: 2
2480 X-Mercurial-Series-Total: 2
2479 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
2481 Message-Id: <97d72e5f12c7e84f8506.62@test-hostname>
2480 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2482 X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@test-hostname>
2481 In-Reply-To: <patchbomb.60@test-hostname>
2483 In-Reply-To: <patchbomb.60@test-hostname>
2482 References: <patchbomb.60@test-hostname>
2484 References: <patchbomb.60@test-hostname>
2483 User-Agent: Mercurial-patchbomb/* (glob)
2485 User-Agent: Mercurial-patchbomb/* (glob)
2484 Date: Thu, 01 Jan 1970 00:01:02 +0000
2486 Date: Thu, 01 Jan 1970 00:01:02 +0000
2485 From: quux
2487 From: quux
2486 To: foo
2488 To: foo
2487
2489
2488 # HG changeset patch
2490 # HG changeset patch
2489 # User test
2491 # User test
2490 # Date 2 0
2492 # Date 2 0
2491 # Thu Jan 01 00:00:02 1970 +0000
2493 # Thu Jan 01 00:00:02 1970 +0000
2492 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2494 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2493 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2495 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
2494 b
2496 b
2495
2497
2496 diff -r 8580ff50825a -r 97d72e5f12c7 b
2498 diff -r 8580ff50825a -r 97d72e5f12c7 b
2497 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2499 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2498 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2500 +++ b/b Thu Jan 01 00:00:02 1970 +0000
2499 @@ -0,0 +1,1 @@
2501 @@ -0,0 +1,1 @@
2500 +b
2502 +b
2501
2503
2502
2504
2503 test flag template plus --flag:
2505 test flag template plus --flag:
2504 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -r 0 --flag 'V2' \
2506 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -r 0 --flag 'V2' \
2505 > --config patchbomb.flagtemplate='{branch} {flags}'
2507 > --config patchbomb.flagtemplate='{branch} {flags}'
2506 this patch series consists of 1 patches.
2508 this patch series consists of 1 patches.
2507
2509
2508 Cc:
2510 Cc:
2509
2511
2510 displaying [PATCH default V2] a ...
2512 displaying [PATCH default V2] a ...
2511 MIME-Version: 1.0
2513 MIME-Version: 1.0
2512 Content-Type: text/plain; charset="us-ascii"
2514 Content-Type: text/plain; charset="us-ascii"
2513 Content-Transfer-Encoding: 7bit
2515 Content-Transfer-Encoding: 7bit
2514 Subject: [PATCH default V2] a
2516 Subject: [PATCH default V2] a
2515 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2517 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2516 X-Mercurial-Series-Index: 1
2518 X-Mercurial-Series-Index: 1
2517 X-Mercurial-Series-Total: 1
2519 X-Mercurial-Series-Total: 1
2518 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
2520 Message-Id: <8580ff50825a50c8f716.60@test-hostname>
2519 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
2521 X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@test-hostname>
2520 User-Agent: Mercurial-patchbomb/* (glob)
2522 User-Agent: Mercurial-patchbomb/* (glob)
2521 Date: Thu, 01 Jan 1970 00:01:00 +0000
2523 Date: Thu, 01 Jan 1970 00:01:00 +0000
2522 From: quux
2524 From: quux
2523 To: foo
2525 To: foo
2524
2526
2525 # HG changeset patch
2527 # HG changeset patch
2526 # User test
2528 # User test
2527 # Date 1 0
2529 # Date 1 0
2528 # Thu Jan 01 00:00:01 1970 +0000
2530 # Thu Jan 01 00:00:01 1970 +0000
2529 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2531 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2530 # Parent 0000000000000000000000000000000000000000
2532 # Parent 0000000000000000000000000000000000000000
2531 a
2533 a
2532
2534
2533 diff -r 000000000000 -r 8580ff50825a a
2535 diff -r 000000000000 -r 8580ff50825a a
2534 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2536 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2535 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2537 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2536 @@ -0,0 +1,1 @@
2538 @@ -0,0 +1,1 @@
2537 +a
2539 +a
2538
2540
2539
2541
2540 test multi-byte domain parsing:
2542 test multi-byte domain parsing:
2541 >>> with open('toaddress.txt', 'wb') as f:
2543 >>> with open('toaddress.txt', 'wb') as f:
2542 ... f.write(b'bar@\xfcnicode.com') and None
2544 ... f.write(b'bar@\xfcnicode.com') and None
2543 $ HGENCODING=iso-8859-1
2545 $ HGENCODING=iso-8859-1
2544 $ export HGENCODING
2546 $ export HGENCODING
2545 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "`cat toaddress.txt`" -s test -r 0
2547 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "`cat toaddress.txt`" -s test -r 0
2546 this patch series consists of 1 patches.
2548 this patch series consists of 1 patches.
2547
2549
2548 Cc:
2550 Cc:
2549
2551
2550 sending [PATCH] test ...
2552 sending [PATCH] test ...
2551
2553
2552 $ cat tmp.mbox
2554 $ cat tmp.mbox
2553 From quux ... ... .. ..:..:.. .... (re)
2555 From quux ... ... .. ..:..:.. .... (re)
2554 MIME-Version: 1.0
2556 MIME-Version: 1.0
2555 Content-Type: text/plain; charset="us-ascii"
2557 Content-Type: text/plain; charset="us-ascii"
2556 Content-Transfer-Encoding: 7bit
2558 Content-Transfer-Encoding: 7bit
2557 Subject: [PATCH] test
2559 Subject: [PATCH] test
2558 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2560 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2559 X-Mercurial-Series-Index: 1
2561 X-Mercurial-Series-Index: 1
2560 X-Mercurial-Series-Total: 1
2562 X-Mercurial-Series-Total: 1
2561 Message-Id: <8580ff50825a50c8f716.315532860@test-hostname>
2563 Message-Id: <8580ff50825a50c8f716.315532860@test-hostname>
2562 X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@test-hostname>
2564 X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@test-hostname>
2563 User-Agent: Mercurial-patchbomb/* (glob)
2565 User-Agent: Mercurial-patchbomb/* (glob)
2564 Date: Tue, 01 Jan 1980 00:01:00 +0000
2566 Date: Tue, 01 Jan 1980 00:01:00 +0000
2565 From: quux
2567 From: quux
2566 To: bar@xn--nicode-2ya.com
2568 To: bar@xn--nicode-2ya.com
2567
2569
2568 # HG changeset patch
2570 # HG changeset patch
2569 # User test
2571 # User test
2570 # Date 1 0
2572 # Date 1 0
2571 # Thu Jan 01 00:00:01 1970 +0000
2573 # Thu Jan 01 00:00:01 1970 +0000
2572 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2574 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2573 # Parent 0000000000000000000000000000000000000000
2575 # Parent 0000000000000000000000000000000000000000
2574 a
2576 a
2575
2577
2576 diff -r 000000000000 -r 8580ff50825a a
2578 diff -r 000000000000 -r 8580ff50825a a
2577 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2579 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2578 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2580 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2579 @@ -0,0 +1,1 @@
2581 @@ -0,0 +1,1 @@
2580 +a
2582 +a
2581
2583
2582
2584
2583
2585
2584 test outgoing:
2586 test outgoing:
2585 $ hg up 1
2587 $ hg up 1
2586 0 files updated, 0 files merged, 6 files removed, 0 files unresolved
2588 0 files updated, 0 files merged, 6 files removed, 0 files unresolved
2587
2589
2588 $ hg branch test
2590 $ hg branch test
2589 marked working directory as branch test
2591 marked working directory as branch test
2590 (branches are permanent and global, did you want a bookmark?)
2592 (branches are permanent and global, did you want a bookmark?)
2591
2593
2592 $ echo d > d
2594 $ echo d > d
2593 $ hg add d
2595 $ hg add d
2594 $ hg ci -md -d '4 0'
2596 $ hg ci -md -d '4 0'
2595 $ echo d >> d
2597 $ echo d >> d
2596 $ hg ci -mdd -d '5 0'
2598 $ hg ci -mdd -d '5 0'
2597 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
2599 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
2598 @ 10:3b6f1ec9dde9 dd
2600 @ 10:3b6f1ec9dde9 dd
2599 |
2601 |
2600 o 9:2f9fa9b998c5 d
2602 o 9:2f9fa9b998c5 d
2601 |
2603 |
2602 | o 8:7aead2484924 Added tag two, two.diff for changeset ff2c9fa2018b
2604 | o 8:7aead2484924 Added tag two, two.diff for changeset ff2c9fa2018b
2603 | |
2605 | |
2604 | o 7:045ca29b1ea2 Added tag one, one.patch for changeset 97d72e5f12c7
2606 | o 7:045ca29b1ea2 Added tag one, one.patch for changeset 97d72e5f12c7
2605 | |
2607 | |
2606 | o 6:5d5ef15dfe5e Added tag zero, zero.foo for changeset 8580ff50825a
2608 | o 6:5d5ef15dfe5e Added tag zero, zero.foo for changeset 8580ff50825a
2607 | |
2609 | |
2608 | o 5:240fb913fc1b isolatin 8-bit encoding
2610 | o 5:240fb913fc1b isolatin 8-bit encoding
2609 | |
2611 | |
2610 | o 4:a2ea8fc83dd8 long line
2612 | o 4:a2ea8fc83dd8 long line
2611 | |
2613 | |
2612 | o 3:909a00e13e9d utf-8 content
2614 | o 3:909a00e13e9d utf-8 content
2613 | |
2615 | |
2614 | o 2:ff2c9fa2018b c
2616 | o 2:ff2c9fa2018b c
2615 |/
2617 |/
2616 o 1:97d72e5f12c7 b
2618 o 1:97d72e5f12c7 b
2617 |
2619 |
2618 o 0:8580ff50825a a
2620 o 0:8580ff50825a a
2619
2621
2620 $ hg phase --force --secret -r 10
2622 $ hg phase --force --secret -r 10
2621 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t -r 'rev(10) or rev(6)'
2623 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t -r 'rev(10) or rev(6)'
2622 comparing with ../t
2624 comparing with ../t
2623 From [test]: test
2625 From [test]: test
2624 this patch series consists of 6 patches.
2626 this patch series consists of 6 patches.
2625
2627
2626
2628
2627 Write the introductory message for the patch series.
2629 Write the introductory message for the patch series.
2628
2630
2629 Cc:
2631 Cc:
2630
2632
2631 displaying [PATCH 0 of 6] test ...
2633 displaying [PATCH 0 of 6] test ...
2632 MIME-Version: 1.0
2634 MIME-Version: 1.0
2633 Content-Type: text/plain; charset="us-ascii"
2635 Content-Type: text/plain; charset="us-ascii"
2634 Content-Transfer-Encoding: 7bit
2636 Content-Transfer-Encoding: 7bit
2635 Subject: [PATCH 0 of 6] test
2637 Subject: [PATCH 0 of 6] test
2636 Message-Id: <patchbomb.315532860@test-hostname>
2638 Message-Id: <patchbomb.315532860@test-hostname>
2637 User-Agent: Mercurial-patchbomb/* (glob)
2639 User-Agent: Mercurial-patchbomb/* (glob)
2638 Date: Tue, 01 Jan 1980 00:01:00 +0000
2640 Date: Tue, 01 Jan 1980 00:01:00 +0000
2639 From: test
2641 From: test
2640 To: foo
2642 To: foo
2641
2643
2642
2644
2643 displaying [PATCH 1 of 6] c ...
2645 displaying [PATCH 1 of 6] c ...
2644 MIME-Version: 1.0
2646 MIME-Version: 1.0
2645 Content-Type: text/plain; charset="us-ascii"
2647 Content-Type: text/plain; charset="us-ascii"
2646 Content-Transfer-Encoding: 7bit
2648 Content-Transfer-Encoding: 7bit
2647 Subject: [PATCH 1 of 6] c
2649 Subject: [PATCH 1 of 6] c
2648 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2650 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2649 X-Mercurial-Series-Index: 1
2651 X-Mercurial-Series-Index: 1
2650 X-Mercurial-Series-Total: 6
2652 X-Mercurial-Series-Total: 6
2651 Message-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2653 Message-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2652 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2654 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2653 In-Reply-To: <patchbomb.315532860@test-hostname>
2655 In-Reply-To: <patchbomb.315532860@test-hostname>
2654 References: <patchbomb.315532860@test-hostname>
2656 References: <patchbomb.315532860@test-hostname>
2655 User-Agent: Mercurial-patchbomb/* (glob)
2657 User-Agent: Mercurial-patchbomb/* (glob)
2656 Date: Tue, 01 Jan 1980 00:01:01 +0000
2658 Date: Tue, 01 Jan 1980 00:01:01 +0000
2657 From: test
2659 From: test
2658 To: foo
2660 To: foo
2659
2661
2660 # HG changeset patch
2662 # HG changeset patch
2661 # User test
2663 # User test
2662 # Date 3 0
2664 # Date 3 0
2663 # Thu Jan 01 00:00:03 1970 +0000
2665 # Thu Jan 01 00:00:03 1970 +0000
2664 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2666 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2665 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2667 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2666 c
2668 c
2667
2669
2668 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2670 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2669 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2671 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2670 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2672 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2671 @@ -0,0 +1,1 @@
2673 @@ -0,0 +1,1 @@
2672 +c
2674 +c
2673
2675
2674 displaying [PATCH 2 of 6] utf-8 content ...
2676 displaying [PATCH 2 of 6] utf-8 content ...
2675 MIME-Version: 1.0
2677 MIME-Version: 1.0
2676 Content-Type: text/plain; charset="iso-8859-1"
2678 Content-Type: text/plain; charset="iso-8859-1"
2677 Content-Transfer-Encoding: quoted-printable
2679 Content-Transfer-Encoding: quoted-printable
2678 Subject: [PATCH 2 of 6] utf-8 content
2680 Subject: [PATCH 2 of 6] utf-8 content
2679 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
2681 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
2680 X-Mercurial-Series-Index: 2
2682 X-Mercurial-Series-Index: 2
2681 X-Mercurial-Series-Total: 6
2683 X-Mercurial-Series-Total: 6
2682 Message-Id: <909a00e13e9d78b575ae.315532862@test-hostname>
2684 Message-Id: <909a00e13e9d78b575ae.315532862@test-hostname>
2683 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2685 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2684 In-Reply-To: <patchbomb.315532860@test-hostname>
2686 In-Reply-To: <patchbomb.315532860@test-hostname>
2685 References: <patchbomb.315532860@test-hostname>
2687 References: <patchbomb.315532860@test-hostname>
2686 User-Agent: Mercurial-patchbomb/* (glob)
2688 User-Agent: Mercurial-patchbomb/* (glob)
2687 Date: Tue, 01 Jan 1980 00:01:02 +0000
2689 Date: Tue, 01 Jan 1980 00:01:02 +0000
2688 From: test
2690 From: test
2689 To: foo
2691 To: foo
2690
2692
2691 # HG changeset patch
2693 # HG changeset patch
2692 # User test
2694 # User test
2693 # Date 4 0
2695 # Date 4 0
2694 # Thu Jan 01 00:00:04 1970 +0000
2696 # Thu Jan 01 00:00:04 1970 +0000
2695 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
2697 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
2696 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
2698 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
2697 utf-8 content
2699 utf-8 content
2698
2700
2699 diff -r ff2c9fa2018b -r 909a00e13e9d description
2701 diff -r ff2c9fa2018b -r 909a00e13e9d description
2700 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2702 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2701 +++ b/description Thu Jan 01 00:00:04 1970 +0000
2703 +++ b/description Thu Jan 01 00:00:04 1970 +0000
2702 @@ -0,0 +1,3 @@
2704 @@ -0,0 +1,3 @@
2703 +a multiline
2705 +a multiline
2704 +
2706 +
2705 +description
2707 +description
2706 diff -r ff2c9fa2018b -r 909a00e13e9d utf
2708 diff -r ff2c9fa2018b -r 909a00e13e9d utf
2707 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2709 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2708 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
2710 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
2709 @@ -0,0 +1,1 @@
2711 @@ -0,0 +1,1 @@
2710 +h=C3=B6mma!
2712 +h=C3=B6mma!
2711
2713
2712 displaying [PATCH 3 of 6] long line ...
2714 displaying [PATCH 3 of 6] long line ...
2713 MIME-Version: 1.0
2715 MIME-Version: 1.0
2714 Content-Type: text/plain; charset="us-ascii"
2716 Content-Type: text/plain; charset="us-ascii"
2715 Content-Transfer-Encoding: quoted-printable
2717 Content-Transfer-Encoding: quoted-printable
2716 Subject: [PATCH 3 of 6] long line
2718 Subject: [PATCH 3 of 6] long line
2717 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2719 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2718 X-Mercurial-Series-Index: 3
2720 X-Mercurial-Series-Index: 3
2719 X-Mercurial-Series-Total: 6
2721 X-Mercurial-Series-Total: 6
2720 Message-Id: <a2ea8fc83dd8b93cfd86.315532863@test-hostname>
2722 Message-Id: <a2ea8fc83dd8b93cfd86.315532863@test-hostname>
2721 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2723 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2722 In-Reply-To: <patchbomb.315532860@test-hostname>
2724 In-Reply-To: <patchbomb.315532860@test-hostname>
2723 References: <patchbomb.315532860@test-hostname>
2725 References: <patchbomb.315532860@test-hostname>
2724 User-Agent: Mercurial-patchbomb/* (glob)
2726 User-Agent: Mercurial-patchbomb/* (glob)
2725 Date: Tue, 01 Jan 1980 00:01:03 +0000
2727 Date: Tue, 01 Jan 1980 00:01:03 +0000
2726 From: test
2728 From: test
2727 To: foo
2729 To: foo
2728
2730
2729 # HG changeset patch
2731 # HG changeset patch
2730 # User test
2732 # User test
2731 # Date 4 0
2733 # Date 4 0
2732 # Thu Jan 01 00:00:04 1970 +0000
2734 # Thu Jan 01 00:00:04 1970 +0000
2733 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2735 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2734 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
2736 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
2735 long line
2737 long line
2736
2738
2737 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
2739 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
2738 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2740 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2739 +++ b/long Thu Jan 01 00:00:04 1970 +0000
2741 +++ b/long Thu Jan 01 00:00:04 1970 +0000
2740 @@ -0,0 +1,4 @@
2742 @@ -0,0 +1,4 @@
2741 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2743 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2742 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2744 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2743 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2745 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2744 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2746 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2745 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2747 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2746 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2748 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2747 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2749 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2748 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2750 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2749 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2751 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2750 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2752 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2751 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2753 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2752 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2754 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2753 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2755 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2754 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2756 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2755 +foo
2757 +foo
2756 +
2758 +
2757 +bar
2759 +bar
2758
2760
2759 displaying [PATCH 4 of 6] isolatin 8-bit encoding ...
2761 displaying [PATCH 4 of 6] isolatin 8-bit encoding ...
2760 MIME-Version: 1.0
2762 MIME-Version: 1.0
2761 Content-Type: text/plain; charset="iso-8859-1"
2763 Content-Type: text/plain; charset="iso-8859-1"
2762 Content-Transfer-Encoding: quoted-printable
2764 Content-Transfer-Encoding: quoted-printable
2763 Subject: [PATCH 4 of 6] isolatin 8-bit encoding
2765 Subject: [PATCH 4 of 6] isolatin 8-bit encoding
2764 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2766 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2765 X-Mercurial-Series-Index: 4
2767 X-Mercurial-Series-Index: 4
2766 X-Mercurial-Series-Total: 6
2768 X-Mercurial-Series-Total: 6
2767 Message-Id: <240fb913fc1b7ff15ddb.315532864@test-hostname>
2769 Message-Id: <240fb913fc1b7ff15ddb.315532864@test-hostname>
2768 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2770 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2769 In-Reply-To: <patchbomb.315532860@test-hostname>
2771 In-Reply-To: <patchbomb.315532860@test-hostname>
2770 References: <patchbomb.315532860@test-hostname>
2772 References: <patchbomb.315532860@test-hostname>
2771 User-Agent: Mercurial-patchbomb/* (glob)
2773 User-Agent: Mercurial-patchbomb/* (glob)
2772 Date: Tue, 01 Jan 1980 00:01:04 +0000
2774 Date: Tue, 01 Jan 1980 00:01:04 +0000
2773 From: test
2775 From: test
2774 To: foo
2776 To: foo
2775
2777
2776 # HG changeset patch
2778 # HG changeset patch
2777 # User test
2779 # User test
2778 # Date 5 0
2780 # Date 5 0
2779 # Thu Jan 01 00:00:05 1970 +0000
2781 # Thu Jan 01 00:00:05 1970 +0000
2780 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2782 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2781 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2783 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2782 isolatin 8-bit encoding
2784 isolatin 8-bit encoding
2783
2785
2784 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
2786 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
2785 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2787 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2786 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
2788 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
2787 @@ -0,0 +1,1 @@
2789 @@ -0,0 +1,1 @@
2788 +h=F6mma!
2790 +h=F6mma!
2789
2791
2790 displaying [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a ...
2792 displaying [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a ...
2791 MIME-Version: 1.0
2793 MIME-Version: 1.0
2792 Content-Type: text/plain; charset="us-ascii"
2794 Content-Type: text/plain; charset="us-ascii"
2793 Content-Transfer-Encoding: 7bit
2795 Content-Transfer-Encoding: 7bit
2794 Subject: [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a
2796 Subject: [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a
2795 X-Mercurial-Node: 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2797 X-Mercurial-Node: 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2796 X-Mercurial-Series-Index: 5
2798 X-Mercurial-Series-Index: 5
2797 X-Mercurial-Series-Total: 6
2799 X-Mercurial-Series-Total: 6
2798 Message-Id: <5d5ef15dfe5e7bd3a4ee.315532865@test-hostname>
2800 Message-Id: <5d5ef15dfe5e7bd3a4ee.315532865@test-hostname>
2799 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2801 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2800 In-Reply-To: <patchbomb.315532860@test-hostname>
2802 In-Reply-To: <patchbomb.315532860@test-hostname>
2801 References: <patchbomb.315532860@test-hostname>
2803 References: <patchbomb.315532860@test-hostname>
2802 User-Agent: Mercurial-patchbomb/* (glob)
2804 User-Agent: Mercurial-patchbomb/* (glob)
2803 Date: Tue, 01 Jan 1980 00:01:05 +0000
2805 Date: Tue, 01 Jan 1980 00:01:05 +0000
2804 From: test
2806 From: test
2805 To: foo
2807 To: foo
2806
2808
2807 # HG changeset patch
2809 # HG changeset patch
2808 # User test
2810 # User test
2809 # Date 0 0
2811 # Date 0 0
2810 # Thu Jan 01 00:00:00 1970 +0000
2812 # Thu Jan 01 00:00:00 1970 +0000
2811 # Node ID 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2813 # Node ID 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2812 # Parent 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2814 # Parent 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2813 Added tag zero, zero.foo for changeset 8580ff50825a
2815 Added tag zero, zero.foo for changeset 8580ff50825a
2814
2816
2815 diff -r 240fb913fc1b -r 5d5ef15dfe5e .hgtags
2817 diff -r 240fb913fc1b -r 5d5ef15dfe5e .hgtags
2816 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2818 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2817 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2819 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2818 @@ -0,0 +1,2 @@
2820 @@ -0,0 +1,2 @@
2819 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2821 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2820 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2822 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2821
2823
2822 displaying [PATCH 6 of 6] d ...
2824 displaying [PATCH 6 of 6] d ...
2823 MIME-Version: 1.0
2825 MIME-Version: 1.0
2824 Content-Type: text/plain; charset="us-ascii"
2826 Content-Type: text/plain; charset="us-ascii"
2825 Content-Transfer-Encoding: 7bit
2827 Content-Transfer-Encoding: 7bit
2826 Subject: [PATCH 6 of 6] d
2828 Subject: [PATCH 6 of 6] d
2827 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2829 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2828 X-Mercurial-Series-Index: 6
2830 X-Mercurial-Series-Index: 6
2829 X-Mercurial-Series-Total: 6
2831 X-Mercurial-Series-Total: 6
2830 Message-Id: <2f9fa9b998c5fe3ac2bd.315532866@test-hostname>
2832 Message-Id: <2f9fa9b998c5fe3ac2bd.315532866@test-hostname>
2831 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2833 X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@test-hostname>
2832 In-Reply-To: <patchbomb.315532860@test-hostname>
2834 In-Reply-To: <patchbomb.315532860@test-hostname>
2833 References: <patchbomb.315532860@test-hostname>
2835 References: <patchbomb.315532860@test-hostname>
2834 User-Agent: Mercurial-patchbomb/* (glob)
2836 User-Agent: Mercurial-patchbomb/* (glob)
2835 Date: Tue, 01 Jan 1980 00:01:06 +0000
2837 Date: Tue, 01 Jan 1980 00:01:06 +0000
2836 From: test
2838 From: test
2837 To: foo
2839 To: foo
2838
2840
2839 # HG changeset patch
2841 # HG changeset patch
2840 # User test
2842 # User test
2841 # Date 4 0
2843 # Date 4 0
2842 # Thu Jan 01 00:00:04 1970 +0000
2844 # Thu Jan 01 00:00:04 1970 +0000
2843 # Branch test
2845 # Branch test
2844 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2846 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2845 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2847 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2846 d
2848 d
2847
2849
2848 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2850 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2849 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2851 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2850 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2852 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2851 @@ -0,0 +1,1 @@
2853 @@ -0,0 +1,1 @@
2852 +d
2854 +d
2853
2855
2854
2856
2855 Don't prompt for a CC header.
2857 Don't prompt for a CC header.
2856
2858
2857 $ echo "[email]" >> $HGRCPATH
2859 $ echo "[email]" >> $HGRCPATH
2858 $ echo "cc=" >> $HGRCPATH
2860 $ echo "cc=" >> $HGRCPATH
2859
2861
2860 dest#branch URIs:
2862 dest#branch URIs:
2861 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
2863 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
2862 comparing with ../t
2864 comparing with ../t
2863 From [test]: test
2865 From [test]: test
2864 this patch series consists of 1 patches.
2866 this patch series consists of 1 patches.
2865
2867
2866
2868
2867 displaying [PATCH] test ...
2869 displaying [PATCH] test ...
2868 MIME-Version: 1.0
2870 MIME-Version: 1.0
2869 Content-Type: text/plain; charset="us-ascii"
2871 Content-Type: text/plain; charset="us-ascii"
2870 Content-Transfer-Encoding: 7bit
2872 Content-Transfer-Encoding: 7bit
2871 Subject: [PATCH] test
2873 Subject: [PATCH] test
2872 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2874 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2873 X-Mercurial-Series-Index: 1
2875 X-Mercurial-Series-Index: 1
2874 X-Mercurial-Series-Total: 1
2876 X-Mercurial-Series-Total: 1
2875 Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@test-hostname>
2877 Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@test-hostname>
2876 X-Mercurial-Series-Id: <2f9fa9b998c5fe3ac2bd.315532860@test-hostname>
2878 X-Mercurial-Series-Id: <2f9fa9b998c5fe3ac2bd.315532860@test-hostname>
2877 User-Agent: Mercurial-patchbomb/* (glob)
2879 User-Agent: Mercurial-patchbomb/* (glob)
2878 Date: Tue, 01 Jan 1980 00:01:00 +0000
2880 Date: Tue, 01 Jan 1980 00:01:00 +0000
2879 From: test
2881 From: test
2880 To: foo
2882 To: foo
2881
2883
2882 # HG changeset patch
2884 # HG changeset patch
2883 # User test
2885 # User test
2884 # Date 4 0
2886 # Date 4 0
2885 # Thu Jan 01 00:00:04 1970 +0000
2887 # Thu Jan 01 00:00:04 1970 +0000
2886 # Branch test
2888 # Branch test
2887 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2889 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2888 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2890 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2889 d
2891 d
2890
2892
2891 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2893 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2892 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2894 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2893 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2895 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2894 @@ -0,0 +1,1 @@
2896 @@ -0,0 +1,1 @@
2895 +d
2897 +d
2896
2898
2897 #if no-windows
2899 #if no-windows
2898
2900
2899 Set up a fake sendmail program
2901 Set up a fake sendmail program
2900
2902
2901 $ cat > pretendmail.sh << 'EOF'
2903 $ cat > pretendmail.sh << 'EOF'
2902 > #!/bin/sh
2904 > #!/bin/sh
2903 > echo "$@"
2905 > echo "$@"
2904 > cat
2906 > cat
2905 > EOF
2907 > EOF
2906 $ chmod +x pretendmail.sh
2908 $ chmod +x pretendmail.sh
2907
2909
2908 $ echo '[email]' >> $HGRCPATH
2910 $ echo '[email]' >> $HGRCPATH
2909 $ echo "method=`pwd`/pretendmail.sh" >> $HGRCPATH
2911 $ echo "method=`pwd`/pretendmail.sh" >> $HGRCPATH
2910
2912
2911 Test introduction configuration
2913 Test introduction configuration
2912 =================================
2914 =================================
2913
2915
2914 $ echo '[patchbomb]' >> $HGRCPATH
2916 $ echo '[patchbomb]' >> $HGRCPATH
2915
2917
2916 "auto" setting
2918 "auto" setting
2917 ----------------
2919 ----------------
2918
2920
2919 $ echo 'intro=auto' >> $HGRCPATH
2921 $ echo 'intro=auto' >> $HGRCPATH
2920
2922
2921 single rev
2923 single rev
2922
2924
2923 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2925 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2924 [1]
2926 [1]
2925
2927
2926 single rev + flag
2928 single rev + flag
2927
2929
2928 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2930 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2929 Write the introductory message for the patch series.
2931 Write the introductory message for the patch series.
2930
2932
2931
2933
2932 Multi rev
2934 Multi rev
2933
2935
2934 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2936 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2935 Write the introductory message for the patch series.
2937 Write the introductory message for the patch series.
2936
2938
2937 "never" setting
2939 "never" setting
2938 -----------------
2940 -----------------
2939
2941
2940 $ echo 'intro=never' >> $HGRCPATH
2942 $ echo 'intro=never' >> $HGRCPATH
2941
2943
2942 single rev
2944 single rev
2943
2945
2944 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2946 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2945 [1]
2947 [1]
2946
2948
2947 single rev + flag
2949 single rev + flag
2948
2950
2949 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2951 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2950 Write the introductory message for the patch series.
2952 Write the introductory message for the patch series.
2951
2953
2952
2954
2953 Multi rev
2955 Multi rev
2954
2956
2955 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2957 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2956 [1]
2958 [1]
2957
2959
2958 Multi rev + flag
2960 Multi rev + flag
2959
2961
2960 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' --intro | grep "Write the introductory message for the patch series."
2962 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' --intro | grep "Write the introductory message for the patch series."
2961 Write the introductory message for the patch series.
2963 Write the introductory message for the patch series.
2962
2964
2963 "always" setting
2965 "always" setting
2964 -----------------
2966 -----------------
2965
2967
2966 $ echo 'intro=always' >> $HGRCPATH
2968 $ echo 'intro=always' >> $HGRCPATH
2967
2969
2968 single rev
2970 single rev
2969
2971
2970 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2972 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
2971 Write the introductory message for the patch series.
2973 Write the introductory message for the patch series.
2972
2974
2973 single rev + flag
2975 single rev + flag
2974
2976
2975 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2977 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' --intro | grep "Write the introductory message for the patch series."
2976 Write the introductory message for the patch series.
2978 Write the introductory message for the patch series.
2977
2979
2978
2980
2979 Multi rev
2981 Multi rev
2980
2982
2981 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2983 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
2982 Write the introductory message for the patch series.
2984 Write the introductory message for the patch series.
2983
2985
2984 Multi rev + flag
2986 Multi rev + flag
2985
2987
2986 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' --intro | grep "Write the introductory message for the patch series."
2988 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '9::' --intro | grep "Write the introductory message for the patch series."
2987 Write the introductory message for the patch series.
2989 Write the introductory message for the patch series.
2988
2990
2989 bad value setting
2991 bad value setting
2990 -----------------
2992 -----------------
2991
2993
2992 $ echo 'intro=mpmwearaclownnose' >> $HGRCPATH
2994 $ echo 'intro=mpmwearaclownnose' >> $HGRCPATH
2993
2995
2994 single rev
2996 single rev
2995
2997
2996 $ hg email --date '1980-1-1 0:1' -v -t foo -s test -r '10'
2998 $ hg email --date '1980-1-1 0:1' -v -t foo -s test -r '10'
2997 From [test]: test
2999 From [test]: test
2998 this patch series consists of 1 patches.
3000 this patch series consists of 1 patches.
2999
3001
3000 warning: invalid patchbomb.intro value "mpmwearaclownnose"
3002 warning: invalid patchbomb.intro value "mpmwearaclownnose"
3001 (should be one of always, never, auto)
3003 (should be one of always, never, auto)
3002 -f test foo
3004 -f test foo
3003 MIME-Version: 1.0
3005 MIME-Version: 1.0
3004 Content-Type: text/plain; charset="us-ascii"
3006 Content-Type: text/plain; charset="us-ascii"
3005 Content-Transfer-Encoding: 7bit
3007 Content-Transfer-Encoding: 7bit
3006 Subject: [PATCH] test
3008 Subject: [PATCH] test
3007 X-Mercurial-Node: 3b6f1ec9dde933a40a115a7990f8b320477231af
3009 X-Mercurial-Node: 3b6f1ec9dde933a40a115a7990f8b320477231af
3008 X-Mercurial-Series-Index: 1
3010 X-Mercurial-Series-Index: 1
3009 X-Mercurial-Series-Total: 1
3011 X-Mercurial-Series-Total: 1
3010 Message-Id: <3b6f1ec9dde933a40a11*> (glob)
3012 Message-Id: <3b6f1ec9dde933a40a11*> (glob)
3011 X-Mercurial-Series-Id: <3b6f1ec9dde933a40a11.*> (glob)
3013 X-Mercurial-Series-Id: <3b6f1ec9dde933a40a11.*> (glob)
3012 User-Agent: Mercurial-patchbomb/* (glob)
3014 User-Agent: Mercurial-patchbomb/* (glob)
3013 Date: Tue, 01 Jan 1980 00:01:00 +0000
3015 Date: Tue, 01 Jan 1980 00:01:00 +0000
3014 From: test
3016 From: test
3015 To: foo
3017 To: foo
3016
3018
3017 # HG changeset patch
3019 # HG changeset patch
3018 # User test
3020 # User test
3019 # Date 5 0
3021 # Date 5 0
3020 # Thu Jan 01 00:00:05 1970 +0000
3022 # Thu Jan 01 00:00:05 1970 +0000
3021 # Branch test
3023 # Branch test
3022 # Node ID 3b6f1ec9dde933a40a115a7990f8b320477231af
3024 # Node ID 3b6f1ec9dde933a40a115a7990f8b320477231af
3023 # Parent 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
3025 # Parent 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
3024 dd
3026 dd
3025
3027
3026 diff -r 2f9fa9b998c5 -r 3b6f1ec9dde9 d
3028 diff -r 2f9fa9b998c5 -r 3b6f1ec9dde9 d
3027 --- a/d Thu Jan 01 00:00:04 1970 +0000
3029 --- a/d Thu Jan 01 00:00:04 1970 +0000
3028 +++ b/d Thu Jan 01 00:00:05 1970 +0000
3030 +++ b/d Thu Jan 01 00:00:05 1970 +0000
3029 @@ -1,1 +1,2 @@
3031 @@ -1,1 +1,2 @@
3030 d
3032 d
3031 +d
3033 +d
3032
3034
3033 sending [PATCH] test ...
3035 sending [PATCH] test ...
3034 sending mail: $TESTTMP/t2/pretendmail.sh -f test foo
3036 sending mail: $TESTTMP/t2/pretendmail.sh -f test foo
3035
3037
3036 Test pull url header
3038 Test pull url header
3037 =================================
3039 =================================
3038
3040
3039 basic version
3041 basic version
3040
3042
3041 $ echo 'intro=auto' >> $HGRCPATH
3043 $ echo 'intro=auto' >> $HGRCPATH
3042 $ echo "publicurl=$TESTTMP/t2" >> $HGRCPATH
3044 $ echo "publicurl=$TESTTMP/t2" >> $HGRCPATH
3043 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep '^#'
3045 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10' | grep '^#'
3044 abort: public url $TESTTMP/t2 is missing 3b6f1ec9dde9
3046 abort: public url $TESTTMP/t2 is missing 3b6f1ec9dde9
3045 (use 'hg push $TESTTMP/t2 -r 3b6f1ec9dde9')
3047 (use 'hg push $TESTTMP/t2 -r 3b6f1ec9dde9')
3046 [1]
3048 [1]
3047
3049
3048 public missing
3050 public missing
3049
3051
3050 $ echo 'publicurl=$TESTTMP/missing' >> $HGRCPATH
3052 $ echo 'publicurl=$TESTTMP/missing' >> $HGRCPATH
3051 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10'
3053 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10'
3052 unable to access public repo: $TESTTMP/missing
3054 unable to access public repo: $TESTTMP/missing
3053 abort: repository $TESTTMP/missing not found!
3055 abort: repository $TESTTMP/missing not found!
3054 [255]
3056 [255]
3055
3057
3056 node missing at public
3058 node missing at public
3057
3059
3058 $ hg clone -r '9' . ../t3
3060 $ hg clone -r '9' . ../t3
3059 adding changesets
3061 adding changesets
3060 adding manifests
3062 adding manifests
3061 adding file changes
3063 adding file changes
3062 added 3 changesets with 3 changes to 3 files
3064 added 3 changesets with 3 changes to 3 files
3063 new changesets 8580ff50825a:2f9fa9b998c5
3065 new changesets 8580ff50825a:2f9fa9b998c5
3064 updating to branch test
3066 updating to branch test
3065 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
3067 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
3066 $ echo 'publicurl=$TESTTMP/t3' >> $HGRCPATH
3068 $ echo 'publicurl=$TESTTMP/t3' >> $HGRCPATH
3067 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10'
3069 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '10'
3068 abort: public url $TESTTMP/t3 is missing 3b6f1ec9dde9
3070 abort: public url $TESTTMP/t3 is missing 3b6f1ec9dde9
3069 (use 'hg push $TESTTMP/t3 -r 3b6f1ec9dde9')
3071 (use 'hg push $TESTTMP/t3 -r 3b6f1ec9dde9')
3070 [255]
3072 [255]
3071
3073
3072 multiple heads are missing at public
3074 multiple heads are missing at public
3073
3075
3074 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '2+10'
3076 $ hg email --date '1980-1-1 0:1' -t foo -s test -r '2+10'
3075 abort: public "$TESTTMP/t3" is missing ff2c9fa2018b and 1 others
3077 abort: public "$TESTTMP/t3" is missing ff2c9fa2018b and 1 others
3076 (use 'hg push $TESTTMP/t3 -r ff2c9fa2018b -r 3b6f1ec9dde9')
3078 (use 'hg push $TESTTMP/t3 -r ff2c9fa2018b -r 3b6f1ec9dde9')
3077 [255]
3079 [255]
3078
3080
3079 #endif
3081 #endif
General Comments 0
You need to be logged in to leave comments. Login now