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