tests/test-patchbomb.t
changeset 15559 1830d0cc4bc1
parent 15547 7f1d263a1bcb
child 15623 fc8c7a5ccc4a
equal deleted inserted replaced
15558:c6b600d2348c 15559:1830d0cc4bc1
   159   
   159   
   160   
   160   
   161   Write the introductory message for the patch series.
   161   Write the introductory message for the patch series.
   162   
   162   
   163   
   163   
   164   writing [                                             ] 0/3
   164   sending [                                             ] 0/3
   165   writing [                                             ] 0/3
   165   sending [                                             ] 0/3
   166                                                               
   166                                                               
   167                                                               
   167                                                               
   168   writing [==============>                              ] 1/3
   168   sending [==============>                              ] 1/3
   169   writing [==============>                              ] 1/3
   169   sending [==============>                              ] 1/3
   170                                                               
   170                                                               
   171                                                               
   171                                                               
   172   writing [=============================>               ] 2/3
   172   sending [=============================>               ] 2/3
   173   writing [=============================>               ] 2/3
   173   sending [=============================>               ] 2/3
   174                                                               \r (esc)
   174                                                               \r (esc)
   175   Writing [PATCH 0 of 2] test ...
   175   Sending [PATCH 0 of 2] test ...
   176   Writing [PATCH 1 of 2] a ...
   176   Sending [PATCH 1 of 2] a ...
   177   Writing [PATCH 2 of 2] b ...
   177   Sending [PATCH 2 of 2] b ...
   178   
   178   
   179 
   179 
   180   $ cd ..
   180   $ cd ..
   181 
   181 
   182   $ hg clone -q t t2
   182   $ hg clone -q t t2
   277   @@ -0,0 +1,1 @@
   277   @@ -0,0 +1,1 @@
   278   +h\xc3\xb6mma! (esc)
   278   +h\xc3\xb6mma! (esc)
   279   
   279   
   280 
   280 
   281 mime encoded mbox (base64):
   281 mime encoded mbox (base64):
   282   $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
   282   $ hg email --date '1970-1-1 0:4' -f 'Q <quux>' -t foo -c bar -r tip -m mbox
   283   This patch series consists of 1 patches.
   283   This patch series consists of 1 patches.
   284   
   284   
   285   
   285   
   286   Writing [PATCH] utf-8 content ...
   286   Sending [PATCH] utf-8 content ...
   287 
   287 
   288   $ cat mbox
   288   $ cat mbox
   289   From quux Thu Jan 01 00:04:01 1970
   289   From quux ... ... .. ..:..:.. .... (re)
   290   Content-Type: text/plain; charset="utf-8"
   290   Content-Type: text/plain; charset="utf-8"
   291   MIME-Version: 1.0
   291   MIME-Version: 1.0
   292   Content-Transfer-Encoding: base64
   292   Content-Transfer-Encoding: base64
   293   Subject: [PATCH] utf-8 content
   293   Subject: [PATCH] utf-8 content
   294   X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
   294   X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
   295   Message-Id: <909a00e13e9d78b575ae.240@*> (glob)
   295   Message-Id: <909a00e13e9d78b575ae.240@*> (glob)
   296   User-Agent: Mercurial-patchbomb/* (glob)
   296   User-Agent: Mercurial-patchbomb/* (glob)
   297   Date: Thu, 01 Jan 1970 00:04:00 +0000
   297   Date: Thu, 01 Jan 1970 00:04:00 +0000
   298   From: quux
   298   From: Q <quux>
   299   To: foo
   299   To: foo
   300   Cc: bar
   300   Cc: bar
   301   
   301   
   302   IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojIE5vZGUgSUQgOTA5
   302   IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojIE5vZGUgSUQgOTA5
   303   YTAwZTEzZTlkNzhiNTc1YWVlZTIzZGRkYmFkYTQ2ZDVhMTQzZgojIFBhcmVudCAgZmYyYzlmYTIw
   303   YTAwZTEzZTlkNzhiNTc1YWVlZTIzZGRkYmFkYTQ2ZDVhMTQzZgojIFBhcmVudCAgZmYyYzlmYTIw
   389 mime encoded mbox (quoted-printable):
   389 mime encoded mbox (quoted-printable):
   390   $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
   390   $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -m mbox
   391   This patch series consists of 1 patches.
   391   This patch series consists of 1 patches.
   392   
   392   
   393   
   393   
   394   Writing [PATCH] long line ...
   394   Sending [PATCH] long line ...
   395   $ cat mbox
   395   $ cat mbox
   396   From quux Thu Jan 01 00:04:01 1970
   396   From quux ... ... .. ..:..:.. .... (re)
   397   Content-Type: text/plain; charset="us-ascii"
   397   Content-Type: text/plain; charset="us-ascii"
   398   MIME-Version: 1.0
   398   MIME-Version: 1.0
   399   Content-Transfer-Encoding: quoted-printable
   399   Content-Transfer-Encoding: quoted-printable
   400   Subject: [PATCH] long line
   400   Subject: [PATCH] long line
   401   X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
   401   X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
   447 fake ascii mbox:
   447 fake ascii mbox:
   448   $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
   448   $ hg email --date '1970-1-1 0:5' -f quux -t foo -c bar -r tip -m mbox
   449   This patch series consists of 1 patches.
   449   This patch series consists of 1 patches.
   450   
   450   
   451   
   451   
   452   Writing [PATCH] isolatin 8-bit encoding ...
   452   Sending [PATCH] isolatin 8-bit encoding ...
   453   $ cat mbox
   453   $ cat mbox
   454   From quux Thu Jan 01 00:05:01 1970
   454   From quux ... ... .. ..:..:.. .... (re)
   455   Content-Type: text/plain; charset="us-ascii"
   455   Content-Type: text/plain; charset="us-ascii"
   456   MIME-Version: 1.0
   456   MIME-Version: 1.0
   457   Content-Transfer-Encoding: 8bit
   457   Content-Transfer-Encoding: 8bit
   458   Subject: [PATCH] isolatin 8-bit encoding
   458   Subject: [PATCH] isolatin 8-bit encoding
   459   X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
   459   X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
  1942   >  -t toast -c 'foo,bar@example.com' -c '"A, B <>" <a@example.com>' -s test -r 0 \
  1942   >  -t toast -c 'foo,bar@example.com' -c '"A, B <>" <a@example.com>' -s test -r 0 \
  1943   >  --config email.bcc='"Quux, A." <quux>'
  1943   >  --config email.bcc='"Quux, A." <quux>'
  1944   This patch series consists of 1 patches.
  1944   This patch series consists of 1 patches.
  1945   
  1945   
  1946   
  1946   
  1947   Writing [PATCH] test ...
  1947   Sending [PATCH] test ...
  1948   $ cat < tmp.mbox
  1948   $ cat < tmp.mbox
  1949   From quux Tue Jan 01 00:01:01 1980
  1949   From quux ... ... .. ..:..:.. .... (re)
  1950   Content-Type: text/plain; charset="us-ascii"
  1950   Content-Type: text/plain; charset="us-ascii"
  1951   MIME-Version: 1.0
  1951   MIME-Version: 1.0
  1952   Content-Transfer-Encoding: 7bit
  1952   Content-Transfer-Encoding: 7bit
  1953   Subject: [PATCH] test
  1953   Subject: [PATCH] test
  1954   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
  1954   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
  1982   $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" -s test -r 0
  1982   $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" -s test -r 0
  1983   This patch series consists of 1 patches.
  1983   This patch series consists of 1 patches.
  1984   
  1984   
  1985   Cc: 
  1985   Cc: 
  1986   
  1986   
  1987   Writing [PATCH] test ...
  1987   Sending [PATCH] test ...
  1988 
  1988 
  1989   $ cat tmp.mbox
  1989   $ cat tmp.mbox
  1990   From quux Tue Jan 01 00:01:01 1980
  1990   From quux ... ... .. ..:..:.. .... (re)
  1991   Content-Type: text/plain; charset="us-ascii"
  1991   Content-Type: text/plain; charset="us-ascii"
  1992   MIME-Version: 1.0
  1992   MIME-Version: 1.0
  1993   Content-Transfer-Encoding: 7bit
  1993   Content-Transfer-Encoding: 7bit
  1994   Subject: [PATCH] test
  1994   Subject: [PATCH] test
  1995   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
  1995   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab