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