tests/test-patchbomb.t
changeset 11910 2afefc01259e
parent 11150 f66ca4431eb9
child 12196 e42bc7f66e25
equal deleted inserted replaced
11909:deea0506528c 11910:2afefc01259e
       
     1   $ fixheaders()
       
     2   > {
       
     3   >     sed -e 's/\(Message-Id:.*@\).*/\1/'  \
       
     4   >         -e 's/\(In-Reply-To:.*@\).*/\1/' \
       
     5   >         -e 's/\(References:.*@\).*/\1/'  \
       
     6   >         -e 's/\(User-Agent:.*\)\/.*/\1/'  \
       
     7   >         -e 's/===.*/===/'
       
     8   > }
       
     9   $ echo "[extensions]" >> $HGRCPATH
       
    10   $ echo "patchbomb=" >> $HGRCPATH
       
    11 
       
    12   $ hg init t
       
    13   $ cd t
       
    14   $ echo a > a
       
    15   $ hg commit -Ama -d '1 0'
       
    16   adding a
       
    17 
       
    18   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
       
    19   This patch series consists of 1 patches.
       
    20   
       
    21   
       
    22   Displaying [PATCH] a ...
       
    23   Content-Type: text/plain; charset="us-ascii"
       
    24   MIME-Version: 1.0
       
    25   Content-Transfer-Encoding: 7bit
       
    26   Subject: [PATCH] a
       
    27   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
    28   Message-Id: <8580ff50825a50c8f716.60@.*
       
    29   User-Agent: Mercurial-patchbomb/.*
       
    30   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
    31   From: quux
       
    32   To: foo
       
    33   Cc: bar
       
    34   
       
    35   # HG changeset patch
       
    36   # User test
       
    37   # Date 1 0
       
    38   # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
    39   # Parent  0000000000000000000000000000000000000000
       
    40   a
       
    41   
       
    42   diff -r 000000000000 -r 8580ff50825a a
       
    43   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
    44   +++ b/a	Thu Jan 01 00:00:01 1970 +0000
       
    45   @@ -0,0 +1,1 @@
       
    46   +a
       
    47   
       
    48 
       
    49   $ echo b > b
       
    50   $ hg commit -Amb -d '2 0'
       
    51   adding b
       
    52 
       
    53   $ hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test -r 0:tip
       
    54   This patch series consists of 2 patches.
       
    55   
       
    56   
       
    57   Write the introductory message for the patch series.
       
    58   
       
    59   
       
    60   Displaying [PATCH 0 of 2] test ...
       
    61   Content-Type: text/plain; charset="us-ascii"
       
    62   MIME-Version: 1.0
       
    63   Content-Transfer-Encoding: 7bit
       
    64   Subject: [PATCH 0 of 2] test
       
    65   Message-Id: <patchbomb.120@[^>]*>
       
    66   User-Agent: Mercurial-patchbomb/.*
       
    67   Date: Thu, 01 Jan 1970 00:02:00 +0000
       
    68   From: quux
       
    69   To: foo
       
    70   Cc: bar
       
    71   
       
    72   
       
    73   Displaying [PATCH 1 of 2] a ...
       
    74   Content-Type: text/plain; charset="us-ascii"
       
    75   MIME-Version: 1.0
       
    76   Content-Transfer-Encoding: 7bit
       
    77   Subject: [PATCH 1 of 2] a
       
    78   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
    79   Message-Id: <8580ff50825a50c8f716.121@[^>]*>
       
    80   In-Reply-To: <patchbomb.120@[^>]*>
       
    81   References: <patchbomb.120@[^>]*>
       
    82   User-Agent: Mercurial-patchbomb/.*
       
    83   Date: Thu, 01 Jan 1970 00:02:01 +0000
       
    84   From: quux
       
    85   To: foo
       
    86   Cc: bar
       
    87   
       
    88   # HG changeset patch
       
    89   # User test
       
    90   # Date 1 0
       
    91   # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
    92   # Parent  0000000000000000000000000000000000000000
       
    93   a
       
    94   
       
    95   diff -r 000000000000 -r 8580ff50825a a
       
    96   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
    97   +++ b/a	Thu Jan 01 00:00:01 1970 +0000
       
    98   @@ -0,0 +1,1 @@
       
    99   +a
       
   100   
       
   101   Displaying [PATCH 2 of 2] b ...
       
   102   Content-Type: text/plain; charset="us-ascii"
       
   103   MIME-Version: 1.0
       
   104   Content-Transfer-Encoding: 7bit
       
   105   Subject: [PATCH 2 of 2] b
       
   106   X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
   107   Message-Id: <97d72e5f12c7e84f8506.122@[^>]*>
       
   108   In-Reply-To: <patchbomb.120@[^>]*>
       
   109   References: <patchbomb.120@[^>]*>
       
   110   User-Agent: Mercurial-patchbomb/.*
       
   111   Date: Thu, 01 Jan 1970 00:02:02 +0000
       
   112   From: quux
       
   113   To: foo
       
   114   Cc: bar
       
   115   
       
   116   # HG changeset patch
       
   117   # User test
       
   118   # Date 2 0
       
   119   # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
   120   # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
       
   121   b
       
   122   
       
   123   diff -r 8580ff50825a -r 97d72e5f12c7 b
       
   124   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   125   +++ b/b	Thu Jan 01 00:00:02 1970 +0000
       
   126   @@ -0,0 +1,1 @@
       
   127   +b
       
   128   
       
   129 
       
   130   $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip
       
   131   This patch series consists of 2 patches.
       
   132   
       
   133   
       
   134   Write the introductory message for the patch series.
       
   135   
       
   136   
       
   137   Writing [PATCH 0 of 2] test ...
       
   138   Writing [PATCH 1 of 2] a ...
       
   139   Writing [PATCH 2 of 2] b ...
       
   140 
       
   141   $ cd ..
       
   142 
       
   143   $ hg clone -q t t2
       
   144   $ cd t2
       
   145   $ echo c > c
       
   146   $ hg commit -Amc -d '3 0'
       
   147   adding c
       
   148 
       
   149   $ cat > description <<EOF
       
   150   > a multiline
       
   151   > 
       
   152   > description
       
   153   > EOF
       
   154 
       
   155 
       
   156 test bundle and description:
       
   157   $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
       
   158   >  -c bar -s test -r tip -b --desc description | fixheaders
       
   159   searching for changes
       
   160   1 changesets found
       
   161   
       
   162   Displaying test ...
       
   163   Content-Type: multipart/mixed; boundary="===
       
   164   MIME-Version: 1.0
       
   165   Subject: test
       
   166   Message-Id: <patchbomb.180@
       
   167   User-Agent: Mercurial-patchbomb
       
   168   Date: Thu, 01 Jan 1970 00:03:00 +0000
       
   169   From: quux
       
   170   To: foo
       
   171   Cc: bar
       
   172   
       
   173   --===
       
   174   Content-Type: text/plain; charset="us-ascii"
       
   175   MIME-Version: 1.0
       
   176   Content-Transfer-Encoding: 7bit
       
   177   
       
   178   a multiline
       
   179   
       
   180   description
       
   181   
       
   182   --===
       
   183   Content-Type: application/x-mercurial-bundle
       
   184   MIME-Version: 1.0
       
   185   Content-Disposition: attachment; filename="bundle.hg"
       
   186   Content-Transfer-Encoding: base64
       
   187   
       
   188   SEcxMEJaaDkxQVkmU1nvR7I3AAAN////lFYQWj1/4HwRkdC/AywIAk0E4pfoSIIIgQCgGEQOcLAA
       
   189   2tA1VPyp4mkeoG0EaaPU0GTT1GjRiNPIg9CZGBqZ6UbU9J+KFU09DNUaGgAAAAAANAGgAAAAA1U8
       
   190   oGgAADQGgAANNANAAAAAAZipFLz3XoakCEQB3PVPyHJVi1iYkAAKQAZQGpQGZESInRnCFMqLDla2
       
   191   Bx3qfRQeA2N4lnzKkAmP8kR2asievLLXXebVU8Vg4iEBqcJNJAxIapSU6SM4888ZAciRG6MYAIEE
       
   192   SlIBpFisgGkyRjX//TMtfcUAEsGu56+YnE1OlTZmzKm8BSu2rvo4rHAYYaadIFFuTy0LYgIkgLVD
       
   193   sgVa2F19D1tx9+hgbAygLgQwaIqcDdgA4BjQgIiz/AEP72++llgDKhKducqodGE4B0ETqF3JFOFC
       
   194   Q70eyNw=
       
   195   --===
       
   196 
       
   197 utf-8 patch:
       
   198   $ python -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();'
       
   199   $ hg commit -A -d '4 0' -m 'charset=utf-8; content-transfer-encoding: base64'
       
   200   adding description
       
   201   adding utf
       
   202 
       
   203 no mime encoding for email --test:
       
   204   $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n | fixheaders > mailtest
       
   205 
       
   206 md5sum of 8-bit output:
       
   207   $ $TESTDIR/md5sum.py mailtest
       
   208   e726c29b3008e77994c7572563e57c34  mailtest
       
   209 
       
   210   $ rm mailtest
       
   211 
       
   212 mime encoded mbox (base64):
       
   213   $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
       
   214   This patch series consists of 1 patches.
       
   215   
       
   216   
       
   217   Writing [PATCH] charset=utf-8; content-transfer-encoding: base64 ...
       
   218 
       
   219   $ cat mbox
       
   220   From quux Thu Jan 01 00:04:01 1970
       
   221   Content-Type: text/plain; charset="utf-8"
       
   222   MIME-Version: 1.0
       
   223   Content-Transfer-Encoding: base64
       
   224   Subject: [PATCH] charset=utf-8; content-transfer-encoding: base64
       
   225   X-Mercurial-Node: c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
       
   226   Message-Id: <c3c9e37db9f4fe4882cd.240@.*
       
   227   User-Agent: Mercurial-patchbomb/.*
       
   228   Date: Thu, 01 Jan 1970 00:04:00 +0000
       
   229   From: quux
       
   230   To: foo
       
   231   Cc: bar
       
   232   
       
   233   IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojIE5vZGUgSUQgYzNj
       
   234   OWUzN2RiOWY0ZmU0ODgyY2RhMzliYWY0MmZlZDZiYWQ4YjE1YQojIFBhcmVudCAgZmYyYzlmYTIw
       
   235   MThiMTVmYTc0YjMzMzYzYmRhOTUyNzMyM2UyYTk5ZgpjaGFyc2V0PXV0Zi04OyBjb250ZW50LXRy
       
   236   YW5zZmVyLWVuY29kaW5nOiBiYXNlNjQKCmRpZmYgLXIgZmYyYzlmYTIwMThiIC1yIGMzYzllMzdk
       
   237   YjlmNCBkZXNjcmlwdGlvbgotLS0gL2Rldi9udWxsCVRodSBKYW4gMDEgMDA6MDA6MDAgMTk3MCAr
       
   238   MDAwMAorKysgYi9kZXNjcmlwdGlvbglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAKQEAg
       
   239   LTAsMCArMSwzIEBACithIG11bHRpbGluZQorCitkZXNjcmlwdGlvbgpkaWZmIC1yIGZmMmM5ZmEy
       
   240   MDE4YiAtciBjM2M5ZTM3ZGI5ZjQgdXRmCi0tLSAvZGV2L251bGwJVGh1IEphbiAwMSAwMDowMDow
       
   241   MCAxOTcwICswMDAwCisrKyBiL3V0ZglUaHUgSmFuIDAxIDAwOjAwOjA0IDE5NzAgKzAwMDAKQEAg
       
   242   LTAsMCArMSwxIEBACitow7ZtbWEhCg==
       
   243   
       
   244   
       
   245   $ rm mbox
       
   246 
       
   247 mime encoded mbox (quoted-printable):
       
   248   $ python -c 'fp = open("qp", "wb"); fp.write("%s\nfoo\n\nbar\n" % ("x" * 1024)); fp.close();'
       
   249   $ hg commit -A -d '4 0' -m 'charset=utf-8; content-transfer-encoding: quoted-printable'
       
   250   adding qp
       
   251 
       
   252 no mime encoding for email --test:
       
   253   $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n | \
       
   254   >  fixheaders > mailtest
       
   255 md5sum of qp output:
       
   256   $ $TESTDIR/md5sum.py mailtest
       
   257   0402c7d033e04044e423bb04816f9dae  mailtest
       
   258   $ rm mailtest
       
   259 
       
   260 mime encoded mbox (quoted-printable):
       
   261   $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
       
   262   This patch series consists of 1 patches.
       
   263   
       
   264   
       
   265   Writing [PATCH] charset=utf-8; content-transfer-encoding: quoted-printable ...
       
   266   $ cat mbox | fixheaders
       
   267   From quux Thu Jan 01 00:04:01 1970
       
   268   Content-Type: text/plain; charset="us-ascii"
       
   269   MIME-Version: 1.0
       
   270   Content-Transfer-Encoding: quoted-printable
       
   271   Subject: [PATCH] charset=utf-8; content-transfer-encoding: quoted-printable
       
   272   X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376
       
   273   Message-Id: <c655633f8c87700bb38c.240@
       
   274   User-Agent: Mercurial-patchbomb
       
   275   Date: Thu, 01 Jan 1970 00:04:00 +0000
       
   276   From: quux
       
   277   To: foo
       
   278   Cc: bar
       
   279   
       
   280   # HG changeset patch
       
   281   # User test
       
   282   # Date 4 0
       
   283   # Node ID c655633f8c87700bb38cc6a59a2753bdc5a6c376
       
   284   # Parent  c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
       
   285   charset=3Dutf-8; content-transfer-encoding: quoted-printable
       
   286   
       
   287   diff -r c3c9e37db9f4 -r c655633f8c87 qp
       
   288   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   289   +++ b/qp	Thu Jan 01 00:00:04 1970 +0000
       
   290   @@ -0,0 +1,4 @@
       
   291   +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   292   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   293   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   294   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   295   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   296   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   297   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   298   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   299   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   300   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   301   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   302   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   303   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   304   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
       
   305   +foo
       
   306   +
       
   307   +bar
       
   308   
       
   309   
       
   310 
       
   311   $ rm mbox
       
   312 
       
   313 iso-8859-1 patch:
       
   314   $ python -c 'fp = open("isolatin", "wb"); fp.write("h\xF6mma!\n"); fp.close();'
       
   315   $ hg commit -A -d '5 0' -m 'charset=us-ascii; content-transfer-encoding: 8bit'
       
   316   adding isolatin
       
   317 
       
   318 fake ascii mbox:
       
   319   $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
       
   320   This patch series consists of 1 patches.
       
   321   
       
   322   
       
   323   Writing [PATCH] charset=us-ascii; content-transfer-encoding: 8bit ...
       
   324   $ fixheaders < mbox > mboxfix
       
   325 
       
   326 md5sum of 8-bit output:
       
   327   $ $TESTDIR/md5sum.py mboxfix
       
   328   9ea043d8fc43a71045114508baed144b  mboxfix
       
   329 
       
   330 test diffstat for single patch:
       
   331   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2 | \
       
   332   >  fixheaders
       
   333   This patch series consists of 1 patches.
       
   334   
       
   335   c
       
   336   
       
   337    c |  1 +
       
   338    1 files changed, 1 insertions(+), 0 deletions(-)
       
   339   
       
   340   
       
   341   Displaying [PATCH] test ...
       
   342   Content-Type: text/plain; charset="us-ascii"
       
   343   MIME-Version: 1.0
       
   344   Content-Transfer-Encoding: 7bit
       
   345   Subject: [PATCH] test
       
   346   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
   347   Message-Id: <ff2c9fa2018b15fa74b3.60@
       
   348   User-Agent: Mercurial-patchbomb
       
   349   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
   350   From: quux
       
   351   To: foo
       
   352   Cc: bar
       
   353   
       
   354    c |  1 +
       
   355    1 files changed, 1 insertions(+), 0 deletions(-)
       
   356   
       
   357   
       
   358   # HG changeset patch
       
   359   # User test
       
   360   # Date 3 0
       
   361   # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
   362   # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
   363   c
       
   364   
       
   365   diff -r 97d72e5f12c7 -r ff2c9fa2018b c
       
   366   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   367   +++ b/c	Thu Jan 01 00:00:03 1970 +0000
       
   368   @@ -0,0 +1,1 @@
       
   369   +c
       
   370   
       
   371 
       
   372 test diffstat for multiple patches:
       
   373   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \
       
   374   >  -r 0:1 | fixheaders
       
   375   This patch series consists of 2 patches.
       
   376   
       
   377   a
       
   378   
       
   379    a |  1 +
       
   380    1 files changed, 1 insertions(+), 0 deletions(-)
       
   381   
       
   382   b
       
   383   
       
   384    b |  1 +
       
   385    1 files changed, 1 insertions(+), 0 deletions(-)
       
   386   
       
   387   Final summary:
       
   388   
       
   389    a |  1 +
       
   390    b |  1 +
       
   391    2 files changed, 2 insertions(+), 0 deletions(-)
       
   392   
       
   393   
       
   394   Write the introductory message for the patch series.
       
   395   
       
   396   
       
   397   Displaying [PATCH 0 of 2] test ...
       
   398   Content-Type: text/plain; charset="us-ascii"
       
   399   MIME-Version: 1.0
       
   400   Content-Transfer-Encoding: 7bit
       
   401   Subject: [PATCH 0 of 2] test
       
   402   Message-Id: <patchbomb.60@
       
   403   User-Agent: Mercurial-patchbomb
       
   404   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
   405   From: quux
       
   406   To: foo
       
   407   Cc: bar
       
   408   
       
   409   
       
   410    a |  1 +
       
   411    b |  1 +
       
   412    2 files changed, 2 insertions(+), 0 deletions(-)
       
   413   
       
   414   Displaying [PATCH 1 of 2] a ...
       
   415   Content-Type: text/plain; charset="us-ascii"
       
   416   MIME-Version: 1.0
       
   417   Content-Transfer-Encoding: 7bit
       
   418   Subject: [PATCH 1 of 2] a
       
   419   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
   420   Message-Id: <8580ff50825a50c8f716.61@
       
   421   In-Reply-To: <patchbomb.60@
       
   422   References: <patchbomb.60@
       
   423   User-Agent: Mercurial-patchbomb
       
   424   Date: Thu, 01 Jan 1970 00:01:01 +0000
       
   425   From: quux
       
   426   To: foo
       
   427   Cc: bar
       
   428   
       
   429    a |  1 +
       
   430    1 files changed, 1 insertions(+), 0 deletions(-)
       
   431   
       
   432   
       
   433   # HG changeset patch
       
   434   # User test
       
   435   # Date 1 0
       
   436   # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
   437   # Parent  0000000000000000000000000000000000000000
       
   438   a
       
   439   
       
   440   diff -r 000000000000 -r 8580ff50825a a
       
   441   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   442   +++ b/a	Thu Jan 01 00:00:01 1970 +0000
       
   443   @@ -0,0 +1,1 @@
       
   444   +a
       
   445   
       
   446   Displaying [PATCH 2 of 2] b ...
       
   447   Content-Type: text/plain; charset="us-ascii"
       
   448   MIME-Version: 1.0
       
   449   Content-Transfer-Encoding: 7bit
       
   450   Subject: [PATCH 2 of 2] b
       
   451   X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
   452   Message-Id: <97d72e5f12c7e84f8506.62@
       
   453   In-Reply-To: <patchbomb.60@
       
   454   References: <patchbomb.60@
       
   455   User-Agent: Mercurial-patchbomb
       
   456   Date: Thu, 01 Jan 1970 00:01:02 +0000
       
   457   From: quux
       
   458   To: foo
       
   459   Cc: bar
       
   460   
       
   461    b |  1 +
       
   462    1 files changed, 1 insertions(+), 0 deletions(-)
       
   463   
       
   464   
       
   465   # HG changeset patch
       
   466   # User test
       
   467   # Date 2 0
       
   468   # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
   469   # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
       
   470   b
       
   471   
       
   472   diff -r 8580ff50825a -r 97d72e5f12c7 b
       
   473   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   474   +++ b/b	Thu Jan 01 00:00:02 1970 +0000
       
   475   @@ -0,0 +1,1 @@
       
   476   +b
       
   477   
       
   478 
       
   479 test inline for single patch:
       
   480   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | \
       
   481   >  fixheaders
       
   482   This patch series consists of 1 patches.
       
   483   
       
   484   
       
   485   Displaying [PATCH] test ...
       
   486   Content-Type: multipart/mixed; boundary="===
       
   487   MIME-Version: 1.0
       
   488   Subject: [PATCH] test
       
   489   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
   490   Message-Id: <ff2c9fa2018b15fa74b3.60@
       
   491   User-Agent: Mercurial-patchbomb
       
   492   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
   493   From: quux
       
   494   To: foo
       
   495   Cc: bar
       
   496   
       
   497   --===
       
   498   Content-Type: text/x-patch; charset="us-ascii"
       
   499   MIME-Version: 1.0
       
   500   Content-Transfer-Encoding: 7bit
       
   501   Content-Disposition: inline; filename=t2.patch
       
   502   
       
   503   # HG changeset patch
       
   504   # User test
       
   505   # Date 3 0
       
   506   # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
   507   # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
   508   c
       
   509   
       
   510   diff -r 97d72e5f12c7 -r ff2c9fa2018b c
       
   511   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   512   +++ b/c	Thu Jan 01 00:00:03 1970 +0000
       
   513   @@ -0,0 +1,1 @@
       
   514   +c
       
   515   
       
   516   --===
       
   517 
       
   518 
       
   519 test inline for single patch (quoted-printable):
       
   520   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4 | \
       
   521   >  fixheaders
       
   522   This patch series consists of 1 patches.
       
   523   
       
   524   
       
   525   Displaying [PATCH] test ...
       
   526   Content-Type: multipart/mixed; boundary="===
       
   527   MIME-Version: 1.0
       
   528   Subject: [PATCH] test
       
   529   X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376
       
   530   Message-Id: <c655633f8c87700bb38c.60@
       
   531   User-Agent: Mercurial-patchbomb
       
   532   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
   533   From: quux
       
   534   To: foo
       
   535   Cc: bar
       
   536   
       
   537   --===
       
   538   Content-Type: text/x-patch; charset="us-ascii"
       
   539   MIME-Version: 1.0
       
   540   Content-Transfer-Encoding: quoted-printable
       
   541   Content-Disposition: inline; filename=t2.patch
       
   542   
       
   543   # HG changeset patch
       
   544   # User test
       
   545   # Date 4 0
       
   546   # Node ID c655633f8c87700bb38cc6a59a2753bdc5a6c376
       
   547   # Parent  c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
       
   548   charset=3Dutf-8; content-transfer-encoding: quoted-printable
       
   549   
       
   550   diff -r c3c9e37db9f4 -r c655633f8c87 qp
       
   551   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   552   +++ b/qp	Thu Jan 01 00:00:04 1970 +0000
       
   553   @@ -0,0 +1,4 @@
       
   554   +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   555   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   556   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   557   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   558   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   559   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   560   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   561   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   562   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   563   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   564   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   565   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   566   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   567   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
       
   568   +foo
       
   569   +
       
   570   +bar
       
   571   
       
   572   --===
       
   573 
       
   574 test inline for multiple patches:
       
   575   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
       
   576   >  -r 0:1 -r 4 | fixheaders
       
   577   This patch series consists of 3 patches.
       
   578   
       
   579   
       
   580   Write the introductory message for the patch series.
       
   581   
       
   582   
       
   583   Displaying [PATCH 0 of 3] test ...
       
   584   Content-Type: text/plain; charset="us-ascii"
       
   585   MIME-Version: 1.0
       
   586   Content-Transfer-Encoding: 7bit
       
   587   Subject: [PATCH 0 of 3] test
       
   588   Message-Id: <patchbomb.60@
       
   589   User-Agent: Mercurial-patchbomb
       
   590   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
   591   From: quux
       
   592   To: foo
       
   593   Cc: bar
       
   594   
       
   595   
       
   596   Displaying [PATCH 1 of 3] a ...
       
   597   Content-Type: multipart/mixed; boundary="===
       
   598   MIME-Version: 1.0
       
   599   Subject: [PATCH 1 of 3] a
       
   600   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
   601   Message-Id: <8580ff50825a50c8f716.61@
       
   602   In-Reply-To: <patchbomb.60@
       
   603   References: <patchbomb.60@
       
   604   User-Agent: Mercurial-patchbomb
       
   605   Date: Thu, 01 Jan 1970 00:01:01 +0000
       
   606   From: quux
       
   607   To: foo
       
   608   Cc: bar
       
   609   
       
   610   --===
       
   611   Content-Type: text/x-patch; charset="us-ascii"
       
   612   MIME-Version: 1.0
       
   613   Content-Transfer-Encoding: 7bit
       
   614   Content-Disposition: inline; filename=t2-1.patch
       
   615   
       
   616   # HG changeset patch
       
   617   # User test
       
   618   # Date 1 0
       
   619   # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
   620   # Parent  0000000000000000000000000000000000000000
       
   621   a
       
   622   
       
   623   diff -r 000000000000 -r 8580ff50825a a
       
   624   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   625   +++ b/a	Thu Jan 01 00:00:01 1970 +0000
       
   626   @@ -0,0 +1,1 @@
       
   627   +a
       
   628   
       
   629   --===
       
   630   Displaying [PATCH 2 of 3] b ...
       
   631   Content-Type: multipart/mixed; boundary="===
       
   632   MIME-Version: 1.0
       
   633   Subject: [PATCH 2 of 3] b
       
   634   X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
   635   Message-Id: <97d72e5f12c7e84f8506.62@
       
   636   In-Reply-To: <patchbomb.60@
       
   637   References: <patchbomb.60@
       
   638   User-Agent: Mercurial-patchbomb
       
   639   Date: Thu, 01 Jan 1970 00:01:02 +0000
       
   640   From: quux
       
   641   To: foo
       
   642   Cc: bar
       
   643   
       
   644   --===
       
   645   Content-Type: text/x-patch; charset="us-ascii"
       
   646   MIME-Version: 1.0
       
   647   Content-Transfer-Encoding: 7bit
       
   648   Content-Disposition: inline; filename=t2-2.patch
       
   649   
       
   650   # HG changeset patch
       
   651   # User test
       
   652   # Date 2 0
       
   653   # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
   654   # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
       
   655   b
       
   656   
       
   657   diff -r 8580ff50825a -r 97d72e5f12c7 b
       
   658   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   659   +++ b/b	Thu Jan 01 00:00:02 1970 +0000
       
   660   @@ -0,0 +1,1 @@
       
   661   +b
       
   662   
       
   663   --===
       
   664   Displaying [PATCH 3 of 3] charset=utf-8; content-transfer-encoding: quoted-printable ...
       
   665   Content-Type: multipart/mixed; boundary="===
       
   666   MIME-Version: 1.0
       
   667   Subject: [PATCH 3 of 3] charset=utf-8;
       
   668    content-transfer-encoding: quoted-printable
       
   669   X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376
       
   670   Message-Id: <c655633f8c87700bb38c.63@
       
   671   In-Reply-To: <patchbomb.60@
       
   672   References: <patchbomb.60@
       
   673   User-Agent: Mercurial-patchbomb
       
   674   Date: Thu, 01 Jan 1970 00:01:03 +0000
       
   675   From: quux
       
   676   To: foo
       
   677   Cc: bar
       
   678   
       
   679   --===
       
   680   Content-Type: text/x-patch; charset="us-ascii"
       
   681   MIME-Version: 1.0
       
   682   Content-Transfer-Encoding: quoted-printable
       
   683   Content-Disposition: inline; filename=t2-3.patch
       
   684   
       
   685   # HG changeset patch
       
   686   # User test
       
   687   # Date 4 0
       
   688   # Node ID c655633f8c87700bb38cc6a59a2753bdc5a6c376
       
   689   # Parent  c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
       
   690   charset=3Dutf-8; content-transfer-encoding: quoted-printable
       
   691   
       
   692   diff -r c3c9e37db9f4 -r c655633f8c87 qp
       
   693   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   694   +++ b/qp	Thu Jan 01 00:00:04 1970 +0000
       
   695   @@ -0,0 +1,4 @@
       
   696   +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   697   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   698   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   699   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   700   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   701   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   702   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   703   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   704   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   705   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   706   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   707   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   708   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   709   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
       
   710   +foo
       
   711   +
       
   712   +bar
       
   713   
       
   714   --===
       
   715 
       
   716 test attach for single patch:
       
   717   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2 | \
       
   718   >  fixheaders
       
   719   This patch series consists of 1 patches.
       
   720   
       
   721   
       
   722   Displaying [PATCH] test ...
       
   723   Content-Type: multipart/mixed; boundary="===
       
   724   MIME-Version: 1.0
       
   725   Subject: [PATCH] test
       
   726   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
   727   Message-Id: <ff2c9fa2018b15fa74b3.60@
       
   728   User-Agent: Mercurial-patchbomb
       
   729   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
   730   From: quux
       
   731   To: foo
       
   732   Cc: bar
       
   733   
       
   734   --===
       
   735   Content-Type: text/plain; charset="us-ascii"
       
   736   MIME-Version: 1.0
       
   737   Content-Transfer-Encoding: 7bit
       
   738   
       
   739   Patch subject is complete summary.
       
   740   
       
   741   
       
   742   
       
   743   --===
       
   744   Content-Type: text/x-patch; charset="us-ascii"
       
   745   MIME-Version: 1.0
       
   746   Content-Transfer-Encoding: 7bit
       
   747   Content-Disposition: attachment; filename=t2.patch
       
   748   
       
   749   # HG changeset patch
       
   750   # User test
       
   751   # Date 3 0
       
   752   # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
   753   # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
   754   c
       
   755   
       
   756   diff -r 97d72e5f12c7 -r ff2c9fa2018b c
       
   757   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   758   +++ b/c	Thu Jan 01 00:00:03 1970 +0000
       
   759   @@ -0,0 +1,1 @@
       
   760   +c
       
   761   
       
   762   --===
       
   763 
       
   764 test attach for single patch (quoted-printable):
       
   765   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4 | \
       
   766   >  fixheaders
       
   767   This patch series consists of 1 patches.
       
   768   
       
   769   
       
   770   Displaying [PATCH] test ...
       
   771   Content-Type: multipart/mixed; boundary="===
       
   772   MIME-Version: 1.0
       
   773   Subject: [PATCH] test
       
   774   X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376
       
   775   Message-Id: <c655633f8c87700bb38c.60@
       
   776   User-Agent: Mercurial-patchbomb
       
   777   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
   778   From: quux
       
   779   To: foo
       
   780   Cc: bar
       
   781   
       
   782   --===
       
   783   Content-Type: text/plain; charset="us-ascii"
       
   784   MIME-Version: 1.0
       
   785   Content-Transfer-Encoding: 7bit
       
   786   
       
   787   Patch subject is complete summary.
       
   788   
       
   789   
       
   790   
       
   791   --===
       
   792   Content-Type: text/x-patch; charset="us-ascii"
       
   793   MIME-Version: 1.0
       
   794   Content-Transfer-Encoding: quoted-printable
       
   795   Content-Disposition: attachment; filename=t2.patch
       
   796   
       
   797   # HG changeset patch
       
   798   # User test
       
   799   # Date 4 0
       
   800   # Node ID c655633f8c87700bb38cc6a59a2753bdc5a6c376
       
   801   # Parent  c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
       
   802   charset=3Dutf-8; content-transfer-encoding: quoted-printable
       
   803   
       
   804   diff -r c3c9e37db9f4 -r c655633f8c87 qp
       
   805   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   806   +++ b/qp	Thu Jan 01 00:00:04 1970 +0000
       
   807   @@ -0,0 +1,4 @@
       
   808   +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   809   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   810   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   811   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   812   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   813   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   814   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   815   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   816   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   817   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   818   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   819   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   820   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   821   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
       
   822   +foo
       
   823   +
       
   824   +bar
       
   825   
       
   826   --===
       
   827 
       
   828 test attach for multiple patches:
       
   829   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
       
   830   >  -r 0:1 -r 4 | fixheaders
       
   831   This patch series consists of 3 patches.
       
   832   
       
   833   
       
   834   Write the introductory message for the patch series.
       
   835   
       
   836   
       
   837   Displaying [PATCH 0 of 3] test ...
       
   838   Content-Type: text/plain; charset="us-ascii"
       
   839   MIME-Version: 1.0
       
   840   Content-Transfer-Encoding: 7bit
       
   841   Subject: [PATCH 0 of 3] test
       
   842   Message-Id: <patchbomb.60@
       
   843   User-Agent: Mercurial-patchbomb
       
   844   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
   845   From: quux
       
   846   To: foo
       
   847   Cc: bar
       
   848   
       
   849   
       
   850   Displaying [PATCH 1 of 3] a ...
       
   851   Content-Type: multipart/mixed; boundary="===
       
   852   MIME-Version: 1.0
       
   853   Subject: [PATCH 1 of 3] a
       
   854   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
   855   Message-Id: <8580ff50825a50c8f716.61@
       
   856   In-Reply-To: <patchbomb.60@
       
   857   References: <patchbomb.60@
       
   858   User-Agent: Mercurial-patchbomb
       
   859   Date: Thu, 01 Jan 1970 00:01:01 +0000
       
   860   From: quux
       
   861   To: foo
       
   862   Cc: bar
       
   863   
       
   864   --===
       
   865   Content-Type: text/plain; charset="us-ascii"
       
   866   MIME-Version: 1.0
       
   867   Content-Transfer-Encoding: 7bit
       
   868   
       
   869   Patch subject is complete summary.
       
   870   
       
   871   
       
   872   
       
   873   --===
       
   874   Content-Type: text/x-patch; charset="us-ascii"
       
   875   MIME-Version: 1.0
       
   876   Content-Transfer-Encoding: 7bit
       
   877   Content-Disposition: attachment; filename=t2-1.patch
       
   878   
       
   879   # HG changeset patch
       
   880   # User test
       
   881   # Date 1 0
       
   882   # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
   883   # Parent  0000000000000000000000000000000000000000
       
   884   a
       
   885   
       
   886   diff -r 000000000000 -r 8580ff50825a a
       
   887   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   888   +++ b/a	Thu Jan 01 00:00:01 1970 +0000
       
   889   @@ -0,0 +1,1 @@
       
   890   +a
       
   891   
       
   892   --===
       
   893   Displaying [PATCH 2 of 3] b ...
       
   894   Content-Type: multipart/mixed; boundary="===
       
   895   MIME-Version: 1.0
       
   896   Subject: [PATCH 2 of 3] b
       
   897   X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
   898   Message-Id: <97d72e5f12c7e84f8506.62@
       
   899   In-Reply-To: <patchbomb.60@
       
   900   References: <patchbomb.60@
       
   901   User-Agent: Mercurial-patchbomb
       
   902   Date: Thu, 01 Jan 1970 00:01:02 +0000
       
   903   From: quux
       
   904   To: foo
       
   905   Cc: bar
       
   906   
       
   907   --===
       
   908   Content-Type: text/plain; charset="us-ascii"
       
   909   MIME-Version: 1.0
       
   910   Content-Transfer-Encoding: 7bit
       
   911   
       
   912   Patch subject is complete summary.
       
   913   
       
   914   
       
   915   
       
   916   --===
       
   917   Content-Type: text/x-patch; charset="us-ascii"
       
   918   MIME-Version: 1.0
       
   919   Content-Transfer-Encoding: 7bit
       
   920   Content-Disposition: attachment; filename=t2-2.patch
       
   921   
       
   922   # HG changeset patch
       
   923   # User test
       
   924   # Date 2 0
       
   925   # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
   926   # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
       
   927   b
       
   928   
       
   929   diff -r 8580ff50825a -r 97d72e5f12c7 b
       
   930   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   931   +++ b/b	Thu Jan 01 00:00:02 1970 +0000
       
   932   @@ -0,0 +1,1 @@
       
   933   +b
       
   934   
       
   935   --===
       
   936   Displaying [PATCH 3 of 3] charset=utf-8; content-transfer-encoding: quoted-printable ...
       
   937   Content-Type: multipart/mixed; boundary="===
       
   938   MIME-Version: 1.0
       
   939   Subject: [PATCH 3 of 3] charset=utf-8;
       
   940    content-transfer-encoding: quoted-printable
       
   941   X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376
       
   942   Message-Id: <c655633f8c87700bb38c.63@
       
   943   In-Reply-To: <patchbomb.60@
       
   944   References: <patchbomb.60@
       
   945   User-Agent: Mercurial-patchbomb
       
   946   Date: Thu, 01 Jan 1970 00:01:03 +0000
       
   947   From: quux
       
   948   To: foo
       
   949   Cc: bar
       
   950   
       
   951   --===
       
   952   Content-Type: text/plain; charset="us-ascii"
       
   953   MIME-Version: 1.0
       
   954   Content-Transfer-Encoding: 7bit
       
   955   
       
   956   Patch subject is complete summary.
       
   957   
       
   958   
       
   959   
       
   960   --===
       
   961   Content-Type: text/x-patch; charset="us-ascii"
       
   962   MIME-Version: 1.0
       
   963   Content-Transfer-Encoding: quoted-printable
       
   964   Content-Disposition: attachment; filename=t2-3.patch
       
   965   
       
   966   # HG changeset patch
       
   967   # User test
       
   968   # Date 4 0
       
   969   # Node ID c655633f8c87700bb38cc6a59a2753bdc5a6c376
       
   970   # Parent  c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
       
   971   charset=3Dutf-8; content-transfer-encoding: quoted-printable
       
   972   
       
   973   diff -r c3c9e37db9f4 -r c655633f8c87 qp
       
   974   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   975   +++ b/qp	Thu Jan 01 00:00:04 1970 +0000
       
   976   @@ -0,0 +1,4 @@
       
   977   +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   978   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   979   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   980   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   981   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   982   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   983   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   984   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   985   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   986   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   987   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   988   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   989   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
   990   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
       
   991   +foo
       
   992   +
       
   993   +bar
       
   994   
       
   995   --===
       
   996 
       
   997 test intro for single patch:
       
   998   $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
       
   999   >  -r 2 | fixheaders
       
  1000   This patch series consists of 1 patches.
       
  1001   
       
  1002   
       
  1003   Write the introductory message for the patch series.
       
  1004   
       
  1005   
       
  1006   Displaying [PATCH 0 of 1] test ...
       
  1007   Content-Type: text/plain; charset="us-ascii"
       
  1008   MIME-Version: 1.0
       
  1009   Content-Transfer-Encoding: 7bit
       
  1010   Subject: [PATCH 0 of 1] test
       
  1011   Message-Id: <patchbomb.60@
       
  1012   User-Agent: Mercurial-patchbomb
       
  1013   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
  1014   From: quux
       
  1015   To: foo
       
  1016   Cc: bar
       
  1017   
       
  1018   
       
  1019   Displaying [PATCH 1 of 1] c ...
       
  1020   Content-Type: text/plain; charset="us-ascii"
       
  1021   MIME-Version: 1.0
       
  1022   Content-Transfer-Encoding: 7bit
       
  1023   Subject: [PATCH 1 of 1] c
       
  1024   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1025   Message-Id: <ff2c9fa2018b15fa74b3.61@
       
  1026   In-Reply-To: <patchbomb.60@
       
  1027   References: <patchbomb.60@
       
  1028   User-Agent: Mercurial-patchbomb
       
  1029   Date: Thu, 01 Jan 1970 00:01:01 +0000
       
  1030   From: quux
       
  1031   To: foo
       
  1032   Cc: bar
       
  1033   
       
  1034   # HG changeset patch
       
  1035   # User test
       
  1036   # Date 3 0
       
  1037   # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1038   # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1039   c
       
  1040   
       
  1041   diff -r 97d72e5f12c7 -r ff2c9fa2018b c
       
  1042   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1043   +++ b/c	Thu Jan 01 00:00:03 1970 +0000
       
  1044   @@ -0,0 +1,1 @@
       
  1045   +c
       
  1046   
       
  1047 
       
  1048 test --desc without --intro for a single patch:
       
  1049   $ echo foo > intro.text
       
  1050   $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \
       
  1051   >  -s test -r 2 | fixheaders
       
  1052   This patch series consists of 1 patches.
       
  1053   
       
  1054   
       
  1055   Displaying [PATCH 0 of 1] test ...
       
  1056   Content-Type: text/plain; charset="us-ascii"
       
  1057   MIME-Version: 1.0
       
  1058   Content-Transfer-Encoding: 7bit
       
  1059   Subject: [PATCH 0 of 1] test
       
  1060   Message-Id: <patchbomb.60@
       
  1061   User-Agent: Mercurial-patchbomb
       
  1062   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
  1063   From: quux
       
  1064   To: foo
       
  1065   Cc: bar
       
  1066   
       
  1067   foo
       
  1068   
       
  1069   Displaying [PATCH 1 of 1] c ...
       
  1070   Content-Type: text/plain; charset="us-ascii"
       
  1071   MIME-Version: 1.0
       
  1072   Content-Transfer-Encoding: 7bit
       
  1073   Subject: [PATCH 1 of 1] c
       
  1074   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1075   Message-Id: <ff2c9fa2018b15fa74b3.61@
       
  1076   In-Reply-To: <patchbomb.60@
       
  1077   References: <patchbomb.60@
       
  1078   User-Agent: Mercurial-patchbomb
       
  1079   Date: Thu, 01 Jan 1970 00:01:01 +0000
       
  1080   From: quux
       
  1081   To: foo
       
  1082   Cc: bar
       
  1083   
       
  1084   # HG changeset patch
       
  1085   # User test
       
  1086   # Date 3 0
       
  1087   # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1088   # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1089   c
       
  1090   
       
  1091   diff -r 97d72e5f12c7 -r ff2c9fa2018b c
       
  1092   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1093   +++ b/c	Thu Jan 01 00:00:03 1970 +0000
       
  1094   @@ -0,0 +1,1 @@
       
  1095   +c
       
  1096   
       
  1097 
       
  1098 test intro for multiple patches:
       
  1099   $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
       
  1100   >  -r 0:1 | fixheaders
       
  1101   This patch series consists of 2 patches.
       
  1102   
       
  1103   
       
  1104   Write the introductory message for the patch series.
       
  1105   
       
  1106   
       
  1107   Displaying [PATCH 0 of 2] test ...
       
  1108   Content-Type: text/plain; charset="us-ascii"
       
  1109   MIME-Version: 1.0
       
  1110   Content-Transfer-Encoding: 7bit
       
  1111   Subject: [PATCH 0 of 2] test
       
  1112   Message-Id: <patchbomb.60@
       
  1113   User-Agent: Mercurial-patchbomb
       
  1114   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
  1115   From: quux
       
  1116   To: foo
       
  1117   Cc: bar
       
  1118   
       
  1119   
       
  1120   Displaying [PATCH 1 of 2] a ...
       
  1121   Content-Type: text/plain; charset="us-ascii"
       
  1122   MIME-Version: 1.0
       
  1123   Content-Transfer-Encoding: 7bit
       
  1124   Subject: [PATCH 1 of 2] a
       
  1125   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1126   Message-Id: <8580ff50825a50c8f716.61@
       
  1127   In-Reply-To: <patchbomb.60@
       
  1128   References: <patchbomb.60@
       
  1129   User-Agent: Mercurial-patchbomb
       
  1130   Date: Thu, 01 Jan 1970 00:01:01 +0000
       
  1131   From: quux
       
  1132   To: foo
       
  1133   Cc: bar
       
  1134   
       
  1135   # HG changeset patch
       
  1136   # User test
       
  1137   # Date 1 0
       
  1138   # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1139   # Parent  0000000000000000000000000000000000000000
       
  1140   a
       
  1141   
       
  1142   diff -r 000000000000 -r 8580ff50825a a
       
  1143   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1144   +++ b/a	Thu Jan 01 00:00:01 1970 +0000
       
  1145   @@ -0,0 +1,1 @@
       
  1146   +a
       
  1147   
       
  1148   Displaying [PATCH 2 of 2] b ...
       
  1149   Content-Type: text/plain; charset="us-ascii"
       
  1150   MIME-Version: 1.0
       
  1151   Content-Transfer-Encoding: 7bit
       
  1152   Subject: [PATCH 2 of 2] b
       
  1153   X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1154   Message-Id: <97d72e5f12c7e84f8506.62@
       
  1155   In-Reply-To: <patchbomb.60@
       
  1156   References: <patchbomb.60@
       
  1157   User-Agent: Mercurial-patchbomb
       
  1158   Date: Thu, 01 Jan 1970 00:01:02 +0000
       
  1159   From: quux
       
  1160   To: foo
       
  1161   Cc: bar
       
  1162   
       
  1163   # HG changeset patch
       
  1164   # User test
       
  1165   # Date 2 0
       
  1166   # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1167   # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1168   b
       
  1169   
       
  1170   diff -r 8580ff50825a -r 97d72e5f12c7 b
       
  1171   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1172   +++ b/b	Thu Jan 01 00:00:02 1970 +0000
       
  1173   @@ -0,0 +1,1 @@
       
  1174   +b
       
  1175   
       
  1176 
       
  1177 test reply-to via config:
       
  1178   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
       
  1179   >  --config patchbomb.reply-to='baz@example.com' | fixheaders
       
  1180   This patch series consists of 1 patches.
       
  1181   
       
  1182   
       
  1183   Displaying [PATCH] test ...
       
  1184   Content-Type: text/plain; charset="us-ascii"
       
  1185   MIME-Version: 1.0
       
  1186   Content-Transfer-Encoding: 7bit
       
  1187   Subject: [PATCH] test
       
  1188   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1189   Message-Id: <ff2c9fa2018b15fa74b3.60@
       
  1190   User-Agent: Mercurial-patchbomb
       
  1191   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
  1192   From: quux
       
  1193   To: foo
       
  1194   Cc: bar
       
  1195   Reply-To: baz@example.com
       
  1196   
       
  1197   # HG changeset patch
       
  1198   # User test
       
  1199   # Date 3 0
       
  1200   # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1201   # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1202   c
       
  1203   
       
  1204   diff -r 97d72e5f12c7 -r ff2c9fa2018b c
       
  1205   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1206   +++ b/c	Thu Jan 01 00:00:03 1970 +0000
       
  1207   @@ -0,0 +1,1 @@
       
  1208   +c
       
  1209   
       
  1210 
       
  1211 test reply-to via command line:
       
  1212   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
       
  1213   >  --reply-to baz --reply-to fred | fixheaders
       
  1214   This patch series consists of 1 patches.
       
  1215   
       
  1216   
       
  1217   Displaying [PATCH] test ...
       
  1218   Content-Type: text/plain; charset="us-ascii"
       
  1219   MIME-Version: 1.0
       
  1220   Content-Transfer-Encoding: 7bit
       
  1221   Subject: [PATCH] test
       
  1222   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1223   Message-Id: <ff2c9fa2018b15fa74b3.60@
       
  1224   User-Agent: Mercurial-patchbomb
       
  1225   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
  1226   From: quux
       
  1227   To: foo
       
  1228   Cc: bar
       
  1229   Reply-To: baz, fred
       
  1230   
       
  1231   # HG changeset patch
       
  1232   # User test
       
  1233   # Date 3 0
       
  1234   # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1235   # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1236   c
       
  1237   
       
  1238   diff -r 97d72e5f12c7 -r ff2c9fa2018b c
       
  1239   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1240   +++ b/c	Thu Jan 01 00:00:03 1970 +0000
       
  1241   @@ -0,0 +1,1 @@
       
  1242   +c
       
  1243   
       
  1244 
       
  1245 tagging csets:
       
  1246   $ hg tag -r0 zero zero.foo
       
  1247   $ hg tag -r1 one one.patch
       
  1248   $ hg tag -r2 two two.diff
       
  1249 
       
  1250 test inline for single named patch:
       
  1251   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2 | \
       
  1252   >  fixheaders
       
  1253   This patch series consists of 1 patches.
       
  1254   
       
  1255   
       
  1256   Displaying [PATCH] test ...
       
  1257   Content-Type: multipart/mixed; boundary="===
       
  1258   MIME-Version: 1.0
       
  1259   Subject: [PATCH] test
       
  1260   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1261   Message-Id: <ff2c9fa2018b15fa74b3.60@
       
  1262   User-Agent: Mercurial-patchbomb
       
  1263   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
  1264   From: quux
       
  1265   To: foo
       
  1266   Cc: bar
       
  1267   
       
  1268   --===
       
  1269   Content-Type: text/x-patch; charset="us-ascii"
       
  1270   MIME-Version: 1.0
       
  1271   Content-Transfer-Encoding: 7bit
       
  1272   Content-Disposition: inline; filename=two.diff
       
  1273   
       
  1274   # HG changeset patch
       
  1275   # User test
       
  1276   # Date 3 0
       
  1277   # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1278   # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1279   c
       
  1280   
       
  1281   diff -r 97d72e5f12c7 -r ff2c9fa2018b c
       
  1282   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1283   +++ b/c	Thu Jan 01 00:00:03 1970 +0000
       
  1284   @@ -0,0 +1,1 @@
       
  1285   +c
       
  1286   
       
  1287   --===
       
  1288 
       
  1289 test inline for multiple named/unnamed patches:
       
  1290   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 0:1 | \
       
  1291   >  fixheaders
       
  1292   This patch series consists of 2 patches.
       
  1293   
       
  1294   
       
  1295   Write the introductory message for the patch series.
       
  1296   
       
  1297   
       
  1298   Displaying [PATCH 0 of 2] test ...
       
  1299   Content-Type: text/plain; charset="us-ascii"
       
  1300   MIME-Version: 1.0
       
  1301   Content-Transfer-Encoding: 7bit
       
  1302   Subject: [PATCH 0 of 2] test
       
  1303   Message-Id: <patchbomb.60@
       
  1304   User-Agent: Mercurial-patchbomb
       
  1305   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
  1306   From: quux
       
  1307   To: foo
       
  1308   Cc: bar
       
  1309   
       
  1310   
       
  1311   Displaying [PATCH 1 of 2] a ...
       
  1312   Content-Type: multipart/mixed; boundary="===
       
  1313   MIME-Version: 1.0
       
  1314   Subject: [PATCH 1 of 2] a
       
  1315   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1316   Message-Id: <8580ff50825a50c8f716.61@
       
  1317   In-Reply-To: <patchbomb.60@
       
  1318   References: <patchbomb.60@
       
  1319   User-Agent: Mercurial-patchbomb
       
  1320   Date: Thu, 01 Jan 1970 00:01:01 +0000
       
  1321   From: quux
       
  1322   To: foo
       
  1323   Cc: bar
       
  1324   
       
  1325   --===
       
  1326   Content-Type: text/x-patch; charset="us-ascii"
       
  1327   MIME-Version: 1.0
       
  1328   Content-Transfer-Encoding: 7bit
       
  1329   Content-Disposition: inline; filename=t2-1.patch
       
  1330   
       
  1331   # HG changeset patch
       
  1332   # User test
       
  1333   # Date 1 0
       
  1334   # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1335   # Parent  0000000000000000000000000000000000000000
       
  1336   a
       
  1337   
       
  1338   diff -r 000000000000 -r 8580ff50825a a
       
  1339   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1340   +++ b/a	Thu Jan 01 00:00:01 1970 +0000
       
  1341   @@ -0,0 +1,1 @@
       
  1342   +a
       
  1343   
       
  1344   --===
       
  1345   Displaying [PATCH 2 of 2] b ...
       
  1346   Content-Type: multipart/mixed; boundary="===
       
  1347   MIME-Version: 1.0
       
  1348   Subject: [PATCH 2 of 2] b
       
  1349   X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1350   Message-Id: <97d72e5f12c7e84f8506.62@
       
  1351   In-Reply-To: <patchbomb.60@
       
  1352   References: <patchbomb.60@
       
  1353   User-Agent: Mercurial-patchbomb
       
  1354   Date: Thu, 01 Jan 1970 00:01:02 +0000
       
  1355   From: quux
       
  1356   To: foo
       
  1357   Cc: bar
       
  1358   
       
  1359   --===
       
  1360   Content-Type: text/x-patch; charset="us-ascii"
       
  1361   MIME-Version: 1.0
       
  1362   Content-Transfer-Encoding: 7bit
       
  1363   Content-Disposition: inline; filename=one.patch
       
  1364   
       
  1365   # HG changeset patch
       
  1366   # User test
       
  1367   # Date 2 0
       
  1368   # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1369   # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1370   b
       
  1371   
       
  1372   diff -r 8580ff50825a -r 97d72e5f12c7 b
       
  1373   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1374   +++ b/b	Thu Jan 01 00:00:02 1970 +0000
       
  1375   @@ -0,0 +1,1 @@
       
  1376   +b
       
  1377   
       
  1378   --===
       
  1379 
       
  1380 
       
  1381 test inreplyto:
       
  1382   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
       
  1383   >  -r tip | fixheaders
       
  1384   This patch series consists of 1 patches.
       
  1385   
       
  1386   
       
  1387   Displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
       
  1388   Content-Type: text/plain; charset="us-ascii"
       
  1389   MIME-Version: 1.0
       
  1390   Content-Transfer-Encoding: 7bit
       
  1391   Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
       
  1392   X-Mercurial-Node: e317db6a6f288748d1f6cb064f3810fcba66b1b6
       
  1393   Message-Id: <e317db6a6f288748d1f6.60@
       
  1394   In-Reply-To: <baz>
       
  1395   References: <baz>
       
  1396   User-Agent: Mercurial-patchbomb
       
  1397   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
  1398   From: quux
       
  1399   To: foo
       
  1400   Cc: bar
       
  1401   
       
  1402   # HG changeset patch
       
  1403   # User test
       
  1404   # Date 0 0
       
  1405   # Node ID e317db6a6f288748d1f6cb064f3810fcba66b1b6
       
  1406   # Parent  eae5fcf795eee29d0e45ffc9f519a91cd79fc9ff
       
  1407   Added tag two, two.diff for changeset ff2c9fa2018b
       
  1408   
       
  1409   diff -r eae5fcf795ee -r e317db6a6f28 .hgtags
       
  1410   --- a/.hgtags	Thu Jan 01 00:00:00 1970 +0000
       
  1411   +++ b/.hgtags	Thu Jan 01 00:00:00 1970 +0000
       
  1412   @@ -2,3 +2,5 @@
       
  1413    8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
       
  1414    97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
       
  1415    97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
       
  1416   +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
       
  1417   +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
       
  1418   
       
  1419 
       
  1420   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
       
  1421   >  -r 0:1
       
  1422   This patch series consists of 2 patches.
       
  1423   
       
  1424   abort: Subject: [PATCH 0 of 2] Please enter a valid value
       
  1425 
       
  1426   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
       
  1427   >  -s test -r 0:1 | fixheaders
       
  1428   This patch series consists of 2 patches.
       
  1429   
       
  1430   
       
  1431   Write the introductory message for the patch series.
       
  1432   
       
  1433   
       
  1434   Displaying [PATCH 0 of 2] test ...
       
  1435   Content-Type: text/plain; charset="us-ascii"
       
  1436   MIME-Version: 1.0
       
  1437   Content-Transfer-Encoding: 7bit
       
  1438   Subject: [PATCH 0 of 2] test
       
  1439   Message-Id: <patchbomb.60@
       
  1440   In-Reply-To: <baz>
       
  1441   References: <baz>
       
  1442   User-Agent: Mercurial-patchbomb
       
  1443   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
  1444   From: quux
       
  1445   To: foo
       
  1446   Cc: bar
       
  1447   
       
  1448   
       
  1449   Displaying [PATCH 1 of 2] a ...
       
  1450   Content-Type: text/plain; charset="us-ascii"
       
  1451   MIME-Version: 1.0
       
  1452   Content-Transfer-Encoding: 7bit
       
  1453   Subject: [PATCH 1 of 2] a
       
  1454   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1455   Message-Id: <8580ff50825a50c8f716.61@
       
  1456   In-Reply-To: <patchbomb.60@
       
  1457   References: <patchbomb.60@
       
  1458   User-Agent: Mercurial-patchbomb
       
  1459   Date: Thu, 01 Jan 1970 00:01:01 +0000
       
  1460   From: quux
       
  1461   To: foo
       
  1462   Cc: bar
       
  1463   
       
  1464   # HG changeset patch
       
  1465   # User test
       
  1466   # Date 1 0
       
  1467   # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1468   # Parent  0000000000000000000000000000000000000000
       
  1469   a
       
  1470   
       
  1471   diff -r 000000000000 -r 8580ff50825a a
       
  1472   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1473   +++ b/a	Thu Jan 01 00:00:01 1970 +0000
       
  1474   @@ -0,0 +1,1 @@
       
  1475   +a
       
  1476   
       
  1477   Displaying [PATCH 2 of 2] b ...
       
  1478   Content-Type: text/plain; charset="us-ascii"
       
  1479   MIME-Version: 1.0
       
  1480   Content-Transfer-Encoding: 7bit
       
  1481   Subject: [PATCH 2 of 2] b
       
  1482   X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1483   Message-Id: <97d72e5f12c7e84f8506.62@
       
  1484   In-Reply-To: <patchbomb.60@
       
  1485   References: <patchbomb.60@
       
  1486   User-Agent: Mercurial-patchbomb
       
  1487   Date: Thu, 01 Jan 1970 00:01:02 +0000
       
  1488   From: quux
       
  1489   To: foo
       
  1490   Cc: bar
       
  1491   
       
  1492   # HG changeset patch
       
  1493   # User test
       
  1494   # Date 2 0
       
  1495   # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1496   # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1497   b
       
  1498   
       
  1499   diff -r 8580ff50825a -r 97d72e5f12c7 b
       
  1500   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1501   +++ b/b	Thu Jan 01 00:00:02 1970 +0000
       
  1502   @@ -0,0 +1,1 @@
       
  1503   +b
       
  1504   
       
  1505 
       
  1506 test single flag for single patch:
       
  1507   $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
       
  1508   >  -r 2 | fixheaders
       
  1509   This patch series consists of 1 patches.
       
  1510   
       
  1511   
       
  1512   Displaying [PATCH fooFlag] test ...
       
  1513   Content-Type: text/plain; charset="us-ascii"
       
  1514   MIME-Version: 1.0
       
  1515   Content-Transfer-Encoding: 7bit
       
  1516   Subject: [PATCH fooFlag] test
       
  1517   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1518   Message-Id: <ff2c9fa2018b15fa74b3.60@
       
  1519   User-Agent: Mercurial-patchbomb
       
  1520   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
  1521   From: quux
       
  1522   To: foo
       
  1523   Cc: bar
       
  1524   
       
  1525   # HG changeset patch
       
  1526   # User test
       
  1527   # Date 3 0
       
  1528   # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1529   # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1530   c
       
  1531   
       
  1532   diff -r 97d72e5f12c7 -r ff2c9fa2018b c
       
  1533   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1534   +++ b/c	Thu Jan 01 00:00:03 1970 +0000
       
  1535   @@ -0,0 +1,1 @@
       
  1536   +c
       
  1537   
       
  1538 
       
  1539 test single flag for multiple patches:
       
  1540   $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
       
  1541   >  -r 0:1 | fixheaders
       
  1542   This patch series consists of 2 patches.
       
  1543   
       
  1544   
       
  1545   Write the introductory message for the patch series.
       
  1546   
       
  1547   
       
  1548   Displaying [PATCH 0 of 2 fooFlag] test ...
       
  1549   Content-Type: text/plain; charset="us-ascii"
       
  1550   MIME-Version: 1.0
       
  1551   Content-Transfer-Encoding: 7bit
       
  1552   Subject: [PATCH 0 of 2 fooFlag] test
       
  1553   Message-Id: <patchbomb.60@
       
  1554   User-Agent: Mercurial-patchbomb
       
  1555   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
  1556   From: quux
       
  1557   To: foo
       
  1558   Cc: bar
       
  1559   
       
  1560   
       
  1561   Displaying [PATCH 1 of 2 fooFlag] a ...
       
  1562   Content-Type: text/plain; charset="us-ascii"
       
  1563   MIME-Version: 1.0
       
  1564   Content-Transfer-Encoding: 7bit
       
  1565   Subject: [PATCH 1 of 2 fooFlag] a
       
  1566   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1567   Message-Id: <8580ff50825a50c8f716.61@
       
  1568   In-Reply-To: <patchbomb.60@
       
  1569   References: <patchbomb.60@
       
  1570   User-Agent: Mercurial-patchbomb
       
  1571   Date: Thu, 01 Jan 1970 00:01:01 +0000
       
  1572   From: quux
       
  1573   To: foo
       
  1574   Cc: bar
       
  1575   
       
  1576   # HG changeset patch
       
  1577   # User test
       
  1578   # Date 1 0
       
  1579   # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1580   # Parent  0000000000000000000000000000000000000000
       
  1581   a
       
  1582   
       
  1583   diff -r 000000000000 -r 8580ff50825a a
       
  1584   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1585   +++ b/a	Thu Jan 01 00:00:01 1970 +0000
       
  1586   @@ -0,0 +1,1 @@
       
  1587   +a
       
  1588   
       
  1589   Displaying [PATCH 2 of 2 fooFlag] b ...
       
  1590   Content-Type: text/plain; charset="us-ascii"
       
  1591   MIME-Version: 1.0
       
  1592   Content-Transfer-Encoding: 7bit
       
  1593   Subject: [PATCH 2 of 2 fooFlag] b
       
  1594   X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1595   Message-Id: <97d72e5f12c7e84f8506.62@
       
  1596   In-Reply-To: <patchbomb.60@
       
  1597   References: <patchbomb.60@
       
  1598   User-Agent: Mercurial-patchbomb
       
  1599   Date: Thu, 01 Jan 1970 00:01:02 +0000
       
  1600   From: quux
       
  1601   To: foo
       
  1602   Cc: bar
       
  1603   
       
  1604   # HG changeset patch
       
  1605   # User test
       
  1606   # Date 2 0
       
  1607   # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1608   # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1609   b
       
  1610   
       
  1611   diff -r 8580ff50825a -r 97d72e5f12c7 b
       
  1612   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1613   +++ b/b	Thu Jan 01 00:00:02 1970 +0000
       
  1614   @@ -0,0 +1,1 @@
       
  1615   +b
       
  1616   
       
  1617 
       
  1618 test mutiple flags for single patch:
       
  1619   $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
       
  1620   >  -c bar -s test -r 2 | fixheaders
       
  1621   This patch series consists of 1 patches.
       
  1622   
       
  1623   
       
  1624   Displaying [PATCH fooFlag barFlag] test ...
       
  1625   Content-Type: text/plain; charset="us-ascii"
       
  1626   MIME-Version: 1.0
       
  1627   Content-Transfer-Encoding: 7bit
       
  1628   Subject: [PATCH fooFlag barFlag] test
       
  1629   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1630   Message-Id: <ff2c9fa2018b15fa74b3.60@
       
  1631   User-Agent: Mercurial-patchbomb
       
  1632   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
  1633   From: quux
       
  1634   To: foo
       
  1635   Cc: bar
       
  1636   
       
  1637   # HG changeset patch
       
  1638   # User test
       
  1639   # Date 3 0
       
  1640   # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1641   # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1642   c
       
  1643   
       
  1644   diff -r 97d72e5f12c7 -r ff2c9fa2018b c
       
  1645   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1646   +++ b/c	Thu Jan 01 00:00:03 1970 +0000
       
  1647   @@ -0,0 +1,1 @@
       
  1648   +c
       
  1649   
       
  1650 
       
  1651 test multiple flags for multiple patches:
       
  1652   $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
       
  1653   >  -c bar -s test -r 0:1 | fixheaders
       
  1654   This patch series consists of 2 patches.
       
  1655   
       
  1656   
       
  1657   Write the introductory message for the patch series.
       
  1658   
       
  1659   
       
  1660   Displaying [PATCH 0 of 2 fooFlag barFlag] test ...
       
  1661   Content-Type: text/plain; charset="us-ascii"
       
  1662   MIME-Version: 1.0
       
  1663   Content-Transfer-Encoding: 7bit
       
  1664   Subject: [PATCH 0 of 2 fooFlag barFlag] test
       
  1665   Message-Id: <patchbomb.60@
       
  1666   User-Agent: Mercurial-patchbomb
       
  1667   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
  1668   From: quux
       
  1669   To: foo
       
  1670   Cc: bar
       
  1671   
       
  1672   
       
  1673   Displaying [PATCH 1 of 2 fooFlag barFlag] a ...
       
  1674   Content-Type: text/plain; charset="us-ascii"
       
  1675   MIME-Version: 1.0
       
  1676   Content-Transfer-Encoding: 7bit
       
  1677   Subject: [PATCH 1 of 2 fooFlag barFlag] a
       
  1678   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1679   Message-Id: <8580ff50825a50c8f716.61@
       
  1680   In-Reply-To: <patchbomb.60@
       
  1681   References: <patchbomb.60@
       
  1682   User-Agent: Mercurial-patchbomb
       
  1683   Date: Thu, 01 Jan 1970 00:01:01 +0000
       
  1684   From: quux
       
  1685   To: foo
       
  1686   Cc: bar
       
  1687   
       
  1688   # HG changeset patch
       
  1689   # User test
       
  1690   # Date 1 0
       
  1691   # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1692   # Parent  0000000000000000000000000000000000000000
       
  1693   a
       
  1694   
       
  1695   diff -r 000000000000 -r 8580ff50825a a
       
  1696   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1697   +++ b/a	Thu Jan 01 00:00:01 1970 +0000
       
  1698   @@ -0,0 +1,1 @@
       
  1699   +a
       
  1700   
       
  1701   Displaying [PATCH 2 of 2 fooFlag barFlag] b ...
       
  1702   Content-Type: text/plain; charset="us-ascii"
       
  1703   MIME-Version: 1.0
       
  1704   Content-Transfer-Encoding: 7bit
       
  1705   Subject: [PATCH 2 of 2 fooFlag barFlag] b
       
  1706   X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1707   Message-Id: <97d72e5f12c7e84f8506.62@
       
  1708   In-Reply-To: <patchbomb.60@
       
  1709   References: <patchbomb.60@
       
  1710   User-Agent: Mercurial-patchbomb
       
  1711   Date: Thu, 01 Jan 1970 00:01:02 +0000
       
  1712   From: quux
       
  1713   To: foo
       
  1714   Cc: bar
       
  1715   
       
  1716   # HG changeset patch
       
  1717   # User test
       
  1718   # Date 2 0
       
  1719   # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1720   # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1721   b
       
  1722   
       
  1723   diff -r 8580ff50825a -r 97d72e5f12c7 b
       
  1724   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1725   +++ b/b	Thu Jan 01 00:00:02 1970 +0000
       
  1726   @@ -0,0 +1,1 @@
       
  1727   +b
       
  1728   
       
  1729 
       
  1730 test multi-address parsing:
       
  1731   $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam><eggs>' \
       
  1732   >  -t toast -c 'foo,bar@example.com' -c '"A, B <>" <a@example.com>' -s test -r 0 \
       
  1733   >  --config email.bcc='"Quux, A." <quux>'
       
  1734   This patch series consists of 1 patches.
       
  1735   
       
  1736   
       
  1737   Writing [PATCH] test ...
       
  1738   $ fixheaders < tmp.mbox
       
  1739   From quux Tue Jan 01 00:01:01 1980
       
  1740   Content-Type: text/plain; charset="us-ascii"
       
  1741   MIME-Version: 1.0
       
  1742   Content-Transfer-Encoding: 7bit
       
  1743   Subject: [PATCH] test
       
  1744   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1745   Message-Id: <8580ff50825a50c8f716.315532860@
       
  1746   User-Agent: Mercurial-patchbomb
       
  1747   Date: Tue, 01 Jan 1980 00:01:00 +0000
       
  1748   From: quux
       
  1749   To: spam <spam>, eggs, toast
       
  1750   Cc: foo, bar@example.com, "A, B <>" <a@example.com>
       
  1751   Bcc: "Quux, A." <quux>
       
  1752   
       
  1753   # HG changeset patch
       
  1754   # User test
       
  1755   # Date 1 0
       
  1756   # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1757   # Parent  0000000000000000000000000000000000000000
       
  1758   a
       
  1759   
       
  1760   diff -r 000000000000 -r 8580ff50825a a
       
  1761   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1762   +++ b/a	Thu Jan 01 00:00:01 1970 +0000
       
  1763   @@ -0,0 +1,1 @@
       
  1764   +a
       
  1765   
       
  1766   
       
  1767 
       
  1768 test multi-byte domain parsing:
       
  1769   $ UUML=`python -c 'import sys; sys.stdout.write("\374")'`
       
  1770   $ HGENCODING=iso-8859-1
       
  1771   $ export HGENCODING
       
  1772   $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" -s test -r 0
       
  1773   This patch series consists of 1 patches.
       
  1774   
       
  1775   
       
  1776   Writing [PATCH] test ...
       
  1777 
       
  1778   $ cat tmp.mbox
       
  1779   From quux Tue Jan 01 00:01:01 1980
       
  1780   Content-Type: text/plain; charset="us-ascii"
       
  1781   MIME-Version: 1.0
       
  1782   Content-Transfer-Encoding: 7bit
       
  1783   Subject: [PATCH] test
       
  1784   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1785   Message-Id: <8580ff50825a50c8f716.315532860@.*
       
  1786   User-Agent: Mercurial-patchbomb/.*
       
  1787   Date: Tue, 01 Jan 1980 00:01:00 +0000
       
  1788   From: quux
       
  1789   To: bar@xn--nicode-2ya.com
       
  1790   
       
  1791   # HG changeset patch
       
  1792   # User test
       
  1793   # Date 1 0
       
  1794   # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1795   # Parent  0000000000000000000000000000000000000000
       
  1796   a
       
  1797   
       
  1798   diff -r 000000000000 -r 8580ff50825a a
       
  1799   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1800   +++ b/a	Thu Jan 01 00:00:01 1970 +0000
       
  1801   @@ -0,0 +1,1 @@
       
  1802   +a
       
  1803   
       
  1804   
       
  1805 
       
  1806 test outgoing:
       
  1807   $ hg up 1
       
  1808   0 files updated, 0 files merged, 6 files removed, 0 files unresolved
       
  1809 
       
  1810   $ hg branch test
       
  1811   marked working directory as branch test
       
  1812 
       
  1813   $ echo d > d
       
  1814   $ hg add d
       
  1815   $ hg ci -md -d '4 0'
       
  1816   $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t
       
  1817   comparing with ../t
       
  1818   searching for changes
       
  1819   This patch series consists of 8 patches.
       
  1820   
       
  1821   
       
  1822   Write the introductory message for the patch series.
       
  1823   
       
  1824   
       
  1825   Displaying [PATCH 0 of 8] test ...
       
  1826   Content-Type: text/plain; charset="us-ascii"
       
  1827   MIME-Version: 1.0
       
  1828   Content-Transfer-Encoding: 7bit
       
  1829   Subject: [PATCH 0 of 8] test
       
  1830   Message-Id: <patchbomb.315532860@.*
       
  1831   User-Agent: Mercurial-patchbomb/.*
       
  1832   Date: Tue, 01 Jan 1980 00:01:00 +0000
       
  1833   From: test
       
  1834   To: foo
       
  1835   
       
  1836   
       
  1837   Displaying [PATCH 1 of 8] c ...
       
  1838   Content-Type: text/plain; charset="us-ascii"
       
  1839   MIME-Version: 1.0
       
  1840   Content-Transfer-Encoding: 7bit
       
  1841   Subject: [PATCH 1 of 8] c
       
  1842   X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1843   Message-Id: <ff2c9fa2018b15fa74b3.315532861@.*
       
  1844   In-Reply-To: <patchbomb.315532860@[^>]*>
       
  1845   References: <patchbomb.315532860@[^>]*>
       
  1846   User-Agent: Mercurial-patchbomb/.*
       
  1847   Date: Tue, 01 Jan 1980 00:01:01 +0000
       
  1848   From: test
       
  1849   To: foo
       
  1850   
       
  1851   # HG changeset patch
       
  1852   # User test
       
  1853   # Date 3 0
       
  1854   # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1855   # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1856   c
       
  1857   
       
  1858   diff -r 97d72e5f12c7 -r ff2c9fa2018b c
       
  1859   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1860   +++ b/c	Thu Jan 01 00:00:03 1970 +0000
       
  1861   @@ -0,0 +1,1 @@
       
  1862   +c
       
  1863   
       
  1864   Displaying [PATCH 2 of 8] charset=utf-8; content-transfer-encoding: base64 ...
       
  1865   Content-Type: text/plain; charset="us-ascii"
       
  1866   MIME-Version: 1.0
       
  1867   Content-Transfer-Encoding: 8bit
       
  1868   Subject: [PATCH 2 of 8] charset=utf-8; content-transfer-encoding: base64
       
  1869   X-Mercurial-Node: c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
       
  1870   Message-Id: <c3c9e37db9f4fe4882cd.315532862@.*
       
  1871   In-Reply-To: <patchbomb.315532860@[^>]*>
       
  1872   References: <patchbomb.315532860@[^>]*>
       
  1873   User-Agent: Mercurial-patchbomb/.*
       
  1874   Date: Tue, 01 Jan 1980 00:01:02 +0000
       
  1875   From: test
       
  1876   To: foo
       
  1877   
       
  1878   # HG changeset patch
       
  1879   # User test
       
  1880   # Date 4 0
       
  1881   # Node ID c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
       
  1882   # Parent  ff2c9fa2018b15fa74b33363bda9527323e2a99f
       
  1883   charset=utf-8; content-transfer-encoding: base64
       
  1884   
       
  1885   diff -r ff2c9fa2018b -r c3c9e37db9f4 description
       
  1886   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1887   +++ b/description	Thu Jan 01 00:00:04 1970 +0000
       
  1888   @@ -0,0 +1,3 @@
       
  1889   +a multiline
       
  1890   +
       
  1891   +description
       
  1892   diff -r ff2c9fa2018b -r c3c9e37db9f4 utf
       
  1893   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1894   +++ b/utf	Thu Jan 01 00:00:04 1970 +0000
       
  1895   @@ -0,0 +1,1 @@
       
  1896   +hömma!
       
  1897   
       
  1898   Displaying [PATCH 3 of 8] charset=utf-8; content-transfer-encoding: quoted-printable ...
       
  1899   Content-Type: text/plain; charset="us-ascii"
       
  1900   MIME-Version: 1.0
       
  1901   Content-Transfer-Encoding: quoted-printable
       
  1902   Subject: [PATCH 3 of 8] charset=utf-8;
       
  1903    content-transfer-encoding: quoted-printable
       
  1904   X-Mercurial-Node: c655633f8c87700bb38cc6a59a2753bdc5a6c376
       
  1905   Message-Id: <c655633f8c87700bb38c.315532863@.*
       
  1906   In-Reply-To: <patchbomb.315532860@[^>]*>
       
  1907   References: <patchbomb.315532860@[^>]*>
       
  1908   User-Agent: Mercurial-patchbomb/.*
       
  1909   Date: Tue, 01 Jan 1980 00:01:03 +0000
       
  1910   From: test
       
  1911   To: foo
       
  1912   
       
  1913   # HG changeset patch
       
  1914   # User test
       
  1915   # Date 4 0
       
  1916   # Node ID c655633f8c87700bb38cc6a59a2753bdc5a6c376
       
  1917   # Parent  c3c9e37db9f4fe4882cda39baf42fed6bad8b15a
       
  1918   charset=3Dutf-8; content-transfer-encoding: quoted-printable
       
  1919   
       
  1920   diff -r c3c9e37db9f4 -r c655633f8c87 qp
       
  1921   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1922   +++ b/qp	Thu Jan 01 00:00:04 1970 +0000
       
  1923   @@ -0,0 +1,4 @@
       
  1924   +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
  1925   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
  1926   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
  1927   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
  1928   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
  1929   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
  1930   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
  1931   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
  1932   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
  1933   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
  1934   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
  1935   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
  1936   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
       
  1937   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
       
  1938   +foo
       
  1939   +
       
  1940   +bar
       
  1941   
       
  1942   Displaying [PATCH 4 of 8] charset=us-ascii; content-transfer-encoding: 8bit ...
       
  1943   Content-Type: text/plain; charset="us-ascii"
       
  1944   MIME-Version: 1.0
       
  1945   Content-Transfer-Encoding: 8bit
       
  1946   Subject: [PATCH 4 of 8] charset=us-ascii; content-transfer-encoding: 8bit
       
  1947   X-Mercurial-Node: 22d0f96be12f5945fd67d101af58f7bc8263c835
       
  1948   Message-Id: <22d0f96be12f5945fd67.315532864@.*
       
  1949   In-Reply-To: <patchbomb.315532860@[^>]*>
       
  1950   References: <patchbomb.315532860@[^>]*>
       
  1951   User-Agent: Mercurial-patchbomb/.*
       
  1952   Date: Tue, 01 Jan 1980 00:01:04 +0000
       
  1953   From: test
       
  1954   To: foo
       
  1955   
       
  1956   # HG changeset patch
       
  1957   # User test
       
  1958   # Date 5 0
       
  1959   # Node ID 22d0f96be12f5945fd67d101af58f7bc8263c835
       
  1960   # Parent  c655633f8c87700bb38cc6a59a2753bdc5a6c376
       
  1961   charset=us-ascii; content-transfer-encoding: 8bit
       
  1962   
       
  1963   diff -r c655633f8c87 -r 22d0f96be12f isolatin
       
  1964   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1965   +++ b/isolatin	Thu Jan 01 00:00:05 1970 +0000
       
  1966   @@ -0,0 +1,1 @@
       
  1967   +hömma!
       
  1968   
       
  1969   Displaying [PATCH 5 of 8] Added tag zero, zero.foo for changeset 8580ff50825a ...
       
  1970   Content-Type: text/plain; charset="us-ascii"
       
  1971   MIME-Version: 1.0
       
  1972   Content-Transfer-Encoding: 7bit
       
  1973   Subject: [PATCH 5 of 8] Added tag zero, zero.foo for changeset 8580ff50825a
       
  1974   X-Mercurial-Node: dd9c2b4b8a8a0934d5523c15f2c119b362360903
       
  1975   Message-Id: <dd9c2b4b8a8a0934d552.315532865@.*
       
  1976   In-Reply-To: <patchbomb.315532860@[^>]*>
       
  1977   References: <patchbomb.315532860@[^>]*>
       
  1978   User-Agent: Mercurial-patchbomb/.*
       
  1979   Date: Tue, 01 Jan 1980 00:01:05 +0000
       
  1980   From: test
       
  1981   To: foo
       
  1982   
       
  1983   # HG changeset patch
       
  1984   # User test
       
  1985   # Date 0 0
       
  1986   # Node ID dd9c2b4b8a8a0934d5523c15f2c119b362360903
       
  1987   # Parent  22d0f96be12f5945fd67d101af58f7bc8263c835
       
  1988   Added tag zero, zero.foo for changeset 8580ff50825a
       
  1989   
       
  1990   diff -r 22d0f96be12f -r dd9c2b4b8a8a .hgtags
       
  1991   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1992   +++ b/.hgtags	Thu Jan 01 00:00:00 1970 +0000
       
  1993   @@ -0,0 +1,2 @@
       
  1994   +8580ff50825a50c8f716709acdf8de0deddcd6ab zero
       
  1995   +8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
       
  1996   
       
  1997   Displaying [PATCH 6 of 8] Added tag one, one.patch for changeset 97d72e5f12c7 ...
       
  1998   Content-Type: text/plain; charset="us-ascii"
       
  1999   MIME-Version: 1.0
       
  2000   Content-Transfer-Encoding: 7bit
       
  2001   Subject: [PATCH 6 of 8] Added tag one, one.patch for changeset 97d72e5f12c7
       
  2002   X-Mercurial-Node: eae5fcf795eee29d0e45ffc9f519a91cd79fc9ff
       
  2003   Message-Id: <eae5fcf795eee29d0e45.315532866@.*
       
  2004   In-Reply-To: <patchbomb.315532860@[^>]*>
       
  2005   References: <patchbomb.315532860@[^>]*>
       
  2006   User-Agent: Mercurial-patchbomb/.*
       
  2007   Date: Tue, 01 Jan 1980 00:01:06 +0000
       
  2008   From: test
       
  2009   To: foo
       
  2010   
       
  2011   # HG changeset patch
       
  2012   # User test
       
  2013   # Date 0 0
       
  2014   # Node ID eae5fcf795eee29d0e45ffc9f519a91cd79fc9ff
       
  2015   # Parent  dd9c2b4b8a8a0934d5523c15f2c119b362360903
       
  2016   Added tag one, one.patch for changeset 97d72e5f12c7
       
  2017   
       
  2018   diff -r dd9c2b4b8a8a -r eae5fcf795ee .hgtags
       
  2019   --- a/.hgtags	Thu Jan 01 00:00:00 1970 +0000
       
  2020   +++ b/.hgtags	Thu Jan 01 00:00:00 1970 +0000
       
  2021   @@ -1,2 +1,4 @@
       
  2022    8580ff50825a50c8f716709acdf8de0deddcd6ab zero
       
  2023    8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
       
  2024   +97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
       
  2025   +97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
       
  2026   
       
  2027   Displaying [PATCH 7 of 8] Added tag two, two.diff for changeset ff2c9fa2018b ...
       
  2028   Content-Type: text/plain; charset="us-ascii"
       
  2029   MIME-Version: 1.0
       
  2030   Content-Transfer-Encoding: 7bit
       
  2031   Subject: [PATCH 7 of 8] Added tag two, two.diff for changeset ff2c9fa2018b
       
  2032   X-Mercurial-Node: e317db6a6f288748d1f6cb064f3810fcba66b1b6
       
  2033   Message-Id: <e317db6a6f288748d1f6.315532867@.*
       
  2034   In-Reply-To: <patchbomb.315532860@[^>]*>
       
  2035   References: <patchbomb.315532860@[^>]*>
       
  2036   User-Agent: Mercurial-patchbomb/.*
       
  2037   Date: Tue, 01 Jan 1980 00:01:07 +0000
       
  2038   From: test
       
  2039   To: foo
       
  2040   
       
  2041   # HG changeset patch
       
  2042   # User test
       
  2043   # Date 0 0
       
  2044   # Node ID e317db6a6f288748d1f6cb064f3810fcba66b1b6
       
  2045   # Parent  eae5fcf795eee29d0e45ffc9f519a91cd79fc9ff
       
  2046   Added tag two, two.diff for changeset ff2c9fa2018b
       
  2047   
       
  2048   diff -r eae5fcf795ee -r e317db6a6f28 .hgtags
       
  2049   --- a/.hgtags	Thu Jan 01 00:00:00 1970 +0000
       
  2050   +++ b/.hgtags	Thu Jan 01 00:00:00 1970 +0000
       
  2051   @@ -2,3 +2,5 @@
       
  2052    8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
       
  2053    97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
       
  2054    97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
       
  2055   +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
       
  2056   +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
       
  2057   
       
  2058   Displaying [PATCH 8 of 8] d ...
       
  2059   Content-Type: text/plain; charset="us-ascii"
       
  2060   MIME-Version: 1.0
       
  2061   Content-Transfer-Encoding: 7bit
       
  2062   Subject: [PATCH 8 of 8] d
       
  2063   X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
       
  2064   Message-Id: <2f9fa9b998c5fe3ac2bd.315532868[^>]*>
       
  2065   In-Reply-To: <patchbomb.315532860@[^>]*>
       
  2066   References: <patchbomb.315532860@[^>]*>
       
  2067   User-Agent: Mercurial-patchbomb/.*
       
  2068   Date: Tue, 01 Jan 1980 00:01:08 +0000
       
  2069   From: test
       
  2070   To: foo
       
  2071   
       
  2072   # HG changeset patch
       
  2073   # User test
       
  2074   # Date 4 0
       
  2075   # Branch test
       
  2076   # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
       
  2077   # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  2078   d
       
  2079   
       
  2080   diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
       
  2081   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  2082   +++ b/d	Thu Jan 01 00:00:04 1970 +0000
       
  2083   @@ -0,0 +1,1 @@
       
  2084   +d
       
  2085   
       
  2086 
       
  2087 dest#branch URIs:
       
  2088   $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
       
  2089   comparing with ../t
       
  2090   searching for changes
       
  2091   This patch series consists of 1 patches.
       
  2092   
       
  2093   
       
  2094   Displaying [PATCH] test ...
       
  2095   Content-Type: text/plain; charset="us-ascii"
       
  2096   MIME-Version: 1.0
       
  2097   Content-Transfer-Encoding: 7bit
       
  2098   Subject: [PATCH] test
       
  2099   X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
       
  2100   Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@.*
       
  2101   User-Agent: Mercurial-patchbomb/.*
       
  2102   Date: Tue, 01 Jan 1980 00:01:00 +0000
       
  2103   From: test
       
  2104   To: foo
       
  2105   
       
  2106   # HG changeset patch
       
  2107   # User test
       
  2108   # Date 4 0
       
  2109   # Branch test
       
  2110   # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
       
  2111   # Parent  97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  2112   d
       
  2113   
       
  2114   diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
       
  2115   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  2116   +++ b/d	Thu Jan 01 00:00:04 1970 +0000
       
  2117   @@ -0,0 +1,1 @@
       
  2118   +d
       
  2119