~ubuntu-branches/ubuntu/trusty/mercurial/trusty-security

« back to all changes in this revision

Viewing changes to debian/patches/fix_ftbfs_patchbomb_test.patch

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers, Jamie Strandboge, Marc Deslauriers
  • Date: 2015-06-17 10:51:42 UTC
  • Revision ID: package-import@ubuntu.com-20150617105142-5pe4odmv44b1p509
Tags: 2.8.2-1ubuntu1.3
[ Jamie Strandboge ]
* SECURITY UPDATE: fix for improperly handling case-insensitive paths on
  Windows and OS X clients
  - http://selenic.com/repo/hg-stable/rev/885bd7c5c7e3
  - http://selenic.com/repo/hg-stable/rev/c02a05cc6f5e
  - http://selenic.com/repo/hg-stable/rev/6dad422ecc5a
  - CVE-2014-9390
  - LP: #1404035

[ Marc Deslauriers ]
* SECURITY UPDATE: arbitrary command exection via crafted repository
  name in a clone command
  - d/p/from_upstream__sshpeer_more_thorough_shell_quoting.patch: add
    more thorough shell quoting to mercurial/sshpeer.py.
  - CVE-2014-9462
* debian/patches/fix_ftbfs_patchbomb_test.patch: fix patchbomb test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: fix patchbomb test
 
2
Origin: backported from 3.1.1
 
3
 
 
4
Index: mercurial-2.8.2/tests/test-patchbomb.t
 
5
===================================================================
 
6
--- mercurial-2.8.2.orig/tests/test-patchbomb.t 2015-06-17 15:20:05.254972546 -0400
 
7
+++ mercurial-2.8.2/tests/test-patchbomb.t      2015-06-17 15:20:21.699148136 -0400
 
8
@@ -1,3 +1,28 @@
 
9
+Note for future hackers of patchbomb: this file is a bit heavy on
 
10
+wildcards in test expectations due to how many things like hostnames
 
11
+tend to make it into outputs. As a result, you may need to perform the
 
12
+following regular expression substitutions:
 
13
+@$HOSTNAME> -> @*> (glob)
 
