tests/test-patchbomb.t
author Pierre-Yves David <pierre-yves.david@fb.com>
Tue, 02 Dec 2014 17:24:52 -0800
changeset 23487 c14af817ab76
parent 23450 a074eeeabe32
child 23488 11b215731e74
permissions -rw-r--r--
patchbomb: add a 'patchbomb.intro' option This option allows the user to control the default behavior for including an introduction message. This avoids having to tirelessly skip the intro for people contributing to Mercurial. The three possibles values are: - always, - auto (default, current behavior), - never. I was thinking of ("true", "false", "") (empty value being auto) but I ruled it out as too confusing. This new config option reuses the pre-existing 'patchbomb' section.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
     1
Note for future hackers of patchbomb: this file is a bit heavy on
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
     2
wildcards in test expectations due to how many things like hostnames
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
     3
tend to make it into outputs. As a result, you may need to perform the
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
     4
following regular expression substitutions:
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
     5
@$HOSTNAME> -> @*> (glob)
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
     6
Mercurial-patchbomb/.* -> Mercurial-patchbomb/* (glob)
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
     7
/mixed; boundary="===+[0-9]+==" -> /mixed; boundary="===*== (glob)"
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
     8
--===+[0-9]+=+--$ -> --===*=-- (glob)
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
     9
--===+[0-9]+=+$ -> --===*= (glob)
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
    10
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    11
  $ cat > prune-blank-after-boundary.py <<EOF
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    12
  > import sys
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    13
  > skipblank = False
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    14
  > trim = lambda x: x.strip(' \r\n')
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    15
  > for l in sys.stdin:
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    16
  >     if trim(l).endswith('=--') or trim(l).endswith('=='):
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    17
  >         skipblank = True
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    18
  >         print l,
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    19
  >         continue
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    20
  >     if not trim(l) and skipblank:
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    21
  >         continue
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    22
  >     skipblank = False
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    23
  >     print l,
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    24
  > EOF
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
    25
  $ FILTERBOUNDARY="python `pwd`/prune-blank-after-boundary.py"
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    26
  $ echo "[extensions]" >> $HGRCPATH
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    27
  $ echo "patchbomb=" >> $HGRCPATH
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    28
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    29
  $ hg init t
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    30
  $ cd t
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    31
  $ echo a > a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    32
  $ hg commit -Ama -d '1 0'
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    33
  adding a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    34
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    35
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
    36
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    37
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    38
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
    39
  displaying [PATCH] a ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    40
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    41
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    42
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    43
  Subject: [PATCH] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    44
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
    45
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
    46
  X-Mercurial-Series-Total: 1
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
    47
  Message-Id: <8580ff50825a50c8f716.60@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
    48
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
    49
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    50
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    51
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    52
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    53
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    54
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    55
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    56
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    57
  # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
    58
  #      Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    59
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    60
  # Parent  0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    61
  a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    62
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    63
  diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    64
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    65
  +++ b/a	Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    66
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    67
  +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    68
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
    69
12201
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    70
  $ hg --config ui.interactive=1 email --confirm -n -f quux -t foo -c bar -r tip<<EOF
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    71
  > n
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    72
  > EOF
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
    73
  this patch series consists of 1 patches.
12201
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    74
  
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    75
  
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    76
  Final summary:
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    77
  
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    78
  From: quux
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    79
  To: foo
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    80
  Cc: bar
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    81
  Subject: [PATCH] a
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    82
   a |  1 +
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    83
   1 files changed, 1 insertions(+), 0 deletions(-)
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    84
  
22589
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22071
diff changeset
    85
  are you sure you want to send (yn)? n
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22071
diff changeset
    86
  abort: patchbomb canceled
12316
4134686b83e1 tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents: 12201
diff changeset
    87
  [255]
12201
5bfa45651cf6 patchbomb: add --confirm option to show series details and ask for confirmation
Christian Ebert <blacktrash@gmx.net>
parents: 12200
diff changeset
    88
23450
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
    89
Test diff.git is respected
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
    90
  $ hg --config diff.git=True email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
    91
  this patch series consists of 1 patches.
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
    92
  
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
    93
  
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
    94
  displaying [PATCH] a ...
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
    95
  Content-Type: text/plain; charset="us-ascii"
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
    96
  MIME-Version: 1.0
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
    97
  Content-Transfer-Encoding: 7bit
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
    98
  Subject: [PATCH] a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
    99
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   100
  X-Mercurial-Series-Index: 1
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   101
  X-Mercurial-Series-Total: 1
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   102
  Message-Id: <8580ff50825a50c8f716.60@*> (glob)
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   103
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   104
  User-Agent: Mercurial-patchbomb/* (glob)
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   105
  Date: Thu, 01 Jan 1970 00:01:00 +0000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   106
  From: quux
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   107
  To: foo
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   108
  Cc: bar
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   109
  
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   110
  # HG changeset patch
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   111
  # User test
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   112
  # Date 1 0
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   113
  #      Thu Jan 01 00:00:01 1970 +0000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   114
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   115
  # Parent  0000000000000000000000000000000000000000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   116
  a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   117
  
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   118
  diff --git a/a b/a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   119
  new file mode 100644
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   120
  --- /dev/null
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   121
  +++ b/a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   122
  @@ -0,0 +1,1 @@
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   123
  +a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   124
  
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   125
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   126
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   127
Test breaking format changes aren't
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   128
  $ hg --config diff.noprefix=True email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   129
  this patch series consists of 1 patches.
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   130
  
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   131
  
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   132
  displaying [PATCH] a ...
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   133
  Content-Type: text/plain; charset="us-ascii"
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   134
  MIME-Version: 1.0
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   135
  Content-Transfer-Encoding: 7bit
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   136
  Subject: [PATCH] a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   137
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   138
  X-Mercurial-Series-Index: 1
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   139
  X-Mercurial-Series-Total: 1
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   140
  Message-Id: <8580ff50825a50c8f716.60@*> (glob)
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   141
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   142
  User-Agent: Mercurial-patchbomb/* (glob)
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   143
  Date: Thu, 01 Jan 1970 00:01:00 +0000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   144
  From: quux
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   145
  To: foo
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   146
  Cc: bar
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   147
  
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   148
  # HG changeset patch
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   149
  # User test
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   150
  # Date 1 0
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   151
  #      Thu Jan 01 00:00:01 1970 +0000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   152
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   153
  # Parent  0000000000000000000000000000000000000000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   154
  a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   155
  
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   156
  diff -r 000000000000 -r 8580ff50825a a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   157
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   158
  +++ b/a	Thu Jan 01 00:00:01 1970 +0000
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   159
  @@ -0,0 +1,1 @@
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   160
  +a
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   161
  
a074eeeabe32 patchbomb: don't honor whitespace and format-changing diffopts (BC)
Siddharth Agarwal <sid0@fb.com>
parents: 22947
diff changeset
   162
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   163
  $ echo b > b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   164
  $ hg commit -Amb -d '2 0'
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   165
  adding b
4420
b0656b33cc02 add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
   166
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   167
  $ hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test -r 0:tip
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   168
  this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   169
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   170
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   171
  Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   172
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   173
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   174
  displaying [PATCH 0 of 2] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   175
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   176
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   177
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   178
  Subject: [PATCH 0 of 2] test
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   179
  Message-Id: <patchbomb.120@*> (glob)
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
   180
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   181
  Date: Thu, 01 Jan 1970 00:02:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   182
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   183
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   184
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   185
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   186
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   187
  displaying [PATCH 1 of 2] a ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   188
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   189
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   190
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   191
  Subject: [PATCH 1 of 2] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   192
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   193
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   194
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   195
  Message-Id: <8580ff50825a50c8f716.121@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
   196
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.121@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   197
  In-Reply-To: <patchbomb.120@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   198
  References: <patchbomb.120@*> (glob)
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
   199
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   200
  Date: Thu, 01 Jan 1970 00:02:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   201
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   202
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   203
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   204
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   205
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   206
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   207
  # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   208
  #      Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   209
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   210
  # Parent  0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   211
  a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   212
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   213
  diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   214
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   215
  +++ b/a	Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   216
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   217
  +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   218
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   219
  displaying [PATCH 2 of 2] b ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   220
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   221
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   222
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   223
  Subject: [PATCH 2 of 2] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   224
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   225
  X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   226
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   227
  Message-Id: <97d72e5f12c7e84f8506.122@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
   228
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.121@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   229
  In-Reply-To: <patchbomb.120@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   230
  References: <patchbomb.120@*> (glob)
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
   231
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   232
  Date: Thu, 01 Jan 1970 00:02:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   233
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   234
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   235
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   236
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   237
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   238
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   239
  # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   240
  #      Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   241
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   242
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   243
  b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   244
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   245
  diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   246
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   247
  +++ b/b	Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   248
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   249
  +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   250
  
5753
ea1016b32e94 patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents: 4597
diff changeset
   251
13198
e71b2aa74ce3 patchbomb: save introductory message in .hg/last-email.txt
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 12942
diff changeset
   252
.hg/last-email.txt
e71b2aa74ce3 patchbomb: save introductory message in .hg/last-email.txt
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 12942
diff changeset
   253
16901
5b89700cce30 tests: consistently use a HGEDITOR pattern that works with msys on windows
Mads Kiilerich <mads@kiilerich.com>
parents: 16351
diff changeset
   254
  $ cat > editor.sh << '__EOF__'
13198
e71b2aa74ce3 patchbomb: save introductory message in .hg/last-email.txt
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 12942
diff changeset
   255
  > echo "a precious introductory message" > "$1"
e71b2aa74ce3 patchbomb: save introductory message in .hg/last-email.txt
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 12942
diff changeset
   256
  > __EOF__
16901
5b89700cce30 tests: consistently use a HGEDITOR pattern that works with msys on windows
Mads Kiilerich <mads@kiilerich.com>
parents: 16351
diff changeset
   257
  $ HGEDITOR="\"sh\" \"`pwd`/editor.sh\"" hg email -n -t foo -s test -r 0:tip > /dev/null
13198
e71b2aa74ce3 patchbomb: save introductory message in .hg/last-email.txt
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 12942
diff changeset
   258
  $ cat .hg/last-email.txt
e71b2aa74ce3 patchbomb: save introductory message in .hg/last-email.txt
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 12942
diff changeset
   259
  a precious introductory message
e71b2aa74ce3 patchbomb: save introductory message in .hg/last-email.txt
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 12942
diff changeset
   260
12845
685d884fd2b6 test-patchbomb: add test for progress support (1ed2dc9d4368)
Yuya Nishihara <yuya@tcha.org>
parents: 12376
diff changeset
   261
  $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip \
685d884fd2b6 test-patchbomb: add test for progress support (1ed2dc9d4368)
Yuya Nishihara <yuya@tcha.org>
parents: 12376
diff changeset
   262
  > --config extensions.progress= --config progress.assume-tty=1 \
14101
0c5228836fcd test-patchbomb.t: clean up progress tests
Augie Fackler <durin42@gmail.com>
parents: 13439
diff changeset
   263
  > --config progress.delay=0 --config progress.refresh=0 \
17743
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   264
  > --config progress.width=60
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   265
  this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   266
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   267
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   268
  Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   269
  
17743
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   270
  \r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   271
  sending [                                             ] 0/3\r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   272
  sending [                                             ] 0/3\r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   273
                                                              \r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   274
  \r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   275
                                                              \r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   276
  \r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   277
  sending [==============>                              ] 1/3\r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   278
  sending [==============>                              ] 1/3\r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   279
                                                              \r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   280
  \r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   281
                                                              \r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   282
  \r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   283
  sending [=============================>               ] 2/3\r (no-eol) (esc)
6047947afb6b tests: drop filtercr.py and use the very explicit '\r (no-eol) (esc)' markup
Mads Kiilerich <mads@kiilerich.com>
parents: 17502
diff changeset
   284
  sending [=============================>               ] 2/3\r (no-eol) (esc)
14101
0c5228836fcd test-patchbomb.t: clean up progress tests
Augie Fackler <durin42@gmail.com>
parents: 13439
diff changeset
   285
                                                              \r (esc)
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   286
  sending [PATCH 0 of 2] test ...
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   287
  sending [PATCH 1 of 2] a ...
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   288
  sending [PATCH 2 of 2] b ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   289
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   290
  $ cd ..
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   291
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   292
  $ hg clone -q t t2
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   293
  $ cd t2
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   294
  $ echo c > c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   295
  $ hg commit -Amc -d '3 0'
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   296
  adding c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   297
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   298
  $ cat > description <<EOF
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   299
  > a multiline
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   300
  > 
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   301
  > description
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   302
  > EOF
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   303
4420
b0656b33cc02 add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
   304
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   305
test bundle and description:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   306
  $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
   307
  >  -c bar -s test -r tip -b --desc description | $FILTERBOUNDARY
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   308
  searching for changes
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   309
  1 changesets found
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   310
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   311
  displaying test ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   312
  Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   313
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   314
  Subject: test
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   315
  Message-Id: <patchbomb.180@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   316
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   317
  Date: Thu, 01 Jan 1970 00:03:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   318
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   319
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   320
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   321
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   322
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   323
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   324
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   325
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   326
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   327
  a multiline
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   328
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   329
  description
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   330
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   331
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   332
  Content-Type: application/x-mercurial-bundle
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   333
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   334
  Content-Disposition: attachment; filename="bundle.hg"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   335
  Content-Transfer-Encoding: base64
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   336
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   337
  SEcxMEJaaDkxQVkmU1nvR7I3AAAN////lFYQWj1/4HwRkdC/AywIAk0E4pfoSIIIgQCgGEQOcLAA
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   338
  2tA1VPyp4mkeoG0EaaPU0GTT1GjRiNPIg9CZGBqZ6UbU9J+KFU09DNUaGgAAAAAANAGgAAAAA1U8
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   339
  oGgAADQGgAANNANAAAAAAZipFLz3XoakCEQB3PVPyHJVi1iYkAAKQAZQGpQGZESInRnCFMqLDla2
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   340
  Bx3qfRQeA2N4lnzKkAmP8kR2asievLLXXebVU8Vg4iEBqcJNJAxIapSU6SM4888ZAciRG6MYAIEE
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   341
  SlIBpFisgGkyRjX//TMtfcUAEsGu56+YnE1OlTZmzKm8BSu2rvo4rHAYYaadIFFuTy0LYgIkgLVD
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   342
  sgVa2F19D1tx9+hgbAygLgQwaIqcDdgA4BjQgIiz/AEP72++llgDKhKducqodGE4B0ETqF3JFOFC
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   343
  Q70eyNw=
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   344
  --===*=-- (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   345
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   346
utf-8 patch:
22947
c63a09b6b337 tests: use $PYTHON instead of hardcoding python
Augie Fackler <raf@durin42.com>
parents: 22589
diff changeset
   347
  $ $PYTHON -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();'
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   348
  $ hg commit -A -d '4 0' -m 'utf-8 content'
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   349
  adding description
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   350
  adding utf
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   351
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   352
no mime encoding for email --test:
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   353
  $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   354
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   355
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   356
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   357
  displaying [PATCH] utf-8 content ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   358
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   359
  MIME-Version: 1.0
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   360
  Content-Transfer-Encoding: 8bit
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   361
  Subject: [PATCH] utf-8 content
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   362
  X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   363
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   364
  X-Mercurial-Series-Total: 1
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   365
  Message-Id: <909a00e13e9d78b575ae.240@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
   366
  X-Mercurial-Series-Id: <909a00e13e9d78b575ae.240@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   367
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   368
  Date: Thu, 01 Jan 1970 00:04:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   369
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   370
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   371
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   372
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   373
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   374
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   375
  # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   376
  #      Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   377
  # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   378
  # Parent  ff2c9fa2018b15fa74b33363bda9527323e2a99f
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   379
  utf-8 content
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   380
  
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   381
  diff -r ff2c9fa2018b -r 909a00e13e9d description
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   382
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   383
  +++ b/description	Thu Jan 01 00:00:04 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   384
  @@ -0,0 +1,3 @@
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   385
  +a multiline
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   386
  +
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   387
  +description
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   388
  diff -r ff2c9fa2018b -r 909a00e13e9d utf
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   389
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   390
  +++ b/utf	Thu Jan 01 00:00:04 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   391
  @@ -0,0 +1,1 @@
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   392
  +h\xc3\xb6mma! (esc)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   393
  
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   394
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   395
mime encoded mbox (base64):
15559
1830d0cc4bc1 patchbomb: minor refactoring of mbox functionality, preparing for move
Mads Kiilerich <mads@kiilerich.com>
parents: 15547
diff changeset
   396
  $ hg email --date '1970-1-1 0:4' -f 'Q <quux>' -t foo -c bar -r tip -m mbox
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   397
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   398
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   399
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   400
  sending [PATCH] utf-8 content ...
4420
b0656b33cc02 add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
   401
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   402
  $ cat mbox
15559
1830d0cc4bc1 patchbomb: minor refactoring of mbox functionality, preparing for move
Mads Kiilerich <mads@kiilerich.com>
parents: 15547
diff changeset
   403
  From quux ... ... .. ..:..:.. .... (re)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   404
  Content-Type: text/plain; charset="utf-8"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   405
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   406
  Content-Transfer-Encoding: base64
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   407
  Subject: [PATCH] utf-8 content
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   408
  X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   409
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   410
  X-Mercurial-Series-Total: 1
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   411
  Message-Id: <909a00e13e9d78b575ae.240@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
   412
  X-Mercurial-Series-Id: <909a00e13e9d78b575ae.240@*> (glob)
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
   413
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   414
  Date: Thu, 01 Jan 1970 00:04:00 +0000
15559
1830d0cc4bc1 patchbomb: minor refactoring of mbox functionality, preparing for move
Mads Kiilerich <mads@kiilerich.com>
parents: 15547
diff changeset
   415
  From: Q <quux>
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   416
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   417
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   418
  
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   419
  IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojICAgICAgVGh1IEph
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   420
  biAwMSAwMDowMDowNCAxOTcwICswMDAwCiMgTm9kZSBJRCA5MDlhMDBlMTNlOWQ3OGI1NzVhZWVl
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   421
  MjNkZGRiYWRhNDZkNWExNDNmCiMgUGFyZW50ICBmZjJjOWZhMjAxOGIxNWZhNzRiMzMzNjNiZGE5
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   422
  NTI3MzIzZTJhOTlmCnV0Zi04IGNvbnRlbnQKCmRpZmYgLXIgZmYyYzlmYTIwMThiIC1yIDkwOWEw
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   423
  MGUxM2U5ZCBkZXNjcmlwdGlvbgotLS0gL2Rldi9udWxsCVRodSBKYW4gMDEgMDA6MDA6MDAgMTk3
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   424
  MCArMDAwMAorKysgYi9kZXNjcmlwdGlvbglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   425
  QEAgLTAsMCArMSwzIEBACithIG11bHRpbGluZQorCitkZXNjcmlwdGlvbgpkaWZmIC1yIGZmMmM5
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   426
  ZmEyMDE4YiAtciA5MDlhMDBlMTNlOWQgdXRmCi0tLSAvZGV2L251bGwJVGh1IEphbiAwMSAwMDow
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   427
  MDowMCAxOTcwICswMDAwCisrKyBiL3V0ZglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAK
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   428
  QEAgLTAsMCArMSwxIEBACitow7ZtbWEhCg==
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   429
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   430
  
22947
c63a09b6b337 tests: use $PYTHON instead of hardcoding python
Augie Fackler <raf@durin42.com>
parents: 22589
diff changeset
   431
  $ $PYTHON -c 'print open("mbox").read().split("\n\n")[1].decode("base64")'
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   432
  # HG changeset patch
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   433
  # User test
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   434
  # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   435
  #      Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   436
  # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   437
  # Parent  ff2c9fa2018b15fa74b33363bda9527323e2a99f
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   438
  utf-8 content
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   439
  
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   440
  diff -r ff2c9fa2018b -r 909a00e13e9d description
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   441
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   442
  +++ b/description	Thu Jan 01 00:00:04 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   443
  @@ -0,0 +1,3 @@
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   444
  +a multiline
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   445
  +
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   446
  +description
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   447
  diff -r ff2c9fa2018b -r 909a00e13e9d utf
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   448
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   449
  +++ b/utf	Thu Jan 01 00:00:04 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   450
  @@ -0,0 +1,1 @@
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   451
  +h\xc3\xb6mma! (esc)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   452
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   453
  $ rm mbox
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   454
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   455
mime encoded mbox (quoted-printable):
22947
c63a09b6b337 tests: use $PYTHON instead of hardcoding python
Augie Fackler <raf@durin42.com>
parents: 22589
diff changeset
   456
  $ $PYTHON -c 'fp = open("long", "wb"); fp.write("%s\nfoo\n\nbar\n" % ("x" * 1024)); fp.close();'
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   457
  $ hg commit -A -d '4 0' -m 'long line'
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   458
  adding long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   459
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   460
no mime encoding for email --test:
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   461
  $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   462
  this patch series consists of 1 patches.
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   463
  
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   464
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   465
  displaying [PATCH] long line ...
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   466
  Content-Type: text/plain; charset="us-ascii"
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   467
  MIME-Version: 1.0
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   468
  Content-Transfer-Encoding: quoted-printable
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   469
  Subject: [PATCH] long line
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   470
  X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   471
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   472
  X-Mercurial-Series-Total: 1
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   473
  Message-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
   474
  X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   475
  User-Agent: Mercurial-patchbomb/* (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   476
  Date: Thu, 01 Jan 1970 00:04:00 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   477
  From: quux
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   478
  To: foo
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   479
  Cc: bar
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   480
  
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   481
  # HG changeset patch
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   482
  # User test
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   483
  # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   484
  #      Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   485
  # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   486
  # Parent  909a00e13e9d78b575aeee23dddbada46d5a143f
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   487
  long line
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   488
  
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   489
  diff -r 909a00e13e9d -r a2ea8fc83dd8 long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   490
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   491
  +++ b/long	Thu Jan 01 00:00:04 1970 +0000
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   492
  @@ -0,0 +1,4 @@
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   493
  +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   494
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   495
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   496
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   497
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   498
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   499
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   500
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   501
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   502
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   503
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   504
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   505
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   506
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   507
  +foo
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   508
  +
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   509
  +bar
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   510
  
4420
b0656b33cc02 add test for patchbomb extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
   511
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   512
mime encoded mbox (quoted-printable):
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   513
  $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   514
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   515
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   516
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   517
  sending [PATCH] long line ...
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   518
  $ cat mbox
15559
1830d0cc4bc1 patchbomb: minor refactoring of mbox functionality, preparing for move
Mads Kiilerich <mads@kiilerich.com>
parents: 15547
diff changeset
   519
  From quux ... ... .. ..:..:.. .... (re)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   520
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   521
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   522
  Content-Transfer-Encoding: quoted-printable
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   523
  Subject: [PATCH] long line
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   524
  X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   525
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   526
  X-Mercurial-Series-Total: 1
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   527
  Message-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
   528
  X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   529
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   530
  Date: Thu, 01 Jan 1970 00:04:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   531
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   532
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   533
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   534
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   535
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   536
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   537
  # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   538
  #      Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   539
  # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   540
  # Parent  909a00e13e9d78b575aeee23dddbada46d5a143f
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   541
  long line
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   542
  
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   543
  diff -r 909a00e13e9d -r a2ea8fc83dd8 long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   544
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   545
  +++ b/long	Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   546
  @@ -0,0 +1,4 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   547
  +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   548
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   549
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   550
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   551
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   552
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   553
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   554
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   555
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   556
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   557
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   558
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   559
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   560
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   561
  +foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   562
  +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   563
  +bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   564
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   565
  
4565
1cf908c00479 Don't validate email config if we're not sending email.
Bryan O'Sullivan <bos@serpentine.com>
parents: 4420
diff changeset
   566
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   567
  $ rm mbox
5753
ea1016b32e94 patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents: 4597
diff changeset
   568
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   569
iso-8859-1 patch:
22947
c63a09b6b337 tests: use $PYTHON instead of hardcoding python
Augie Fackler <raf@durin42.com>
parents: 22589
diff changeset
   570
  $ $PYTHON -c 'fp = open("isolatin", "wb"); fp.write("h\xF6mma!\n"); fp.close();'
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   571
  $ hg commit -A -d '5 0' -m 'isolatin 8-bit encoding'
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   572
  adding isolatin
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   573
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   574
fake ascii mbox:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   575
  $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   576
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   577
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   578
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   579
  sending [PATCH] isolatin 8-bit encoding ...
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   580
  $ cat mbox
15559
1830d0cc4bc1 patchbomb: minor refactoring of mbox functionality, preparing for move
Mads Kiilerich <mads@kiilerich.com>
parents: 15547
diff changeset
   581
  From quux ... ... .. ..:..:.. .... (re)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   582
  Content-Type: text/plain; charset="us-ascii"
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   583
  MIME-Version: 1.0
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   584
  Content-Transfer-Encoding: 8bit
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   585
  Subject: [PATCH] isolatin 8-bit encoding
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   586
  X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   587
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   588
  X-Mercurial-Series-Total: 1
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   589
  Message-Id: <240fb913fc1b7ff15ddb.300@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
   590
  X-Mercurial-Series-Id: <240fb913fc1b7ff15ddb.300@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   591
  User-Agent: Mercurial-patchbomb/* (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   592
  Date: Thu, 01 Jan 1970 00:05:00 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   593
  From: quux
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   594
  To: foo
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   595
  Cc: bar
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   596
  
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   597
  # HG changeset patch
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   598
  # User test
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   599
  # Date 5 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   600
  #      Thu Jan 01 00:00:05 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   601
  # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   602
  # Parent  a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   603
  isolatin 8-bit encoding
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   604
  
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   605
  diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   606
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   607
  +++ b/isolatin	Thu Jan 01 00:00:05 1970 +0000
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   608
  @@ -0,0 +1,1 @@
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   609
  +h\xf6mma! (esc)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   610
  
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   611
  
5753
ea1016b32e94 patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents: 4597
diff changeset
   612
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   613
test diffstat for single patch:
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   614
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   615
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   616
  
12200
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   617
  
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   618
  Final summary:
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   619
  
12200
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   620
  From: quux
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   621
  To: foo
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   622
  Cc: bar
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   623
  Subject: [PATCH] test
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   624
   c |  1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   625
   1 files changed, 1 insertions(+), 0 deletions(-)
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   626
  
12200
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   627
  are you sure you want to send (yn)? y
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   628
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   629
  displaying [PATCH] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   630
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   631
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   632
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   633
  Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   634
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   635
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   636
  X-Mercurial-Series-Total: 1
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   637
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
   638
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   639
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   640
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   641
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   642
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   643
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   644
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   645
   c |  1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   646
   1 files changed, 1 insertions(+), 0 deletions(-)
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   647
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   648
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   649
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   650
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   651
  # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   652
  #      Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   653
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   654
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   655
  c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   656
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   657
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   658
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   659
  +++ b/c	Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   660
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   661
  +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   662
  
5753
ea1016b32e94 patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents: 4597
diff changeset
   663
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   664
test diffstat for multiple patches:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   665
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   666
  >  -r 0:1
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   667
  this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   668
  
12200
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   669
  
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   670
  Write the introductory message for the patch series.
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   671
  
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   672
  
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   673
  Final summary:
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   674
  
12200
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   675
  From: quux
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   676
  To: foo
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   677
  Cc: bar
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   678
  Subject: [PATCH 0 of 2] test
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   679
   a |  1 +
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   680
   b |  1 +
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   681
   2 files changed, 2 insertions(+), 0 deletions(-)
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   682
  Subject: [PATCH 1 of 2] a
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   683
   a |  1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   684
   1 files changed, 1 insertions(+), 0 deletions(-)
12200
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   685
  Subject: [PATCH 2 of 2] b
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   686
   b |  1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   687
   1 files changed, 1 insertions(+), 0 deletions(-)
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   688
  
12200
aebb39d45500 patchbomb: let diffstat prompt only once with complete summary
Christian Ebert <blacktrash@gmx.net>
parents: 12197
diff changeset
   689
  are you sure you want to send (yn)? y
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   690
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   691
  displaying [PATCH 0 of 2] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   692
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   693
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   694
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   695
  Subject: [PATCH 0 of 2] test
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   696
  Message-Id: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   697
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   698
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   699
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   700
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   701
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   702
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   703
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   704
   a |  1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   705
   b |  1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   706
   2 files changed, 2 insertions(+), 0 deletions(-)
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   707
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   708
  displaying [PATCH 1 of 2] a ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   709
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   710
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   711
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   712
  Subject: [PATCH 1 of 2] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   713
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   714
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   715
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   716
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
   717
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   718
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   719
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   720
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   721
  Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   722
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   723
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   724
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   725
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   726
   a |  1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   727
   1 files changed, 1 insertions(+), 0 deletions(-)
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   728
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   729
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   730
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   731
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   732
  # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   733
  #      Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   734
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   735
  # Parent  0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   736
  a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   737
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   738
  diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   739
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   740
  +++ b/a	Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   741
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   742
  +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   743
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   744
  displaying [PATCH 2 of 2] b ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   745
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   746
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   747
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   748
  Subject: [PATCH 2 of 2] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   749
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   750
  X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   751
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   752
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
   753
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   754
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   755
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   756
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   757
  Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   758
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   759
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   760
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   761
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   762
   b |  1 +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   763
   1 files changed, 1 insertions(+), 0 deletions(-)
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   764
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   765
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   766
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   767
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   768
  # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   769
  #      Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   770
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   771
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   772
  b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   773
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   774
  diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   775
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   776
  +++ b/b	Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   777
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   778
  +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   779
  
5753
ea1016b32e94 patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents: 4597
diff changeset
   780
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   781
test inline for single patch:
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
   782
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | $FILTERBOUNDARY
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   783
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   784
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   785
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   786
  displaying [PATCH] test ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   787
  Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   788
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   789
  Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   790
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   791
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   792
  X-Mercurial-Series-Total: 1
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   793
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
   794
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   795
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   796
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   797
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   798
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   799
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   800
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   801
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   802
  Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   803
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   804
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   805
  Content-Disposition: inline; filename=t2.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   806
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   807
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   808
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   809
  # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   810
  #      Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   811
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   812
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   813
  c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   814
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   815
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   816
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   817
  +++ b/c	Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   818
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   819
  +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   820
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   821
  --===*=-- (glob)
5753
ea1016b32e94 patchbomb: make --bundle respect --desc
Patrick Mezard <pmezard@gmail.com>
parents: 4597
diff changeset
   822
7193
12fc42c78598 mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents: 5753
diff changeset
   823
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   824
test inline for single patch (quoted-printable):
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
   825
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4 | $FILTERBOUNDARY
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   826
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   827
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   828
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   829
  displaying [PATCH] test ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   830
  Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   831
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   832
  Subject: [PATCH] test
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   833
  X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   834
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   835
  X-Mercurial-Series-Total: 1
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   836
  Message-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
   837
  X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   838
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   839
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   840
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   841
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   842
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   843
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   844
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   845
  Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   846
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   847
  Content-Transfer-Encoding: quoted-printable
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   848
  Content-Disposition: inline; filename=t2.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   849
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   850
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   851
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   852
  # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   853
  #      Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   854
  # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   855
  # Parent  909a00e13e9d78b575aeee23dddbada46d5a143f
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   856
  long line
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   857
  
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   858
  diff -r 909a00e13e9d -r a2ea8fc83dd8 long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   859
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   860
  +++ b/long	Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   861
  @@ -0,0 +1,4 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   862
  +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   863
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   864
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   865
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   866
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   867
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   868
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   869
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   870
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   871
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   872
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   873
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   874
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   875
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   876
  +foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   877
  +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   878
  +bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   879
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   880
  --===*=-- (glob)
8332
3e544c074459 patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents: 8160
diff changeset
   881
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   882
test inline for multiple patches:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   883
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
   884
  >  -r 0:1 -r 4 | $FILTERBOUNDARY
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   885
  this patch series consists of 3 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   886
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   887
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   888
  Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   889
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   890
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   891
  displaying [PATCH 0 of 3] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   892
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   893
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   894
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   895
  Subject: [PATCH 0 of 3] test
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   896
  Message-Id: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   897
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   898
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   899
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   900
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   901
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   902
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   903
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   904
  displaying [PATCH 1 of 3] a ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   905
  Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   906
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   907
  Subject: [PATCH 1 of 3] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   908
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   909
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   910
  X-Mercurial-Series-Total: 3
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   911
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
   912
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   913
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   914
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   915
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   916
  Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   917
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   918
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   919
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   920
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   921
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   922
  Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   923
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   924
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   925
  Content-Disposition: inline; filename=t2-1.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   926
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   927
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   928
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   929
  # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   930
  #      Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   931
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   932
  # Parent  0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   933
  a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   934
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   935
  diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   936
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   937
  +++ b/a	Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   938
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   939
  +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   940
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   941
  --===*=-- (glob)
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   942
  displaying [PATCH 2 of 3] b ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   943
  Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   944
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   945
  Subject: [PATCH 2 of 3] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   946
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   947
  X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   948
  X-Mercurial-Series-Total: 3
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   949
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
   950
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   951
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   952
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   953
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   954
  Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   955
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   956
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   957
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   958
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   959
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   960
  Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   961
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   962
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   963
  Content-Disposition: inline; filename=t2-2.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   964
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   965
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   966
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   967
  # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
   968
  #      Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   969
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   970
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   971
  b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   972
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   973
  diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   974
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   975
  +++ b/b	Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   976
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   977
  +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   978
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   979
  --===*=-- (glob)
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
   980
  displaying [PATCH 3 of 3] long line ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   981
  Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   982
  MIME-Version: 1.0
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   983
  Subject: [PATCH 3 of 3] long line
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   984
  X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   985
  X-Mercurial-Series-Index: 3
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
   986
  X-Mercurial-Series-Total: 3
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
   987
  Message-Id: <a2ea8fc83dd8b93cfd86.63@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
   988
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   989
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   990
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
   991
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   992
  Date: Thu, 01 Jan 1970 00:01:03 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   993
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   994
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   995
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   996
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
   997
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   998
  Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
   999
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1000
  Content-Transfer-Encoding: quoted-printable
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1001
  Content-Disposition: inline; filename=t2-3.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1002
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1003
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1004
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1005
  # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1006
  #      Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1007
  # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1008
  # Parent  909a00e13e9d78b575aeee23dddbada46d5a143f
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1009
  long line
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1010
  
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1011
  diff -r 909a00e13e9d -r a2ea8fc83dd8 long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1012
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1013
  +++ b/long	Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1014
  @@ -0,0 +1,4 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1015
  +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1016
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1017
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1018
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1019
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1020
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1021
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1022
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1023
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1024
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1025
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1026
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1027
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1028
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1029
  +foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1030
  +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1031
  +bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1032
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1033
  --===*=-- (glob)
8332
3e544c074459 patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents: 8160
diff changeset
  1034
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1035
test attach for single patch:
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
  1036
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2 | $FILTERBOUNDARY
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1037
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1038
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1039
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1040
  displaying [PATCH] test ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1041
  Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1042
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1043
  Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1044
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1045
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1046
  X-Mercurial-Series-Total: 1
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1047
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
  1048
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1049
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1050
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1051
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1052
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1053
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1054
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1055
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1056
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1057
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1058
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1059
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1060
  Patch subject is complete summary.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1061
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1062
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1063
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1064
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1065
  Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1066
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1067
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1068
  Content-Disposition: attachment; filename=t2.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1069
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1070
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1071
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1072
  # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1073
  #      Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1074
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1075
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1076
  c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1077
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1078
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1079
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1080
  +++ b/c	Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1081
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1082
  +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1083
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1084
  --===*=-- (glob)
8332
3e544c074459 patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents: 8160
diff changeset
  1085
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1086
test attach for single patch (quoted-printable):
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
  1087
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4 | $FILTERBOUNDARY
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1088
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1089
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1090
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1091
  displaying [PATCH] test ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1092
  Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1093
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1094
  Subject: [PATCH] test
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1095
  X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1096
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1097
  X-Mercurial-Series-Total: 1
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1098
  Message-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
  1099
  X-Mercurial-Series-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1100
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1101
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1102
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1103
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1104
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1105
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1106
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1107
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1108
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1109
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1110
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1111
  Patch subject is complete summary.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1112
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1113
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1114
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1115
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1116
  Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1117
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1118
  Content-Transfer-Encoding: quoted-printable
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1119
  Content-Disposition: attachment; filename=t2.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1120
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1121
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1122
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1123
  # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1124
  #      Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1125
  # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1126
  # Parent  909a00e13e9d78b575aeee23dddbada46d5a143f
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1127
  long line
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1128
  
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1129
  diff -r 909a00e13e9d -r a2ea8fc83dd8 long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1130
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1131
  +++ b/long	Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1132
  @@ -0,0 +1,4 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1133
  +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1134
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1135
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1136
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1137
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1138
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1139
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1140
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1141
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1142
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1143
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1144
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1145
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1146
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1147
  +foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1148
  +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1149
  +bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1150
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1151
  --===*=-- (glob)
7193
12fc42c78598 mail: test patch mime encoding for patchbomb
Christian Ebert <blacktrash@gmx.net>
parents: 5753
diff changeset
  1152
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1153
test attach and body for single patch:
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
  1154
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a --body -r 2 | $FILTERBOUNDARY
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1155
  this patch series consists of 1 patches.
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1156
  
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1157
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1158
  displaying [PATCH] test ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1159
  Content-Type: multipart/mixed; boundary="===*==" (glob)
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1160
  MIME-Version: 1.0
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1161
  Subject: [PATCH] test
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1162
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1163
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1164
  X-Mercurial-Series-Total: 1
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1165
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
  1166
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1167
  User-Agent: Mercurial-patchbomb/* (glob)
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1168
  Date: Thu, 01 Jan 1970 00:01:00 +0000
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1169
  From: quux
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1170
  To: foo
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1171
  Cc: bar
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1172
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1173
  --===*= (glob)
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1174
  Content-Type: text/plain; charset="us-ascii"
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1175
  MIME-Version: 1.0
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1176
  Content-Transfer-Encoding: 7bit
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1177
  
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1178
  # HG changeset patch
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1179
  # User test
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1180
  # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1181
  #      Thu Jan 01 00:00:03 1970 +0000
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1182
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1183
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1184
  c
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1185
  
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1186
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1187
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1188
  +++ b/c	Thu Jan 01 00:00:03 1970 +0000
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1189
  @@ -0,0 +1,1 @@
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1190
  +c
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1191
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1192
  --===*= (glob)
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1193
  Content-Type: text/x-patch; charset="us-ascii"
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1194
  MIME-Version: 1.0
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1195
  Content-Transfer-Encoding: 7bit
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1196
  Content-Disposition: attachment; filename=t2.patch
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1197
  
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1198
  # HG changeset patch
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1199
  # User test
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1200
  # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1201
  #      Thu Jan 01 00:00:03 1970 +0000
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1202
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1203
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1204
  c
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1205
  
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1206
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1207
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1208
  +++ b/c	Thu Jan 01 00:00:03 1970 +0000
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1209
  @@ -0,0 +1,1 @@
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1210
  +c
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1211
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1212
  --===*=-- (glob)
16307
17a9a1f5cee2 patchbomb: add --body flag to send patches as inline message body text
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 16233
diff changeset
  1213
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1214
test attach for multiple patches:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1215
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
  1216
  >  -r 0:1 -r 4 | $FILTERBOUNDARY
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1217
  this patch series consists of 3 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1218
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1219
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1220
  Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1221
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1222
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1223
  displaying [PATCH 0 of 3] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1224
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1225
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1226
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1227
  Subject: [PATCH 0 of 3] test
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1228
  Message-Id: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1229
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1230
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1231
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1232
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1233
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1234
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1235
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1236
  displaying [PATCH 1 of 3] a ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1237
  Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1238
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1239
  Subject: [PATCH 1 of 3] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1240
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1241
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1242
  X-Mercurial-Series-Total: 3
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1243
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  1244
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1245
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1246
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1247
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1248
  Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1249
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1250
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1251
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1252
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1253
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1254
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1255
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1256
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1257
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1258
  Patch subject is complete summary.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1259
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1260
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1261
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1262
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1263
  Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1264
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1265
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1266
  Content-Disposition: attachment; filename=t2-1.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1267
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1268
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1269
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1270
  # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1271
  #      Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1272
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1273
  # Parent  0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1274
  a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1275
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1276
  diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1277
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1278
  +++ b/a	Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1279
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1280
  +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1281
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1282
  --===*=-- (glob)
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1283
  displaying [PATCH 2 of 3] b ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1284
  Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1285
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1286
  Subject: [PATCH 2 of 3] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1287
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1288
  X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1289
  X-Mercurial-Series-Total: 3
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1290
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  1291
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1292
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1293
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1294
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1295
  Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1296
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1297
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1298
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1299
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1300
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1301
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1302
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1303
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1304
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1305
  Patch subject is complete summary.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1306
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1307
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1308
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1309
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1310
  Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1311
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1312
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1313
  Content-Disposition: attachment; filename=t2-2.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1314
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1315
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1316
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1317
  # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1318
  #      Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1319
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1320
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1321
  b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1322
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1323
  diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1324
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1325
  +++ b/b	Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1326
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1327
  +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1328
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1329
  --===*=-- (glob)
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1330
  displaying [PATCH 3 of 3] long line ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1331
  Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1332
  MIME-Version: 1.0
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1333
  Subject: [PATCH 3 of 3] long line
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1334
  X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1335
  X-Mercurial-Series-Index: 3
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1336
  X-Mercurial-Series-Total: 3
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1337
  Message-Id: <a2ea8fc83dd8b93cfd86.63@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  1338
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1339
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1340
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1341
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1342
  Date: Thu, 01 Jan 1970 00:01:03 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1343
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1344
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1345
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1346
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1347
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1348
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1349
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1350
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1351
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1352
  Patch subject is complete summary.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1353
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1354
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1355
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1356
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1357
  Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1358
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1359
  Content-Transfer-Encoding: quoted-printable
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1360
  Content-Disposition: attachment; filename=t2-3.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1361
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1362
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1363
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1364
  # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1365
  #      Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1366
  # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1367
  # Parent  909a00e13e9d78b575aeee23dddbada46d5a143f
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1368
  long line
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1369
  
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1370
  diff -r 909a00e13e9d -r a2ea8fc83dd8 long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1371
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1372
  +++ b/long	Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1373
  @@ -0,0 +1,4 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1374
  +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1375
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1376
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1377
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1378
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1379
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1380
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1381
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1382
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1383
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1384
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1385
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1386
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1387
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1388
  +foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1389
  +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1390
  +bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1391
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1392
  --===*=-- (glob)
7358
3c2ed7c2dcb4 patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 7357
diff changeset
  1393
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1394
test intro for single patch:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1395
  $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1396
  >  -r 2
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1397
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1398
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1399
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1400
  Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1401
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1402
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1403
  displaying [PATCH 0 of 1] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1404
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1405
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1406
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1407
  Subject: [PATCH 0 of 1] test
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1408
  Message-Id: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1409
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1410
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1411
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1412
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1413
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1414
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1415
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1416
  displaying [PATCH 1 of 1] c ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1417
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1418
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1419
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1420
  Subject: [PATCH 1 of 1] c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1421
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1422
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1423
  X-Mercurial-Series-Total: 1
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1424
  Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  1425
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1426
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1427
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1428
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1429
  Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1430
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1431
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1432
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1433
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1434
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1435
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1436
  # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1437
  #      Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1438
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1439
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1440
  c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1441
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1442
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1443
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1444
  +++ b/c	Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1445
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1446
  +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1447
  
7358
3c2ed7c2dcb4 patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 7357
diff changeset
  1448
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1449
test --desc without --intro for a single patch:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1450
  $ echo foo > intro.text
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1451
  $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1452
  >  -s test -r 2
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1453
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1454
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1455
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1456
  displaying [PATCH 0 of 1] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1457
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1458
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1459
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1460
  Subject: [PATCH 0 of 1] test
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1461
  Message-Id: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1462
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1463
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1464
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1465
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1466
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1467
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1468
  foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1469
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1470
  displaying [PATCH 1 of 1] c ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1471
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1472
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1473
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1474
  Subject: [PATCH 1 of 1] c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1475
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1476
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1477
  X-Mercurial-Series-Total: 1
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1478
  Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  1479
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1480
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1481
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1482
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1483
  Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1484
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1485
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1486
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1487
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1488
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1489
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1490
  # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1491
  #      Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1492
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1493
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1494
  c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1495
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1496
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1497
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1498
  +++ b/c	Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1499
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1500
  +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1501
  
7358
3c2ed7c2dcb4 patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 7357
diff changeset
  1502
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1503
test intro for multiple patches:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1504
  $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1505
  >  -r 0:1
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1506
  this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1507
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1508
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1509
  Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1510
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1511
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1512
  displaying [PATCH 0 of 2] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1513
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1514
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1515
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1516
  Subject: [PATCH 0 of 2] test
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1517
  Message-Id: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1518
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1519
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1520
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1521
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1522
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1523
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1524
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1525
  displaying [PATCH 1 of 2] a ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1526
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1527
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1528
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1529
  Subject: [PATCH 1 of 2] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1530
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1531
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1532
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1533
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  1534
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1535
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1536
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1537
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1538
  Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1539
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1540
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1541
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1542
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1543
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1544
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1545
  # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1546
  #      Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1547
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1548
  # Parent  0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1549
  a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1550
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1551
  diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1552
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1553
  +++ b/a	Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1554
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1555
  +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1556
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1557
  displaying [PATCH 2 of 2] b ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1558
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1559
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1560
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1561
  Subject: [PATCH 2 of 2] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1562
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1563
  X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1564
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1565
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  1566
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1567
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1568
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1569
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1570
  Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1571
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1572
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1573
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1574
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1575
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1576
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1577
  # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1578
  #      Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1579
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1580
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1581
  b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1582
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1583
  diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1584
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1585
  +++ b/b	Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1586
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1587
  +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1588
  
8332
3e544c074459 patchbomb: quoted-printable encode overly long lines
Rocco Rutte <pdmef@gmx.net>
parents: 8160
diff changeset
  1589
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1590
test reply-to via config:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1591
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1592
  >  --config patchbomb.reply-to='baz@example.com'
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1593
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1594
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1595
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1596
  displaying [PATCH] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1597
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1598
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1599
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1600
  Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1601
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1602
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1603
  X-Mercurial-Series-Total: 1
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1604
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
  1605
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1606
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1607
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1608
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1609
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1610
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1611
  Reply-To: baz@example.com
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1612
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1613
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1614
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1615
  # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1616
  #      Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1617
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1618
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1619
  c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1620
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1621
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1622
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1623
  +++ b/c	Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1624
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1625
  +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1626
  
7358
3c2ed7c2dcb4 patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 7357
diff changeset
  1627
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1628
test reply-to via command line:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1629
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1630
  >  --reply-to baz --reply-to fred
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1631
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1632
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1633
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1634
  displaying [PATCH] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1635
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1636
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1637
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1638
  Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1639
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1640
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1641
  X-Mercurial-Series-Total: 1
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1642
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
  1643
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1644
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1645
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1646
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1647
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1648
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1649
  Reply-To: baz, fred
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1650
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1651
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1652
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1653
  # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1654
  #      Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1655
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1656
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1657
  c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1658
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1659
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1660
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1661
  +++ b/c	Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1662
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1663
  +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1664
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1665
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1666
tagging csets:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1667
  $ hg tag -r0 zero zero.foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1668
  $ hg tag -r1 one one.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1669
  $ hg tag -r2 two two.diff
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1670
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1671
test inline for single named patch:
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
  1672
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
  1673
  >   -r 2 | $FILTERBOUNDARY
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1674
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1675
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1676
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1677
  displaying [PATCH] test ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1678
  Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1679
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1680
  Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1681
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1682
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1683
  X-Mercurial-Series-Total: 1
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1684
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
  1685
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1686
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1687
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1688
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1689
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1690
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1691
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1692
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1693
  Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1694
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1695
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1696
  Content-Disposition: inline; filename=two.diff
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1697
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1698
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1699
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1700
  # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1701
  #      Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1702
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1703
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1704
  c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1705
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1706
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1707
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1708
  +++ b/c	Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1709
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1710
  +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1711
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1712
  --===*=-- (glob)
7360
42f1b8cb9a60 patchbomb: add option to send intro email for a single patch (issue1120)
Chris Winter <elwintro@gmail.com>
parents: 7358
diff changeset
  1713
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1714
test inline for multiple named/unnamed patches:
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
  1715
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
  1716
  >    -r 0:1 | $FILTERBOUNDARY
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1717
  this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1718
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1719
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1720
  Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1721
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1722
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1723
  displaying [PATCH 0 of 2] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1724
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1725
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1726
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1727
  Subject: [PATCH 0 of 2] test
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1728
  Message-Id: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1729
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1730
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1731
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1732
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1733
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1734
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1735
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1736
  displaying [PATCH 1 of 2] a ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1737
  Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1738
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1739
  Subject: [PATCH 1 of 2] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1740
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1741
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1742
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1743
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  1744
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1745
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1746
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1747
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1748
  Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1749
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1750
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1751
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1752
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1753
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1754
  Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1755
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1756
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1757
  Content-Disposition: inline; filename=t2-1.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1758
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1759
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1760
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1761
  # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1762
  #      Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1763
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1764
  # Parent  0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1765
  a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1766
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1767
  diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1768
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1769
  +++ b/a	Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1770
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1771
  +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1772
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1773
  --===*=-- (glob)
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1774
  displaying [PATCH 2 of 2] b ...
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1775
  Content-Type: multipart/mixed; boundary="===*==" (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1776
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1777
  Subject: [PATCH 2 of 2] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1778
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1779
  X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1780
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1781
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  1782
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1783
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1784
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1785
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1786
  Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1787
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1788
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1789
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1790
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1791
  --===*= (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1792
  Content-Type: text/x-patch; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1793
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1794
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1795
  Content-Disposition: inline; filename=one.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1796
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1797
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1798
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1799
  # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1800
  #      Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1801
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1802
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1803
  b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1804
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1805
  diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1806
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1807
  +++ b/b	Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1808
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1809
  +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1810
  
21725
e8496c4ba6c0 test-patchbomb: normalize glob lines and record their construction
Augie Fackler <raf@durin42.com>
parents: 21724
diff changeset
  1811
  --===*=-- (glob)
10734
7a0502a6f9a1 patchbomb: --desc implies --intro
Cédric Duval <cedricduval@free.fr>
parents: 10257
diff changeset
  1812
11150
f66ca4431eb9 patchbomb: Reply-To support
Cédric Duval <cedricduval@free.fr>
parents: 10734
diff changeset
  1813
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1814
test inreplyto:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1815
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1816
  >  -r tip
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1817
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1818
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1819
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1820
  displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1821
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1822
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1823
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1824
  Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1825
  X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1826
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1827
  X-Mercurial-Series-Total: 1
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1828
  Message-Id: <7aead2484924c445ad8c.60@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  1829
  X-Mercurial-Series-Id: <7aead2484924c445ad8c.60@*> (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1830
  In-Reply-To: <baz>
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1831
  References: <baz>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1832
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1833
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1834
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1835
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1836
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1837
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1838
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1839
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1840
  # Date 0 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1841
  #      Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1842
  # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1843
  # Parent  045ca29b1ea20e4940411e695e20e521f2f0f98e
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1844
  Added tag two, two.diff for changeset ff2c9fa2018b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1845
  
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  1846
  diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1847
  --- a/.hgtags	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1848
  +++ b/.hgtags	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1849
  @@ -2,3 +2,5 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1850
   8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1851
   97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1852
   97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1853
  +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1854
  +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1855
  
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1856
no intro message in non-interactive mode
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1857
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1858
  >  -r 0:1
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1859
  this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1860
  
16233
3f79b110c4f0 patchbomb: add (optional) note to 0 of 0 prompt
Matt Mackall <mpm@selenic.com>
parents: 15623
diff changeset
  1861
  (optional) Subject: [PATCH 0 of 2] 
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1862
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1863
  displaying [PATCH 1 of 2] a ...
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1864
  Content-Type: text/plain; charset="us-ascii"
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1865
  MIME-Version: 1.0
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1866
  Content-Transfer-Encoding: 7bit
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1867
  Subject: [PATCH 1 of 2] a
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1868
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1869
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1870
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1871
  Message-Id: <8580ff50825a50c8f716.60@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  1872
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1873
  In-Reply-To: <baz>
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1874
  References: <baz>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1875
  User-Agent: Mercurial-patchbomb/* (glob)
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1876
  Date: Thu, 01 Jan 1970 00:01:00 +0000
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1877
  From: quux
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1878
  To: foo
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1879
  Cc: bar
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1880
  
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1881
  # HG changeset patch
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1882
  # User test
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1883
  # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1884
  #      Thu Jan 01 00:00:01 1970 +0000
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1885
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1886
  # Parent  0000000000000000000000000000000000000000
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1887
  a
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1888
  
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1889
  diff -r 000000000000 -r 8580ff50825a a
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1890
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1891
  +++ b/a	Thu Jan 01 00:00:01 1970 +0000
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1892
  @@ -0,0 +1,1 @@
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1893
  +a
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1894
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1895
  displaying [PATCH 2 of 2] b ...
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1896
  Content-Type: text/plain; charset="us-ascii"
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1897
  MIME-Version: 1.0
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1898
  Content-Transfer-Encoding: 7bit
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1899
  Subject: [PATCH 2 of 2] b
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1900
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1901
  X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1902
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1903
  Message-Id: <97d72e5f12c7e84f8506.61@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  1904
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.60@*> (glob)
17859
d38d90ad5bbf patchbomb: respect --in-reply-to for all mails if no intro message is sent
Thomas Arendsen Hein <thomas@intevation.de>
parents: 17743
diff changeset
  1905
  In-Reply-To: <baz>
d38d90ad5bbf patchbomb: respect --in-reply-to for all mails if no intro message is sent
Thomas Arendsen Hein <thomas@intevation.de>
parents: 17743
diff changeset
  1906
  References: <baz>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1907
  User-Agent: Mercurial-patchbomb/* (glob)
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1908
  Date: Thu, 01 Jan 1970 00:01:01 +0000
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1909
  From: quux
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1910
  To: foo
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1911
  Cc: bar
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1912
  
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1913
  # HG changeset patch
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1914
  # User test
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1915
  # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1916
  #      Thu Jan 01 00:00:02 1970 +0000
15164
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1917
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1918
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1919
  b
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1920
  
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1921
  diff -r 8580ff50825a -r 97d72e5f12c7 b
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1922
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1923
  +++ b/b	Thu Jan 01 00:00:02 1970 +0000
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1924
  @@ -0,0 +1,1 @@
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1925
  +b
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1926
  
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1927
7bddec632821 patchbomb: make it easy for the user to decline sending an intro message.
Greg Ward <greg@gerg.ca>
parents: 14101
diff changeset
  1928
11150
f66ca4431eb9 patchbomb: Reply-To support
Cédric Duval <cedricduval@free.fr>
parents: 10734
diff changeset
  1929
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1930
  $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1931
  >  -s test -r 0:1
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1932
  this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1933
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1934
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1935
  Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1936
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1937
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1938
  displaying [PATCH 0 of 2] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1939
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1940
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1941
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1942
  Subject: [PATCH 0 of 2] test
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1943
  Message-Id: <patchbomb.60@*> (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1944
  In-Reply-To: <baz>
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1945
  References: <baz>
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1946
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1947
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1948
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1949
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1950
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1951
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1952
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1953
  displaying [PATCH 1 of 2] a ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1954
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1955
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1956
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1957
  Subject: [PATCH 1 of 2] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1958
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1959
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1960
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1961
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  1962
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1963
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1964
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1965
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1966
  Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1967
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1968
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1969
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1970
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1971
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1972
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1973
  # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  1974
  #      Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1975
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1976
  # Parent  0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1977
  a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1978
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1979
  diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1980
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1981
  +++ b/a	Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1982
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1983
  +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1984
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  1985
  displaying [PATCH 2 of 2] b ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1986
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1987
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1988
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1989
  Subject: [PATCH 2 of 2] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1990
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1991
  X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  1992
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1993
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  1994
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1995
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1996
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  1997
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1998
  Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  1999
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2000
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2001
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2002
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2003
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2004
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2005
  # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2006
  #      Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2007
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2008
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2009
  b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2010
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2011
  diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2012
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2013
  +++ b/b	Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2014
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2015
  +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2016
  
7358
3c2ed7c2dcb4 patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 7357
diff changeset
  2017
21055
dbff8c119cf6 patchbomb: warn when emailing a dirty working directory parent
Mads Kiilerich <madski@unity3d.com>
parents: 20117
diff changeset
  2018
test single flag for single patch (and no warning when not mailing dirty rev):
dbff8c119cf6 patchbomb: warn when emailing a dirty working directory parent
Mads Kiilerich <madski@unity3d.com>
parents: 20117
diff changeset
  2019
  $ hg up -qr1
dbff8c119cf6 patchbomb: warn when emailing a dirty working directory parent
Mads Kiilerich <madski@unity3d.com>
parents: 20117
diff changeset
  2020
  $ echo dirt > a
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2021
  $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
22071
f8fc5df6a8cf test-patchbomb.t: work around Python change d579866d6419 (issue4188)
Augie Fackler <raf@durin42.com>
parents: 21727
diff changeset
  2022
  >  -r 2 | $FILTERBOUNDARY
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2023
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2024
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2025
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2026
  displaying [PATCH fooFlag] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2027
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2028
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2029
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2030
  Subject: [PATCH fooFlag] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2031
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2032
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2033
  X-Mercurial-Series-Total: 1
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2034
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
  2035
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2036
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2037
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2038
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2039
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2040
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2041
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2042
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2043
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2044
  # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2045
  #      Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2046
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2047
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2048
  c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2049
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2050
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2051
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2052
  +++ b/c	Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2053
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2054
  +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2055
  
7358
3c2ed7c2dcb4 patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 7357
diff changeset
  2056
21055
dbff8c119cf6 patchbomb: warn when emailing a dirty working directory parent
Mads Kiilerich <madski@unity3d.com>
parents: 20117
diff changeset
  2057
test single flag for multiple patches (and warning when mailing dirty rev):
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2058
  $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2059
  >  -r 0:1
21055
dbff8c119cf6 patchbomb: warn when emailing a dirty working directory parent
Mads Kiilerich <madski@unity3d.com>
parents: 20117
diff changeset
  2060
  warning: working directory has uncommitted changes
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2061
  this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2062
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2063
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2064
  Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2065
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2066
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2067
  displaying [PATCH 0 of 2 fooFlag] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2068
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2069
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2070
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2071
  Subject: [PATCH 0 of 2 fooFlag] test
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2072
  Message-Id: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2073
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2074
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2075
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2076
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2077
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2078
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2079
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2080
  displaying [PATCH 1 of 2 fooFlag] a ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2081
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2082
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2083
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2084
  Subject: [PATCH 1 of 2 fooFlag] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2085
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2086
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2087
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2088
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  2089
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2090
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2091
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2092
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2093
  Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2094
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2095
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2096
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2097
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2098
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2099
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2100
  # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2101
  #      Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2102
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2103
  # Parent  0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2104
  a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2105
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2106
  diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2107
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2108
  +++ b/a	Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2109
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2110
  +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2111
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2112
  displaying [PATCH 2 of 2 fooFlag] b ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2113
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2114
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2115
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2116
  Subject: [PATCH 2 of 2 fooFlag] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2117
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2118
  X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2119
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2120
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  2121
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2122
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2123
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2124
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2125
  Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2126
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2127
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2128
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2129
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2130
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2131
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2132
  # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2133
  #      Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2134
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2135
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2136
  b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2137
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2138
  diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2139
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2140
  +++ b/b	Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2141
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2142
  +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2143
  
21055
dbff8c119cf6 patchbomb: warn when emailing a dirty working directory parent
Mads Kiilerich <madski@unity3d.com>
parents: 20117
diff changeset
  2144
  $ hg revert --no-b a
dbff8c119cf6 patchbomb: warn when emailing a dirty working directory parent
Mads Kiilerich <madski@unity3d.com>
parents: 20117
diff changeset
  2145
  $ hg up -q
7358
3c2ed7c2dcb4 patchbomb: add tests for diffstat, inline, and attach options
Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
parents: 7357
diff changeset
  2146
17502
6fcdcdd32a6a spelling: multiple
timeless@mozdev.org
parents: 17177
diff changeset
  2147
test multiple flags for single patch:
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2148
  $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2149
  >  -c bar -s test -r 2
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2150
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2151
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2152
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2153
  displaying [PATCH fooFlag barFlag] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2154
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2155
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2156
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2157
  Subject: [PATCH fooFlag barFlag] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2158
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2159
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2160
  X-Mercurial-Series-Total: 1
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2161
  Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
  2162
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2163
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2164
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2165
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2166
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2167
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2168
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2169
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2170
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2171
  # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2172
  #      Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2173
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2174
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2175
  c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2176
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2177
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2178
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2179
  +++ b/c	Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2180
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2181
  +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2182
  
9346
bb3f8f692bc6 patchbomb: add --flag to put flags in subject prefixes
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 8514
diff changeset
  2183
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2184
test multiple flags for multiple patches:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2185
  $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2186
  >  -c bar -s test -r 0:1
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2187
  this patch series consists of 2 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2188
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2189
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2190
  Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2191
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2192
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2193
  displaying [PATCH 0 of 2 fooFlag barFlag] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2194
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2195
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2196
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2197
  Subject: [PATCH 0 of 2 fooFlag barFlag] test
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2198
  Message-Id: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2199
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2200
  Date: Thu, 01 Jan 1970 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2201
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2202
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2203
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2204
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2205
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2206
  displaying [PATCH 1 of 2 fooFlag barFlag] a ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2207
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2208
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2209
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2210
  Subject: [PATCH 1 of 2 fooFlag barFlag] a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2211
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2212
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2213
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2214
  Message-Id: <8580ff50825a50c8f716.61@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  2215
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2216
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2217
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2218
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2219
  Date: Thu, 01 Jan 1970 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2220
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2221
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2222
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2223
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2224
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2225
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2226
  # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2227
  #      Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2228
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2229
  # Parent  0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2230
  a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2231
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2232
  diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2233
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2234
  +++ b/a	Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2235
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2236
  +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2237
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2238
  displaying [PATCH 2 of 2 fooFlag barFlag] b ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2239
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2240
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2241
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2242
  Subject: [PATCH 2 of 2 fooFlag barFlag] b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2243
  X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2244
  X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2245
  X-Mercurial-Series-Total: 2
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2246
  Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  2247
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.61@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2248
  In-Reply-To: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2249
  References: <patchbomb.60@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2250
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2251
  Date: Thu, 01 Jan 1970 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2252
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2253
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2254
  Cc: bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2255
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2256
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2257
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2258
  # Date 2 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2259
  #      Thu Jan 01 00:00:02 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2260
  # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2261
  # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2262
  b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2263
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2264
  diff -r 8580ff50825a -r 97d72e5f12c7 b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2265
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2266
  +++ b/b	Thu Jan 01 00:00:02 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2267
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2268
  +b
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2269
  
9346
bb3f8f692bc6 patchbomb: add --flag to put flags in subject prefixes
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 8514
diff changeset
  2270
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2271
test multi-address parsing:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2272
  $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam><eggs>' \
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2273
  >  -t toast -c 'foo,bar@example.com' -c '"A, B <>" <a@example.com>' -s test -r 0 \
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2274
  >  --config email.bcc='"Quux, A." <quux>'
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2275
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2276
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2277
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2278
  sending [PATCH] test ...
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2279
  $ cat < tmp.mbox
15559
1830d0cc4bc1 patchbomb: minor refactoring of mbox functionality, preparing for move
Mads Kiilerich <mads@kiilerich.com>
parents: 15547
diff changeset
  2280
  From quux ... ... .. ..:..:.. .... (re)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2281
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2282
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2283
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2284
  Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2285
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2286
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2287
  X-Mercurial-Series-Total: 1
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2288
  Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
  2289
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2290
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2291
  Date: Tue, 01 Jan 1980 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2292
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2293
  To: spam <spam>, eggs, toast
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2294
  Cc: foo, bar@example.com, "A, B <>" <a@example.com>
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2295
  Bcc: "Quux, A." <quux>
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2296
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2297
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2298
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2299
  # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2300
  #      Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2301
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2302
  # Parent  0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2303
  a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2304
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2305
  diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2306
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2307
  +++ b/a	Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2308
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2309
  +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2310
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2311
  
9346
bb3f8f692bc6 patchbomb: add --flag to put flags in subject prefixes
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 8514
diff changeset
  2312
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2313
test multi-byte domain parsing:
22947
c63a09b6b337 tests: use $PYTHON instead of hardcoding python
Augie Fackler <raf@durin42.com>
parents: 22589
diff changeset
  2314
  $ UUML=`$PYTHON -c 'import sys; sys.stdout.write("\374")'`
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2315
  $ HGENCODING=iso-8859-1
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2316
  $ export HGENCODING
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2317
  $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" -s test -r 0
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2318
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2319
  
15165
3a55cee825ba patchbomb: use prompt even in non-interactive mode
Matt Mackall <mpm@selenic.com>
parents: 15164
diff changeset
  2320
  Cc: 
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2321
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2322
  sending [PATCH] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2323
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2324
  $ cat tmp.mbox
15559
1830d0cc4bc1 patchbomb: minor refactoring of mbox functionality, preparing for move
Mads Kiilerich <mads@kiilerich.com>
parents: 15547
diff changeset
  2325
  From quux ... ... .. ..:..:.. .... (re)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2326
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2327
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2328
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2329
  Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2330
  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2331
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2332
  X-Mercurial-Series-Total: 1
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2333
  Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
  2334
  X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@*> (glob)
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
  2335
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2336
  Date: Tue, 01 Jan 1980 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2337
  From: quux
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2338
  To: bar@xn--nicode-2ya.com
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2339
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2340
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2341
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2342
  # Date 1 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2343
  #      Thu Jan 01 00:00:01 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2344
  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2345
  # Parent  0000000000000000000000000000000000000000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2346
  a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2347
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2348
  diff -r 000000000000 -r 8580ff50825a a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2349
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2350
  +++ b/a	Thu Jan 01 00:00:01 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2351
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2352
  +a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2353
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2354
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2355
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2356
test outgoing:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2357
  $ hg up 1
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2358
  0 files updated, 0 files merged, 6 files removed, 0 files unresolved
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2359
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2360
  $ hg branch test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2361
  marked working directory as branch test
15615
41885892796e branch: warn on branching
Matt Mackall <mpm@selenic.com>
parents: 15165
diff changeset
  2362
  (branches are permanent and global, did you want a bookmark?)
9346
bb3f8f692bc6 patchbomb: add --flag to put flags in subject prefixes
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 8514
diff changeset
  2363
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2364
  $ echo d > d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2365
  $ hg add d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2366
  $ hg ci -md -d '4 0'
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2367
  $ echo d >> d
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2368
  $ hg ci -mdd -d '5 0'
20117
aa9385f983fa tests: don't load unnecessary graphlog extension
Martin Geisler <martin@geisler.net>
parents: 18648
diff changeset
  2369
  $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2370
  @  10:3b6f1ec9dde9 dd
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2371
  |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2372
  o  9:2f9fa9b998c5 d
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2373
  |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2374
  | o  8:7aead2484924 Added tag two, two.diff for changeset ff2c9fa2018b
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2375
  | |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2376
  | o  7:045ca29b1ea2 Added tag one, one.patch for changeset 97d72e5f12c7
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2377
  | |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2378
  | o  6:5d5ef15dfe5e Added tag zero, zero.foo for changeset 8580ff50825a
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2379
  | |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2380
  | o  5:240fb913fc1b isolatin 8-bit encoding
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2381
  | |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2382
  | o  4:a2ea8fc83dd8 long line
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2383
  | |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2384
  | o  3:909a00e13e9d utf-8 content
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2385
  | |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2386
  | o  2:ff2c9fa2018b c
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2387
  |/
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2388
  o  1:97d72e5f12c7 b
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2389
  |
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2390
  o  0:8580ff50825a a
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2391
  
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2392
  $ hg phase --force --secret -r 10
17177
ef507130fc92 patchbomb: support --outgoing and revsets
Patrick Mezard <patrick@mezard.eu>
parents: 17176
diff changeset
  2393
  $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t -r 'rev(10) or rev(6)'
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2394
  comparing with ../t
15165
3a55cee825ba patchbomb: use prompt even in non-interactive mode
Matt Mackall <mpm@selenic.com>
parents: 15164
diff changeset
  2395
  From [test]: test
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2396
  this patch series consists of 6 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2397
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2398
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2399
  Write the introductory message for the patch series.
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2400
  
15165
3a55cee825ba patchbomb: use prompt even in non-interactive mode
Matt Mackall <mpm@selenic.com>
parents: 15164
diff changeset
  2401
  Cc: 
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2402
  
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2403
  displaying [PATCH 0 of 6] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2404
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2405
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2406
  Content-Transfer-Encoding: 7bit
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2407
  Subject: [PATCH 0 of 6] test
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2408
  Message-Id: <patchbomb.315532860@*> (glob)
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
  2409
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2410
  Date: Tue, 01 Jan 1980 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2411
  From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2412
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2413
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2414
  
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2415
  displaying [PATCH 1 of 6] c ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2416
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2417
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2418
  Content-Transfer-Encoding: 7bit
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2419
  Subject: [PATCH 1 of 6] c
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2420
  X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2421
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2422
  X-Mercurial-Series-Total: 6
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2423
  Message-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  2424
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2425
  In-Reply-To: <patchbomb.315532860@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2426
  References: <patchbomb.315532860@*> (glob)
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
  2427
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2428
  Date: Tue, 01 Jan 1980 00:01:01 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2429
  From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2430
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2431
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2432
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2433
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2434
  # Date 3 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2435
  #      Thu Jan 01 00:00:03 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2436
  # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2437
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2438
  c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2439
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2440
  diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2441
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2442
  +++ b/c	Thu Jan 01 00:00:03 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2443
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2444
  +c
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2445
  
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2446
  displaying [PATCH 2 of 6] utf-8 content ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2447
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2448
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2449
  Content-Transfer-Encoding: 8bit
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2450
  Subject: [PATCH 2 of 6] utf-8 content
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2451
  X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2452
  X-Mercurial-Series-Index: 2
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2453
  X-Mercurial-Series-Total: 6
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2454
  Message-Id: <909a00e13e9d78b575ae.315532862@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  2455
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2456
  In-Reply-To: <patchbomb.315532860@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2457
  References: <patchbomb.315532860@*> (glob)
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
  2458
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2459
  Date: Tue, 01 Jan 1980 00:01:02 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2460
  From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2461
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2462
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2463
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2464
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2465
  # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2466
  #      Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2467
  # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2468
  # Parent  ff2c9fa2018b15fa74b33363bda9527323e2a99f
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2469
  utf-8 content
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2470
  
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2471
  diff -r ff2c9fa2018b -r 909a00e13e9d description
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2472
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2473
  +++ b/description	Thu Jan 01 00:00:04 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2474
  @@ -0,0 +1,3 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2475
  +a multiline
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2476
  +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2477
  +description
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2478
  diff -r ff2c9fa2018b -r 909a00e13e9d utf
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2479
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2480
  +++ b/utf	Thu Jan 01 00:00:04 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2481
  @@ -0,0 +1,1 @@
12942
05fffd665170 tests: use (esc) for all non-ASCII test output
Mads Kiilerich <mads@kiilerich.com>
parents: 12941
diff changeset
  2482
  +h\xc3\xb6mma! (esc)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2483
  
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2484
  displaying [PATCH 3 of 6] long line ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2485
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2486
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2487
  Content-Transfer-Encoding: quoted-printable
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2488
  Subject: [PATCH 3 of 6] long line
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2489
  X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2490
  X-Mercurial-Series-Index: 3
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2491
  X-Mercurial-Series-Total: 6
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2492
  Message-Id: <a2ea8fc83dd8b93cfd86.315532863@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  2493
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2494
  In-Reply-To: <patchbomb.315532860@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2495
  References: <patchbomb.315532860@*> (glob)
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
  2496
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2497
  Date: Tue, 01 Jan 1980 00:01:03 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2498
  From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2499
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2500
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2501
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2502
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2503
  # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2504
  #      Thu Jan 01 00:00:04 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2505
  # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2506
  # Parent  909a00e13e9d78b575aeee23dddbada46d5a143f
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2507
  long line
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2508
  
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2509
  diff -r 909a00e13e9d -r a2ea8fc83dd8 long
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2510
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2511
  +++ b/long	Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2512
  @@ -0,0 +1,4 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2513
  +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2514
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2515
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2516
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2517
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2518
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2519
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2520
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2521
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2522
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2523
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2524
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2525
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2526
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2527
  +foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2528
  +
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2529
  +bar
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2530
  
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2531
  displaying [PATCH 4 of 6] isolatin 8-bit encoding ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2532
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2533
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2534
  Content-Transfer-Encoding: 8bit
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2535
  Subject: [PATCH 4 of 6] isolatin 8-bit encoding
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2536
  X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2537
  X-Mercurial-Series-Index: 4
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2538
  X-Mercurial-Series-Total: 6
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2539
  Message-Id: <240fb913fc1b7ff15ddb.315532864@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  2540
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2541
  In-Reply-To: <patchbomb.315532860@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2542
  References: <patchbomb.315532860@*> (glob)
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
  2543
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2544
  Date: Tue, 01 Jan 1980 00:01:04 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2545
  From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2546
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2547
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2548
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2549
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2550
  # Date 5 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2551
  #      Thu Jan 01 00:00:05 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2552
  # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2553
  # Parent  a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2554
  isolatin 8-bit encoding
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2555
  
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2556
  diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2557
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2558
  +++ b/isolatin	Thu Jan 01 00:00:05 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2559
  @@ -0,0 +1,1 @@
12942
05fffd665170 tests: use (esc) for all non-ASCII test output
Mads Kiilerich <mads@kiilerich.com>
parents: 12941
diff changeset
  2560
  +h\xf6mma! (esc)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2561
  
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2562
  displaying [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2563
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2564
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2565
  Content-Transfer-Encoding: 7bit
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2566
  Subject: [PATCH 5 of 6] Added tag zero, zero.foo for changeset 8580ff50825a
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2567
  X-Mercurial-Node: 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2568
  X-Mercurial-Series-Index: 5
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2569
  X-Mercurial-Series-Total: 6
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2570
  Message-Id: <5d5ef15dfe5e7bd3a4ee.315532865@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  2571
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2572
  In-Reply-To: <patchbomb.315532860@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2573
  References: <patchbomb.315532860@*> (glob)
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
  2574
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2575
  Date: Tue, 01 Jan 1980 00:01:05 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2576
  From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2577
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2578
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2579
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2580
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2581
  # Date 0 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2582
  #      Thu Jan 01 00:00:00 1970 +0000
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2583
  # Node ID 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2584
  # Parent  240fb913fc1b7ff15ddb9f33e73d82bf5277c720
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2585
  Added tag zero, zero.foo for changeset 8580ff50825a
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2586
  
15547
7f1d263a1bcb tests: test-patchbomb.t cleanup
Mads Kiilerich <mads@kiilerich.com>
parents: 15546
diff changeset
  2587
  diff -r 240fb913fc1b -r 5d5ef15dfe5e .hgtags
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2588
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2589
  +++ b/.hgtags	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2590
  @@ -0,0 +1,2 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2591
  +8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2592
  +8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2593
  
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2594
  displaying [PATCH 6 of 6] d ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2595
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2596
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2597
  Content-Transfer-Encoding: 7bit
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2598
  Subject: [PATCH 6 of 6] d
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2599
  X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2600
  X-Mercurial-Series-Index: 6
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2601
  X-Mercurial-Series-Total: 6
17176
2ab165cf3d8a patchbomb: make --outgoing ignore secret changesets
Patrick Mezard <patrick@mezard.eu>
parents: 16931
diff changeset
  2602
  Message-Id: <2f9fa9b998c5fe3ac2bd.315532866@*> (glob)
21727
5f98ad8fb8d9 patchbomb: reorder header insertions to clarify code
Augie Fackler <raf@durin42.com>
parents: 21726
diff changeset
  2603
  X-Mercurial-Series-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2604
  In-Reply-To: <patchbomb.315532860@*> (glob)
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2605
  References: <patchbomb.315532860@*> (glob)
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
  2606
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2607
  Date: Tue, 01 Jan 1980 00:01:06 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2608
  From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2609
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2610
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2611
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2612
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2613
  # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2614
  #      Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2615
  # Branch test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2616
  # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2617
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2618
  d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2619
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2620
  diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2621
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2622
  +++ b/d	Thu Jan 01 00:00:04 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2623
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2624
  +d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2625
  
9947
4600e6222efb patchbomb: fix parsing of multiple addresses, allow multiple addrs in --to/cc/bcc
Marti Raudsepp <marti@juffo.org>
parents: 9913
diff changeset
  2626
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2627
dest#branch URIs:
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2628
  $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2629
  comparing with ../t
15165
3a55cee825ba patchbomb: use prompt even in non-interactive mode
Matt Mackall <mpm@selenic.com>
parents: 15164
diff changeset
  2630
  From [test]: test
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2631
  this patch series consists of 1 patches.
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2632
  
15165
3a55cee825ba patchbomb: use prompt even in non-interactive mode
Matt Mackall <mpm@selenic.com>
parents: 15164
diff changeset
  2633
  Cc: 
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2634
  
16931
ee388b0a6f67 patchbomb: lowercase status messages
Martin Geisler <mg@aragost.com>
parents: 16913
diff changeset
  2635
  displaying [PATCH] test ...
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2636
  Content-Type: text/plain; charset="us-ascii"
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2637
  MIME-Version: 1.0
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2638
  Content-Transfer-Encoding: 7bit
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2639
  Subject: [PATCH] test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2640
  X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
21282
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2641
  X-Mercurial-Series-Index: 1
697fba94dec9 patchbomb: includes series information in the header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21055
diff changeset
  2642
  X-Mercurial-Series-Total: 1
15546
1346bf5ff901 tests: show actual output in test-patchbomb.t
Mads Kiilerich <mads@kiilerich.com>
parents: 15519
diff changeset
  2643
  Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@*> (glob)
21724
36b31f7867a7 patchbomb: includes a unique series ID in email header
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 21282
diff changeset
  2644
  X-Mercurial-Series-Id: <2f9fa9b998c5fe3ac2bd.315532860@*> (glob)
12376
97ffc68f71d3 tests: add glob matching for unified tests
Brodie Rao <brodie@bitheap.org>
parents: 12375
diff changeset
  2645
  User-Agent: Mercurial-patchbomb/* (glob)
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2646
  Date: Tue, 01 Jan 1980 00:01:00 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2647
  From: test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2648
  To: foo
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2649
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2650
  # HG changeset patch
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2651
  # User test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2652
  # Date 4 0
18648
76b69cccb07a export: show 'Date' header in a format that also is readable for humans
Mads Kiilerich <mads@kiilerich.com>
parents: 17859
diff changeset
  2653
  #      Thu Jan 01 00:00:04 1970 +0000
11910
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2654
  # Branch test
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2655
  # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2656
  # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2657
  d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2658
  
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2659
  diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2660
  --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2661
  +++ b/d	Thu Jan 01 00:00:04 1970 +0000
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2662
  @@ -0,0 +1,1 @@
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2663
  +d
2afefc01259e tests: unify test-patchbomb
Andreas Freimuth <andreas.freimuth@united-bits.de>
parents: 11150
diff changeset
  2664
  
16913
f2719b387380 tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents: 16901
diff changeset
  2665
23487
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2666
Test introduction configuration
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2667
=================================
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2668
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2669
  $ echo '[patchbomb]' >> $HGRCPATH
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2670
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2671
"auto" setting
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2672
----------------
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2673
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2674
  $ echo 'intro=auto' >> $HGRCPATH
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2675
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2676
single rev
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2677
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2678
  $ hg email --date '1980-1-1 0:1' -n -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2679
  [1]
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2680
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2681
single rev + flag
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2682
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2683
  $ 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."
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2684
  Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2685
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2686
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2687
Multi rev
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2688
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2689
  $ hg email --date '1980-1-1 0:1' -n -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2690
  Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2691
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2692
"never" setting
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2693
-----------------
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2694
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2695
  $ echo 'intro=never' >> $HGRCPATH
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2696
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2697
single rev
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2698
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2699
  $ hg email --date '1980-1-1 0:1' -n -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2700
  [1]
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2701
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2702
single rev + flag
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2703
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2704
  $ 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."
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2705
  Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2706
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2707
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2708
Multi rev
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2709
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2710
  $ hg email --date '1980-1-1 0:1' -n -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2711
  [1]
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2712
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2713
Multi rev + flag
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2714
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2715
  $ 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."
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2716
  Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2717
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2718
"always" setting
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2719
-----------------
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2720
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2721
  $ echo 'intro=always' >> $HGRCPATH
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2722
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2723
single rev
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2724
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2725
  $ hg email --date '1980-1-1 0:1' -n -t foo -s test -r '10' | grep "Write the introductory message for the patch series."
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2726
  Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2727
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2728
single rev + flag
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2729
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2730
  $ 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."
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2731
  Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2732
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2733
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2734
Multi rev
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2735
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2736
  $ hg email --date '1980-1-1 0:1' -n -t foo -s test -r '9::' | grep "Write the introductory message for the patch series."
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2737
  Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2738
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2739
Multi rev + flag
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2740
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2741
  $ 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."
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2742
  Write the introductory message for the patch series.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2743
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2744
bad value setting
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2745
-----------------
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2746
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2747
  $ echo 'intro=mpmwearaclownnose' >> $HGRCPATH
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2748
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2749
single rev
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2750
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2751
  $ hg email --date '1980-1-1 0:1' -n -t foo -s test -r '10'
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2752
  From [test]: test
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2753
  this patch series consists of 1 patches.
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2754
  
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2755
  warning: invalid patchbomb.intro value "mpmwearaclownnose"
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2756
  (should be one of always, never, auto)
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2757
  Cc: 
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2758
  
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2759
  displaying [PATCH] test ...
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2760
  Content-Type: text/plain; charset="us-ascii"
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2761
  MIME-Version: 1.0
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2762
  Content-Transfer-Encoding: 7bit
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2763
  Subject: [PATCH] test
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2764
  X-Mercurial-Node: 3b6f1ec9dde933a40a115a7990f8b320477231af
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2765
  X-Mercurial-Series-Index: 1
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2766
  X-Mercurial-Series-Total: 1
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2767
  Message-Id: <3b6f1ec9dde933a40a11*> (glob)
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2768
  X-Mercurial-Series-Id: <3b6f1ec9dde933a40a11.*> (glob)
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2769
  User-Agent: Mercurial-patchbomb/* (glob)
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2770
  Date: Tue, 01 Jan 1980 00:01:00 +0000
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2771
  From: test
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2772
  To: foo
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2773
  
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2774
  # HG changeset patch
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2775
  # User test
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2776
  # Date 5 0
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2777
  #      Thu Jan 01 00:00:05 1970 +0000
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2778
  # Branch test
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2779
  # Node ID 3b6f1ec9dde933a40a115a7990f8b320477231af
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2780
  # Parent  2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2781
  dd
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2782
  
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2783
  diff -r 2f9fa9b998c5 -r 3b6f1ec9dde9 d
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2784
  --- a/d	Thu Jan 01 00:00:04 1970 +0000
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2785
  +++ b/d	Thu Jan 01 00:00:05 1970 +0000
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2786
  @@ -1,1 +1,2 @@
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2787
   d
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2788
  +d
c14af817ab76 patchbomb: add a 'patchbomb.intro' option
Pierre-Yves David <pierre-yves.david@fb.com>
parents: 23450
diff changeset
  2789