comparison tests/test-notify.t @ 37777:a4cac7b0ea4f

notify: add maxdiffstat option to truncate long file lists Large scale changes like a new GCC version can easily result in 1MB+ emails due to diffstat alone. The new maxdiffstat option truncates the list similar to what maxdiff already provides for the diffs. Differential Revision: https://phab.mercurial-scm.org/D3402
author Joerg Sonnenberger <joerg@bec.de>
date Tue, 17 Apr 2018 13:46:18 +0200
parents 4bc983568016
children d1134ca5b1a3
comparison
equal deleted inserted replaced
37776:141017c7f7a9 37777:a4cac7b0ea4f
119 119
120 notify.maxdiff 120 notify.maxdiff
121 Maximum number of diff lines to include in notification email. Set to 0 to 121 Maximum number of diff lines to include in notification email. Set to 0 to
122 disable the diff, or -1 to include all of it. Default: 300. 122 disable the diff, or -1 to include all of it. Default: 300.
123 123
124 notify.maxdiffstat
125 Maximum number of diffstat lines to include in notification email. Set to -1
126 to include all of it. Default: -1.
127
124 notify.maxsubject 128 notify.maxsubject
125 Maximum number of characters in email's subject line. Default: 67. 129 Maximum number of characters in email's subject line. Default: 67.
126 130
127 notify.diffstat 131 notify.diffstat
128 Set to True to include a diffstat before diff content. Default: True. 132 Set to True to include a diffstat before diff content. Default: True.
150 See also "notify.strip". 154 See also "notify.strip".
151 155
152 no commands defined 156 no commands defined
153 $ hg init a 157 $ hg init a
154 $ echo a > a/a 158 $ echo a > a/a
159 $ echo b > a/b
155 160
156 commit 161 commit
157 162
158 $ hg --cwd a commit -Ama -d '0 0' 163 $ hg --cwd a commit -Ama -d '0 0'
159 adding a 164 adding a
160 165 adding b
161 166
162 clone 167 clone
163 168
164 $ hg --traceback clone a b 169 $ hg --traceback clone a b
165 updating to branch default 170 updating to branch default
166 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 171 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
167 $ echo a >> a/a 172 $ echo a >> a/a
173 $ echo b >> a/b
168 174
169 commit 175 commit
170 176
171 $ hg --traceback --cwd a commit -Amb -d '1 0' 177 $ hg --traceback --cwd a commit -Amb -d '1 0'
172 178
185 pulling from ../a 191 pulling from ../a
186 searching for changes 192 searching for changes
187 adding changesets 193 adding changesets
188 adding manifests 194 adding manifests
189 adding file changes 195 adding file changes
190 added 1 changesets with 1 changes to 1 files 196 added 1 changesets with 2 changes to 2 files
191 new changesets 0647d048b600 197 new changesets 00a13f371396
192 MIME-Version: 1.0 198 MIME-Version: 1.0
193 Content-Type: text/plain; charset="us-ascii" 199 Content-Type: text/plain; charset="us-ascii"
194 Content-Transfer-Encoding: 7bit 200 Content-Transfer-Encoding: 7bit
195 Date: * (glob) 201 Date: * (glob)
196 Subject: changeset in $TESTTMP/b: b 202 Subject: changeset in $TESTTMP/b: b
197 From: test 203 From: test
198 X-Hg-Notification: changeset 0647d048b600 204 X-Hg-Notification: changeset 00a13f371396
199 Message-Id: <*> (glob) 205 Message-Id: <*> (glob)
200 To: baz, foo@bar 206 To: baz, foo@bar
201 207
202 changeset 0647d048b600 in $TESTTMP/b 208 changeset 00a13f371396 in $TESTTMP/b
203 details: $TESTTMP/b?cmd=changeset;node=0647d048b600 209 details: $TESTTMP/b?cmd=changeset;node=00a13f371396
204 description: b 210 description: b
205 211
206 diffs (6 lines): 212 diffs (12 lines):
207 213
208 diff -r cb9a9f314b8b -r 0647d048b600 a 214 diff -r 0cd96de13884 -r 00a13f371396 a
209 --- a/a Thu Jan 01 00:00:00 1970 +0000 215 --- a/a Thu Jan 01 00:00:00 1970 +0000
210 +++ b/a Thu Jan 01 00:00:01 1970 +0000 216 +++ b/a Thu Jan 01 00:00:01 1970 +0000
211 @@ -1,1 +1,2 @@ a 217 @@ -1,1 +1,2 @@ a
212 +a 218 +a
219 diff -r 0cd96de13884 -r 00a13f371396 b
220 --- a/b Thu Jan 01 00:00:00 1970 +0000
221 +++ b/b Thu Jan 01 00:00:01 1970 +0000
222 @@ -1,1 +1,2 @@ b
223 +b
213 (run 'hg update' to get a working copy) 224 (run 'hg update' to get a working copy)
214 225
215 $ cat <<EOF >> $HGRCPATH 226 $ cat <<EOF >> $HGRCPATH
216 > [notify] 227 > [notify]
217 > config = `pwd`/.notify.conf 228 > config = `pwd`/.notify.conf
239 pulling from ../a 250 pulling from ../a
240 searching for changes 251 searching for changes
241 adding changesets 252 adding changesets
242 adding manifests 253 adding manifests
243 adding file changes 254 adding file changes
244 added 1 changesets with 1 changes to 1 files 255 added 1 changesets with 2 changes to 2 files
245 new changesets 0647d048b600 256 new changesets 00a13f371396
246 MIME-Version: 1.0 257 MIME-Version: 1.0
247 Content-Type: text/plain; charset="us-ascii" 258 Content-Type: text/plain; charset="us-ascii"
248 Content-Transfer-Encoding: 7bit 259 Content-Transfer-Encoding: 7bit
249 X-Test: foo 260 X-Test: foo
250 Date: * (glob) 261 Date: * (glob)
251 Subject: b 262 Subject: b
252 From: test@test.com 263 From: test@test.com
253 X-Hg-Notification: changeset 0647d048b600 264 X-Hg-Notification: changeset 00a13f371396
254 Message-Id: <*> (glob) 265 Message-Id: <*> (glob)
255 To: baz@test.com, foo@bar 266 To: baz@test.com, foo@bar
256 267
257 changeset 0647d048b600 in b 268 changeset 00a13f371396 in b
258 description: b 269 description: b
259 diffs (6 lines): 270 diffs (12 lines):
260 271
261 diff -r cb9a9f314b8b -r 0647d048b600 a 272 diff -r 0cd96de13884 -r 00a13f371396 a
262 --- a/a Thu Jan 01 00:00:00 1970 +0000 273 --- a/a Thu Jan 01 00:00:00 1970 +0000
263 +++ b/a Thu Jan 01 00:00:01 1970 +0000 274 +++ b/a Thu Jan 01 00:00:01 1970 +0000
264 @@ -1,1 +1,2 @@ a 275 @@ -1,1 +1,2 @@ a
265 +a 276 +a
277 diff -r 0cd96de13884 -r 00a13f371396 b
278 --- a/b Thu Jan 01 00:00:00 1970 +0000
279 +++ b/b Thu Jan 01 00:00:01 1970 +0000
280 @@ -1,1 +1,2 @@ b
281 +b
266 (run 'hg update' to get a working copy) 282 (run 'hg update' to get a working copy)
267 283
268 $ cat << EOF >> $HGRCPATH 284 $ cat << EOF >> $HGRCPATH
269 > [hooks] 285 > [hooks]
270 > incoming.notify = python:hgext.notify.hook 286 > incoming.notify = python:hgext.notify.hook
276 292
277 pull 293 pull
278 294
279 $ hg --cwd b rollback 295 $ hg --cwd b rollback
280 repository tip rolled back to revision 0 (undo pull) 296 repository tip rolled back to revision 0 (undo pull)
281 $ hg --traceback --cwd b pull ../a | $PYTHON $TESTTMP/filter.py 297 $ hg --traceback --config notify.maxdiffstat=1 --cwd b pull ../a | $PYTHON $TESTTMP/filter.py
282 pulling from ../a 298 pulling from ../a
283 searching for changes 299 searching for changes
284 adding changesets 300 adding changesets
285 adding manifests 301 adding manifests
286 adding file changes 302 adding file changes
287 added 1 changesets with 1 changes to 1 files 303 added 1 changesets with 2 changes to 2 files
288 new changesets 0647d048b600 304 new changesets 00a13f371396
289 MIME-Version: 1.0 305 MIME-Version: 1.0
290 Content-Type: text/plain; charset="us-ascii" 306 Content-Type: text/plain; charset="us-ascii"
291 Content-Transfer-Encoding: 7bit 307 Content-Transfer-Encoding: 7bit
292 X-Test: foo 308 X-Test: foo
293 Date: * (glob) 309 Date: * (glob)
294 Subject: b 310 Subject: b
295 From: test@test.com 311 From: test@test.com
296 X-Hg-Notification: changeset 0647d048b600 312 X-Hg-Notification: changeset 00a13f371396
297 Message-Id: <*> (glob) 313 Message-Id: <*> (glob)
298 To: baz@test.com, foo@bar 314 To: baz@test.com, foo@bar
299 315
300 changeset 0647d048b600 in b 316 changeset 00a13f371396 in b
301 description: b 317 description: b
302 diffstat: 318 diffstat (truncated from 2 to 1 lines):
303 a | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 319 a | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
304 320
305 diffs (6 lines): 321 diffs (12 lines):
306 322
307 diff -r cb9a9f314b8b -r 0647d048b600 a 323 diff -r 0cd96de13884 -r 00a13f371396 a
308 --- a/a Thu Jan 01 00:00:00 1970 +0000 324 --- a/a Thu Jan 01 00:00:00 1970 +0000
309 +++ b/a Thu Jan 01 00:00:01 1970 +0000 325 +++ b/a Thu Jan 01 00:00:01 1970 +0000
310 @@ -1,1 +1,2 @@ a 326 @@ -1,1 +1,2 @@ a
311 +a 327 +a
328 diff -r 0cd96de13884 -r 00a13f371396 b
329 --- a/b Thu Jan 01 00:00:00 1970 +0000
330 +++ b/b Thu Jan 01 00:00:01 1970 +0000
331 @@ -1,1 +1,2 @@ b
332 +b
312 (run 'hg update' to get a working copy) 333 (run 'hg update' to get a working copy)
313 334
314 test merge 335 test merge
315 336
316 $ cd a 337 $ cd a
317 $ hg up -C 0 338 $ hg up -C 0
318 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 339 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
319 $ echo a >> a 340 $ echo a >> a
320 $ hg ci -Am adda2 -d '2 0' 341 $ hg ci -Am adda2 -d '2 0'
321 created new head 342 created new head
322 $ hg merge 343 $ hg merge
323 0 files updated, 0 files merged, 0 files removed, 0 files unresolved 344 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
324 (branch merge, don't forget to commit) 345 (branch merge, don't forget to commit)
325 $ hg ci -m merge -d '3 0' 346 $ hg ci -m merge -d '3 0'
326 $ cd .. 347 $ cd ..
327 $ hg --traceback --cwd b pull ../a | $PYTHON $TESTTMP/filter.py 348 $ hg --traceback --cwd b pull ../a | $PYTHON $TESTTMP/filter.py
328 pulling from ../a 349 pulling from ../a
329 searching for changes 350 searching for changes
330 adding changesets 351 adding changesets
331 adding manifests 352 adding manifests
332 adding file changes 353 adding file changes
333 added 2 changesets with 0 changes to 0 files 354 added 2 changesets with 0 changes to 0 files
334 new changesets 0a184ce6067f:6a0cf76b2701 355 new changesets 3332653e1f3c:fccf66cd0c35
335 MIME-Version: 1.0 356 MIME-Version: 1.0
336 Content-Type: text/plain; charset="us-ascii" 357 Content-Type: text/plain; charset="us-ascii"
337 Content-Transfer-Encoding: 7bit 358 Content-Transfer-Encoding: 7bit
338 X-Test: foo 359 X-Test: foo
339 Date: * (glob) 360 Date: * (glob)
340 Subject: adda2 361 Subject: adda2
341 From: test@test.com 362 From: test@test.com
342 X-Hg-Notification: changeset 0a184ce6067f 363 X-Hg-Notification: changeset 3332653e1f3c
343 Message-Id: <*> (glob) 364 Message-Id: <*> (glob)
344 To: baz@test.com, foo@bar 365 To: baz@test.com, foo@bar
345 366
346 changeset 0a184ce6067f in b 367 changeset 3332653e1f3c in b
347 description: adda2 368 description: adda2
348 diffstat: 369 diffstat:
349 a | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 370 a | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
350 371
351 diffs (6 lines): 372 diffs (6 lines):
352 373
353 diff -r cb9a9f314b8b -r 0a184ce6067f a 374 diff -r 0cd96de13884 -r 3332653e1f3c a
354 --- a/a Thu Jan 01 00:00:00 1970 +0000 375 --- a/a Thu Jan 01 00:00:00 1970 +0000
355 +++ b/a Thu Jan 01 00:00:02 1970 +0000 376 +++ b/a Thu Jan 01 00:00:02 1970 +0000
356 @@ -1,1 +1,2 @@ a 377 @@ -1,1 +1,2 @@ a
357 +a 378 +a
358 MIME-Version: 1.0 379 MIME-Version: 1.0
360 Content-Transfer-Encoding: 7bit 381 Content-Transfer-Encoding: 7bit
361 X-Test: foo 382 X-Test: foo
362 Date: * (glob) 383 Date: * (glob)
363 Subject: merge 384 Subject: merge
364 From: test@test.com 385 From: test@test.com
365 X-Hg-Notification: changeset 6a0cf76b2701 386 X-Hg-Notification: changeset fccf66cd0c35
366 Message-Id: <*> (glob) 387 Message-Id: <*> (glob)
367 To: baz@test.com, foo@bar 388 To: baz@test.com, foo@bar
368 389
369 changeset 6a0cf76b2701 in b 390 changeset fccf66cd0c35 in b
370 description: merge 391 description: merge
392 diffstat:
393 b | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
394
395 diffs (6 lines):
396
397 diff -r 3332653e1f3c -r fccf66cd0c35 b
398 --- a/b Thu Jan 01 00:00:02 1970 +0000
399 +++ b/b Thu Jan 01 00:00:03 1970 +0000
400 @@ -1,1 +1,2 @@ b
401 +b
371 (run 'hg update' to get a working copy) 402 (run 'hg update' to get a working copy)
372 403
373 non-ascii content and truncation of multi-byte subject 404 non-ascii content and truncation of multi-byte subject
374 405
375 $ cat <<EOF >> $HGRCPATH 406 $ cat <<EOF >> $HGRCPATH
385 searching for changes 416 searching for changes
386 adding changesets 417 adding changesets
387 adding manifests 418 adding manifests
388 adding file changes 419 adding file changes
389 added 1 changesets with 1 changes to 1 files 420 added 1 changesets with 1 changes to 1 files
390 new changesets 7ea05ad269dc 421 new changesets 0f25f9c22b4c
391 MIME-Version: 1.0 422 MIME-Version: 1.0
392 Content-Type: text/plain; charset="us-ascii" 423 Content-Type: text/plain; charset="us-ascii"
393 Content-Transfer-Encoding: 8bit 424 Content-Transfer-Encoding: 8bit
394 X-Test: foo 425 X-Test: foo
395 Date: * (glob) 426 Date: * (glob)
396 Subject: \xc3\xa0... (esc) 427 Subject: \xc3\xa0... (esc)
397 From: test@test.com 428 From: test@test.com
398 X-Hg-Notification: changeset 7ea05ad269dc 429 X-Hg-Notification: changeset 0f25f9c22b4c
399 Message-Id: <*> (glob) 430 Message-Id: <*> (glob)
400 To: baz@test.com, foo@bar 431 To: baz@test.com, foo@bar
401 432
402 changeset 7ea05ad269dc in b 433 changeset 0f25f9c22b4c in b
403 description: \xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3\xc3\xa4 (esc) 434 description: \xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3\xc3\xa4 (esc)
404 diffstat: 435 diffstat:
405 a | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 436 a | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
406 437
407 diffs (7 lines): 438 diffs (7 lines):
408 439
409 diff -r 6a0cf76b2701 -r 7ea05ad269dc a 440 diff -r fccf66cd0c35 -r 0f25f9c22b4c a
410 --- a/a Thu Jan 01 00:00:03 1970 +0000 441 --- a/a Thu Jan 01 00:00:03 1970 +0000
411 +++ b/a Thu Jan 01 00:00:00 1970 +0000 442 +++ b/a Thu Jan 01 00:00:00 1970 +0000
412 @@ -1,2 +1,3 @@ a a 443 @@ -1,2 +1,3 @@ a a
413 +a 444 +a
414 (run 'hg update' to get a working copy) 445 (run 'hg update' to get a working copy)
428 searching for changes 459 searching for changes
429 adding changesets 460 adding changesets
430 adding manifests 461 adding manifests
431 adding file changes 462 adding file changes
432 added 1 changesets with 1 changes to 1 files 463 added 1 changesets with 1 changes to 1 files
433 new changesets a323cae54f6e 464 new changesets a846b5f6ebb7
434 notify: sending 2 subscribers 1 changes 465 notify: sending 2 subscribers 1 changes
435 (run 'hg update' to get a working copy) 466 (run 'hg update' to get a working copy)
436 $ $PYTHON $TESTTMP/filter.py < b/mbox 467 $ $PYTHON $TESTTMP/filter.py < b/mbox
437 From test@test.com ... ... .. ..:..:.. .... (re) 468 From test@test.com ... ... .. ..:..:.. .... (re)
438 MIME-Version: 1.0 469 MIME-Version: 1.0
440 Content-Transfer-Encoding: quoted-printable 471 Content-Transfer-Encoding: quoted-printable
441 X-Test: foo 472 X-Test: foo
442 Date: * (glob) 473 Date: * (glob)
443 Subject: long line 474 Subject: long line
444 From: test@test.com 475 From: test@test.com
445 X-Hg-Notification: changeset a323cae54f6e 476 X-Hg-Notification: changeset a846b5f6ebb7
446 Message-Id: <hg.a323cae54f6e.*.*@*> (glob) 477 Message-Id: <hg.a846b5f6ebb7.*.*@*> (glob)
447 To: baz@test.com, foo@bar 478 To: baz@test.com, foo@bar
448 479
449 changeset a323cae54f6e in b 480 changeset a846b5f6ebb7 in b
450 description: long line 481 description: long line
451 diffstat: 482 diffstat:
452 a | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 483 a | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
453 484
454 diffs (8 lines): 485 diffs (8 lines):
455 486
456 diff -r 7ea05ad269dc -r a323cae54f6e a 487 diff -r 0f25f9c22b4c -r a846b5f6ebb7 a
457 --- a/a Thu Jan 01 00:00:00 1970 +0000 488 --- a/a Thu Jan 01 00:00:00 1970 +0000
458 +++ b/a Thu Jan 01 00:00:00 1970 +0000 489 +++ b/a Thu Jan 01 00:00:00 1970 +0000
459 @@ -1,3 +1,4 @@ a a a 490 @@ -1,3 +1,4 @@ a a a
460 +nonononononononononononononononononononononononononononononononononononono= 491 +nonononononononononononononononononononononononononononononononononononono=
461 nononononononononononononononononononononononononononononononononononononon= 492 nononononononononononononononononononononononononononononononononononononon=
498 searching for changes 529 searching for changes
499 adding changesets 530 adding changesets
500 adding manifests 531 adding manifests
501 adding file changes 532 adding file changes
502 added 1 changesets with 1 changes to 1 files 533 added 1 changesets with 1 changes to 1 files
503 new changesets b7cf10b2bdec 534 new changesets f7e5aaed4080
504 MIME-Version: 1.0 535 MIME-Version: 1.0
505 Content-Type: text/plain; charset="us-ascii" 536 Content-Type: text/plain; charset="us-ascii"
506 Content-Transfer-Encoding: 7bit 537 Content-Transfer-Encoding: 7bit
507 X-Test: foo 538 X-Test: foo
508 Date: * (glob) 539 Date: * (glob)
509 Subject: test 540 Subject: test
510 From: test@test.com 541 From: test@test.com
511 X-Hg-Notification: changeset b7cf10b2bdec 542 X-Hg-Notification: changeset f7e5aaed4080
512 Message-Id: <hg.b7cf10b2bdec.*.*@*> (glob) 543 Message-Id: <hg.f7e5aaed4080.*.*@*> (glob)
513 To: baz@test.com, foo@bar, notify@example.com 544 To: baz@test.com, foo@bar, notify@example.com
514 545
515 changeset b7cf10b2bdec in b 546 changeset f7e5aaed4080 in b
516 description: test 547 description: test
517 (run 'hg update' to get a working copy) 548 (run 'hg update' to get a working copy)
518 549
519 revset selection: don't send to address that waits for mails 550 revset selection: don't send to address that waits for mails
520 from different branch 551 from different branch
528 searching for changes 559 searching for changes
529 adding changesets 560 adding changesets
530 adding manifests 561 adding manifests
531 adding file changes 562 adding file changes
532 added 1 changesets with 0 changes to 0 files (+1 heads) 563 added 1 changesets with 0 changes to 0 files (+1 heads)
533 new changesets 5a07df312a79 564 new changesets 645eb6690ecf
534 MIME-Version: 1.0 565 MIME-Version: 1.0
535 Content-Type: text/plain; charset="us-ascii" 566 Content-Type: text/plain; charset="us-ascii"
536 Content-Transfer-Encoding: 7bit 567 Content-Transfer-Encoding: 7bit
537 X-Test: foo 568 X-Test: foo
538 Date: * (glob) 569 Date: * (glob)
539 Subject: test 570 Subject: test
540 From: test@test.com 571 From: test@test.com
541 X-Hg-Notification: changeset 5a07df312a79 572 X-Hg-Notification: changeset 645eb6690ecf
542 Message-Id: <hg.5a07df312a79.*.*@*> (glob) 573 Message-Id: <hg.645eb6690ecf.*.*@*> (glob)
543 To: baz@test.com, foo@bar 574 To: baz@test.com, foo@bar
544 575
545 changeset 5a07df312a79 in b 576 changeset 645eb6690ecf in b
546 description: test 577 description: test
547 (run 'hg heads' to see heads) 578 (run 'hg heads' to see heads)
548 579
549 default template: 580 default template:
550 581
557 Content-Type: text/plain; charset="us-ascii" 588 Content-Type: text/plain; charset="us-ascii"
558 Content-Transfer-Encoding: 7bit 589 Content-Transfer-Encoding: 7bit
559 Date: * (glob) 590 Date: * (glob)
560 Subject: changeset in b: default template 591 Subject: changeset in b: default template
561 From: test@test.com 592 From: test@test.com
562 X-Hg-Notification: changeset f5e8ec95bf59 593 X-Hg-Notification: changeset 5cd4346eed47
563 Message-Id: <hg.f5e8ec95bf59.*.*@*> (glob) 594 Message-Id: <hg.5cd4346eed47.*.*@*> (glob)
564 To: baz@test.com, foo@bar 595 To: baz@test.com, foo@bar
565 596
566 changeset f5e8ec95bf59 in $TESTTMP/b 597 changeset 5cd4346eed47 in $TESTTMP/b
567 details: http://test/b?cmd=changeset;node=f5e8ec95bf59 598 details: http://test/b?cmd=changeset;node=5cd4346eed47
568 description: default template 599 description: default template
569 600
570 with style: 601 with style:
571 602
572 $ cat <<EOF > notifystyle.map 603 $ cat <<EOF > notifystyle.map
586 Content-Type: text/plain; charset="us-ascii" 617 Content-Type: text/plain; charset="us-ascii"
587 Content-Transfer-Encoding: 7bit 618 Content-Transfer-Encoding: 7bit
588 Date: * (glob) 619 Date: * (glob)
589 Subject: with style 620 Subject: with style
590 From: test@test.com 621 From: test@test.com
591 X-Hg-Notification: changeset 9e2c3a8e9c43 622 X-Hg-Notification: changeset ec8d9d852f56
592 Message-Id: <hg.9e2c3a8e9c43.*.*@*> (glob) 623 Message-Id: <hg.ec8d9d852f56.*.*@*> (glob)
593 To: baz@test.com, foo@bar 624 To: baz@test.com, foo@bar
594 625
595 changeset 9e2c3a8e9c43 626 changeset ec8d9d852f56
596 627
597 with template (overrides style): 628 with template (overrides style):
598 629
599 $ cat <<EOF >> $HGRCPATH 630 $ cat <<EOF >> $HGRCPATH
600 > template = Subject: {node|short}: {desc|firstline|strip} 631 > template = Subject: {node|short}: {desc|firstline|strip}
607 $ hg --cwd b pull ../a -q | $PYTHON $TESTTMP/filter.py 638 $ hg --cwd b pull ../a -q | $PYTHON $TESTTMP/filter.py
608 MIME-Version: 1.0 639 MIME-Version: 1.0
609 Content-Type: text/plain; charset="us-ascii" 640 Content-Type: text/plain; charset="us-ascii"
610 Content-Transfer-Encoding: 7bit 641 Content-Transfer-Encoding: 7bit
611 Date: * (glob) 642 Date: * (glob)
612 Subject: e2cbf5bf18a7: with template 643 Subject: 14721b538ae3: with template
613 From: test@test.com 644 From: test@test.com
614 X-Hg-Notification: changeset e2cbf5bf18a7 645 X-Hg-Notification: changeset 14721b538ae3
615 Message-Id: <hg.e2cbf5bf18a7.*.*@*> (glob) 646 Message-Id: <hg.14721b538ae3.*.*@*> (glob)
616 To: baz@test.com, foo@bar 647 To: baz@test.com, foo@bar
617 648
618 with template 649 with template