14
+Mercurial-patchbomb/.* -> Mercurial-patchbomb/* (glob)
 
15
+/mixed; boundary="===+[0-9]+==" -> /mixed; boundary="===*== (glob)"
 
16
+--===+[0-9]+=+--$ -> --===*=-- (glob)
 
17
+--===+[0-9]+=+$ -> --===*= (glob)
 
18
+
 
19
+  $ cat > prune-blank-after-boundary.py <<EOF
 
20
+  > import sys
 
21
+  > skipblank = False
 
22
+  > trim = lambda x: x.strip(' \r\n')
 
23
+  > for l in sys.stdin:
 
24
+  >     if trim(l).endswith('=--') or trim(l).endswith('=='):
 
25
+  >         skipblank = True
 
26
+  >         print l,
 
27
+  >         continue
 
28
+  >     if not trim(l) and skipblank:
 
29
+  >         continue
 
30
+  >     skipblank = False
 
31
+  >     print l,
 
32
+  > EOF
 
33
+  $ FILTERBOUNDARY="python `pwd`/prune-blank-after-boundary.py"
 
34
   $ echo "[extensions]" >> $HGRCPATH
 
35
   $ echo "patchbomb=" >> $HGRCPATH
 
36
 
 
37
@@ -195,12 +220,12 @@
 
38
 
 
39
 test bundle and description:
 
40
   $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
 
41
-  >  -c bar -s test -r tip -b --desc description
 
42
+  >  -c bar -s test -r tip -b --desc description | $FILTERBOUNDARY
 
43
   searching for changes
 
44
   1 changesets found
 
45
   
 
46
   displaying test ...
 
47
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
48
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
49
   MIME-Version: 1.0
 
50
   Subject: test
 
51
   Message-Id: <patchbomb.180@*> (glob)
 
52
@@ -210,7 +235,7 @@
 
53
   To: foo
 
54
   Cc: bar
 
55
   
 
56
-  --===* (glob)
 
57
+  --===*= (glob)
 
58
   Content-Type: text/plain; charset="us-ascii"
 
59
   MIME-Version: 1.0
 
60
   Content-Transfer-Encoding: 7bit
 
61
@@ -219,7 +244,7 @@
 
62
   
 
63
   description
 
64
   
 
65
-  --===* (glob)
 
66
+  --===*= (glob)
 
67
   Content-Type: application/x-mercurial-bundle
 
68
   MIME-Version: 1.0
 
69
   Content-Disposition: attachment; filename="bundle.hg"
 
70
@@ -232,7 +257,7 @@
 
71
   SlIBpFisgGkyRjX//TMtfcUAEsGu56+YnE1OlTZmzKm8BSu2rvo4rHAYYaadIFFuTy0LYgIkgLVD
 
72
   sgVa2F19D1tx9+hgbAygLgQwaIqcDdgA4BjQgIiz/AEP72++llgDKhKducqodGE4B0ETqF3JFOFC
 
73
   Q70eyNw=
 
74
-  --===*-- (glob)
 
75
+  --===*=-- (glob)
 
76
 
 
77
 utf-8 patch:
 
78
   $ python -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();'
 
79
@@ -646,12 +671,12 @@
 
80
   
 
81
 
 
82
 test inline for single patch:
 
83
-  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2
 
84
+  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | $FILTERBOUNDARY
 
85
   this patch series consists of 1 patches.
 
86
   
 
87
   
 
88
   displaying [PATCH] test ...
 
89
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
90
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
91
   MIME-Version: 1.0
 
92
   Subject: [PATCH] test
 
93
   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
94
@@ -662,7 +687,7 @@
 
95
   To: foo
 
96
   Cc: bar
 
97
   
 
98
-  --===* (glob)
 
99
+  --===*= (glob)
 
100
   Content-Type: text/x-patch; charset="us-ascii"
 
101
   MIME-Version: 1.0
 
102
   Content-Transfer-Encoding: 7bit
 
103
@@ -682,16 +707,16 @@
 
104
   @@ -0,0 +1,1 @@
 
105
   +c
 
106
   
 
107
-  --===*-- (glob)
 
108
+  --===*=-- (glob)
 
109
 
 
110
 
 
111
 test inline for single patch (quoted-printable):
 
112
-  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4
 
113
+  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4 | $FILTERBOUNDARY
 
114
   this patch series consists of 1 patches.
 
115
   
 
116
   
 
117
   displaying [PATCH] test ...
 
118
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
119
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
120
   MIME-Version: 1.0
 
121
   Subject: [PATCH] test
 
122
   X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
123
@@ -702,7 +727,7 @@
 
124
   To: foo
 
125
   Cc: bar
 
126
   
 
127
-  --===* (glob)
 
128
+  --===*= (glob)
 
129
   Content-Type: text/x-patch; charset="us-ascii"
 
130
   MIME-Version: 1.0
 
131
   Content-Transfer-Encoding: quoted-printable
 
132
@@ -738,11 +763,11 @@
 
133
   +
 
134
   +bar
 
135
   
 
136
-  --===*-- (glob)
 
137
+  --===*=-- (glob)
 
138
 
 
139
 test inline for multiple patches:
 
140
   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
 
141
-  >  -r 0:1 -r 4
 
142
+  >  -r 0:1 -r 4 | $FILTERBOUNDARY
 
143
   this patch series consists of 3 patches.
 
144
   
 
145
   
 
146
@@ -763,7 +788,7 @@
 
147
   
 
148
   
 
149
   displaying [PATCH 1 of 3] a ...
 
150
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
151
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
152
   MIME-Version: 1.0
 
153
   Subject: [PATCH 1 of 3] a
 
154
   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
155
@@ -776,7 +801,7 @@
 
156
   To: foo
 
157
   Cc: bar
 
158
   
 
159
-  --===* (glob)
 
160
+  --===*= (glob)
 
161
   Content-Type: text/x-patch; charset="us-ascii"
 
162
   MIME-Version: 1.0
 
163
   Content-Transfer-Encoding: 7bit
 
164
@@ -796,9 +821,9 @@
 
165
   @@ -0,0 +1,1 @@
 
166
   +a
 
167
   
 
168
-  --===*-- (glob)
 
169
+  --===*=-- (glob)
 
170
   displaying [PATCH 2 of 3] b ...
 
171
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
172
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
173
   MIME-Version: 1.0
 
174
   Subject: [PATCH 2 of 3] b
 
175
   X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
176
@@ -811,7 +836,7 @@
 
177
   To: foo
 
178
   Cc: bar
 
179
   
 
180
-  --===* (glob)
 
181
+  --===*= (glob)
 
182
   Content-Type: text/x-patch; charset="us-ascii"
 
183
   MIME-Version: 1.0
 
184
   Content-Transfer-Encoding: 7bit
 
185
@@ -831,9 +856,9 @@
 
186
   @@ -0,0 +1,1 @@
 
187
   +b
 
188
   
 
189
-  --===*-- (glob)
 
190
+  --===*=-- (glob)
 
191
   displaying [PATCH 3 of 3] long line ...
 
192
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
193
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
194
   MIME-Version: 1.0
 
195
   Subject: [PATCH 3 of 3] long line
 
196
   X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
197
@@ -846,7 +871,7 @@
 
198
   To: foo
 
199
   Cc: bar
 
200
   
 
201
-  --===* (glob)
 
202
+  --===*= (glob)
 
203
   Content-Type: text/x-patch; charset="us-ascii"
 
204
   MIME-Version: 1.0
 
205
   Content-Transfer-Encoding: quoted-printable
 
206
@@ -882,15 +907,15 @@
 
207
   +
 
208
   +bar
 
209
   
 
210
-  --===*-- (glob)
 
211
+  --===*=-- (glob)
 
212
 
 
213
 test attach for single patch:
 
214
-  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2
 
215
+  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2 | $FILTERBOUNDARY
 
216
   this patch series consists of 1 patches.
 
217
   
 
218
   
 
219
   displaying [PATCH] test ...
 
220
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
221
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
222
   MIME-Version: 1.0
 
223
   Subject: [PATCH] test
 
224
   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
225
@@ -901,7 +926,7 @@
 
226
   To: foo
 
227
   Cc: bar
 
228
   
 
229
-  --===* (glob)
 
230
+  --===*= (glob)
 
231
   Content-Type: text/plain; charset="us-ascii"
 
232
   MIME-Version: 1.0
 
233
   Content-Transfer-Encoding: 7bit
 
234
@@ -910,7 +935,7 @@
 
235
   
 
236
   
 
237
   
 
238
-  --===* (glob)
 
239
+  --===*= (glob)
 
240
   Content-Type: text/x-patch; charset="us-ascii"
 
241
   MIME-Version: 1.0
 
242
   Content-Transfer-Encoding: 7bit
 
243
@@ -930,15 +955,15 @@
 
244
   @@ -0,0 +1,1 @@
 
245
   +c
 
246
   
 
247
-  --===*-- (glob)
 
248
+  --===*=-- (glob)
 
249
 
 
250
 test attach for single patch (quoted-printable):
 
251
-  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4
 
252
+  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4 | $FILTERBOUNDARY
 
253
   this patch series consists of 1 patches.
 
254
   
 
255
   
 
256
   displaying [PATCH] test ...
 
257
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
258
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
259
   MIME-Version: 1.0
 
260
   Subject: [PATCH] test
 
261
   X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
262
@@ -949,7 +974,7 @@
 
263
   To: foo
 
264
   Cc: bar
 
265
   
 
266
-  --===* (glob)
 
267
+  --===*= (glob)
 
268
   Content-Type: text/plain; charset="us-ascii"
 
269
   MIME-Version: 1.0
 
270
   Content-Transfer-Encoding: 7bit
 
271
@@ -958,7 +983,7 @@
 
272
   
 
273
   
 
274
   
 
275
-  --===* (glob)
 
276
+  --===*= (glob)
 
277
   Content-Type: text/x-patch; charset="us-ascii"
 
278
   MIME-Version: 1.0
 
279
   Content-Transfer-Encoding: quoted-printable
 
280
@@ -994,15 +1019,15 @@
 
281
   +
 
282
   +bar
 
283
   
 
284
-  --===*-- (glob)
 
285
+  --===*=-- (glob)
 
286
 
 
287
 test attach and body for single patch:
 
288
-  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a --body -r 2
 
289
+  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a --body -r 2 | $FILTERBOUNDARY
 
290
   this patch series consists of 1 patches.
 
291
   
 
292
   
 
293
   displaying [PATCH] test ...
 
294
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
295
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
296
   MIME-Version: 1.0
 
297
   Subject: [PATCH] test
 
298
   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
299
@@ -1013,7 +1038,7 @@
 
300
   To: foo
 
301
   Cc: bar
 
302
   
 
303
-  --===* (glob)
 
304
+  --===*= (glob)
 
305
   Content-Type: text/plain; charset="us-ascii"
 
306
   MIME-Version: 1.0
 
307
   Content-Transfer-Encoding: 7bit
 
308
@@ -1032,7 +1057,7 @@
 
309
   @@ -0,0 +1,1 @@
 
310
   +c
 
311
   
 
312
-  --===* (glob)
 
313
+  --===*= (glob)
 
314
   Content-Type: text/x-patch; charset="us-ascii"
 
315
   MIME-Version: 1.0
 
316
   Content-Transfer-Encoding: 7bit
 
317
@@ -1052,11 +1077,11 @@
 
318
   @@ -0,0 +1,1 @@
 
319
   +c
 
320
   
 
321
-  --===*-- (glob)
 
322
+  --===*=-- (glob)
 
323
 
 
324
 test attach for multiple patches:
 
325
   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
 
326
-  >  -r 0:1 -r 4
 
327
+  >  -r 0:1 -r 4 | $FILTERBOUNDARY
 
328
   this patch series consists of 3 patches.
 
329
   
 
330
   
 
331
@@ -1077,7 +1102,7 @@
 
332
   
 
333
   
 
334
   displaying [PATCH 1 of 3] a ...
 
335
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
336
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
337
   MIME-Version: 1.0
 
338
   Subject: [PATCH 1 of 3] a
 
339
   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
340
@@ -1090,7 +1115,7 @@
 
341
   To: foo
 
342
   Cc: bar
 
343
   
 
344
-  --===* (glob)
 
345
+  --===*= (glob)
 
346
   Content-Type: text/plain; charset="us-ascii"
 
347
   MIME-Version: 1.0
 
348
   Content-Transfer-Encoding: 7bit
 
349
@@ -1099,7 +1124,7 @@
 
350
   
 
351
   
 
352
   
 
353
-  --===* (glob)
 
354
+  --===*= (glob)
 
355
   Content-Type: text/x-patch; charset="us-ascii"
 
356
   MIME-Version: 1.0
 
357
   Content-Transfer-Encoding: 7bit
 
358
@@ -1119,9 +1144,9 @@
 
359
   @@ -0,0 +1,1 @@
 
360
   +a
 
361
   
 
362
-  --===*-- (glob)
 
363
+  --===*=-- (glob)
 
364
   displaying [PATCH 2 of 3] b ...
 
365
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
366
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
367
   MIME-Version: 1.0
 
368
   Subject: [PATCH 2 of 3] b
 
369
   X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
370
@@ -1134,7 +1159,7 @@
 
371
   To: foo
 
372
   Cc: bar
 
373
   
 
374
-  --===* (glob)
 
375
+  --===*= (glob)
 
376
   Content-Type: text/plain; charset="us-ascii"
 
377
   MIME-Version: 1.0
 
378
   Content-Transfer-Encoding: 7bit
 
379
@@ -1143,7 +1168,7 @@
 
380
   
 
381
   
 
382
   
 
383
-  --===* (glob)
 
384
+  --===*= (glob)
 
385
   Content-Type: text/x-patch; charset="us-ascii"
 
386
   MIME-Version: 1.0
 
387
   Content-Transfer-Encoding: 7bit
 
388
@@ -1163,9 +1188,9 @@
 
389
   @@ -0,0 +1,1 @@
 
390
   +b
 
391
   
 
392
-  --===*-- (glob)
 
393
+  --===*=-- (glob)
 
394
   displaying [PATCH 3 of 3] long line ...
 
395
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
396
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
397
   MIME-Version: 1.0
 
398
   Subject: [PATCH 3 of 3] long line
 
399
   X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
 
400
@@ -1178,7 +1203,7 @@
 
401
   To: foo
 
402
   Cc: bar
 
403
   
 
404
-  --===* (glob)
 
405
+  --===*= (glob)
 
406
   Content-Type: text/plain; charset="us-ascii"
 
407
   MIME-Version: 1.0
 
408
   Content-Transfer-Encoding: 7bit
 
409
@@ -1187,7 +1212,7 @@
 
410
   
 
411
   
 
412
   
 
413
-  --===* (glob)
 
414
+  --===*= (glob)
 
415
   Content-Type: text/x-patch; charset="us-ascii"
 
416
   MIME-Version: 1.0
 
417
   Content-Transfer-Encoding: quoted-printable
 
418
@@ -1223,7 +1248,7 @@
 
419
   +
 
420
   +bar
 
421
   
 
422
-  --===*-- (glob)
 
423
+  --===*=-- (glob)
 
424
 
 
425
 test intro for single patch:
 
426
   $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
 
427
@@ -1485,12 +1510,13 @@
 
428
   $ hg tag -r2 two two.diff
 
429
 
 
430
 test inline for single named patch:
 
431
-  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2
 
432
+  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
 
433
+  >   -r 2 | $FILTERBOUNDARY
 
434
   this patch series consists of 1 patches.
 
435
   
 
436
   
 
437
   displaying [PATCH] test ...
 
438
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
439
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
440
   MIME-Version: 1.0
 
441
   Subject: [PATCH] test
 
442
   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
 
443
@@ -1501,7 +1527,7 @@
 
444
   To: foo
 
445
   Cc: bar
 
446
   
 
447
-  --===* (glob)
 
448
+  --===*= (glob)
 
449
   Content-Type: text/x-patch; charset="us-ascii"
 
450
   MIME-Version: 1.0
 
451
   Content-Transfer-Encoding: 7bit
 
452
@@ -1521,10 +1547,11 @@
 
453
   @@ -0,0 +1,1 @@
 
454
   +c
 
455
   
 
456
-  --===*-- (glob)
 
457
+  --===*=-- (glob)
 
458
 
 
459
 test inline for multiple named/unnamed patches:
 
460
-  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 0:1
 
461
+  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
 
462
+  >    -r 0:1 | $FILTERBOUNDARY
 
463
   this patch series consists of 2 patches.
 
464
   
 
465
   
 
466
@@ -1545,7 +1572,7 @@
 
467
   
 
468
   
 
469
   displaying [PATCH 1 of 2] a ...
 
470
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
471
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
472
   MIME-Version: 1.0
 
473
   Subject: [PATCH 1 of 2] a
 
474
   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
 
475
@@ -1558,7 +1585,7 @@
 
476
   To: foo
 
477
   Cc: bar
 
478
   
 
479
-  --===* (glob)
 
480
+  --===*= (glob)
 
481
   Content-Type: text/x-patch; charset="us-ascii"
 
482
   MIME-Version: 1.0
 
483
   Content-Transfer-Encoding: 7bit
 
484
@@ -1578,9 +1605,9 @@
 
485
   @@ -0,0 +1,1 @@
 
486
   +a
 
487
   
 
488
-  --===*-- (glob)
 
489
+  --===*=-- (glob)
 
490
   displaying [PATCH 2 of 2] b ...
 
491
-  Content-Type: multipart/mixed; boundary="===*" (glob)
 
492
+  Content-Type: multipart/mixed; boundary="===*==" (glob)
 
493
   MIME-Version: 1.0
 
494
   Subject: [PATCH 2 of 2] b
 
495
   X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
 
496
@@ -1593,7 +1620,7 @@
 
497
   To: foo
 
498
   Cc: bar
 
499
   
 
500
-  --===* (glob)
 
501
+  --===*= (glob)
 
502
   Content-Type: text/x-patch; charset="us-ascii"
 
503
   MIME-Version: 1.0
 
504
   Content-Transfer-Encoding: 7bit
 
505
@@ -1613,7 +1640,7 @@
 
506
   @@ -0,0 +1,1 @@
 
507
   +b
 
508
   
 
509
-  --===*-- (glob)
 
510
+  --===*=-- (glob)
 
511
 
 
512
 
 
513
 test inreplyto:
 
514
@@ -1805,9 +1832,11 @@
 
515
   +b
 
516
   
 
517
 
 
518
-test single flag for single patch:
 
519
+test single flag for single patch (and no warning when not mailing dirty rev):
 
520
+  $ hg up -qr1
 
521
+  $ echo dirt > a
 
522
   $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
 
523
-  >  -r 2
 
524
+  >  -r 2 | $FILTERBOUNDARY
 
525
   this patch series consists of 1 patches.
 
526
   
 
527
   
 
528
@@ -1839,7 +1868,7 @@
 
529
   +c
 
530
   
 
531
 
 
532
-test single flag for multiple patches:
 
533
+test single flag for multiple patches (and warning when mailing dirty rev):
 
534
   $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
 
535
   >  -r 0:1
 
536
   this patch series consists of 2 patches.
 
537
@@ -1919,6 +1948,8 @@
 
538
   @@ -0,0 +1,1 @@
 
539
   +b
 
540
   
 
541
+  $ hg revert --no-b a
 
542
+  $ hg up -q
 
543
 
 
544
 test multiple flags for single patch:
 
545
   $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
 
546
@@ -2127,7 +2158,7 @@
 
547
   $ hg ci -md -d '4 0'
 
548
   $ echo d >> d
 
549
   $ hg ci -mdd -d '5 0'
 
550
-  $ hg --config extensions.graphlog= glog --template "{rev}:{node|short} {desc|firstline}\n"
 
551
+  $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
 
552
   @  10:3b6f1ec9dde9 dd
 
553
   |
 
554
   o  9:2f9fa9b998c5 d