tests/test-patchbomb.t
branchstable
changeset 49366 288de6f5d724
parent 48876 42d2b31cee0b
child 49877 950c39918bd2
child 50246 a6b497872b97
equal deleted inserted replaced
49364:e8ea403b1c46 49366:288de6f5d724
     6 /mixed; boundary="===+[0-9]+==" -> /mixed; boundary="===*== (glob)"
     6 /mixed; boundary="===+[0-9]+==" -> /mixed; boundary="===*== (glob)"
     7 --===+[0-9]+=+--$ -> --===*=-- (glob)
     7 --===+[0-9]+=+--$ -> --===*=-- (glob)
     8 --===+[0-9]+=+$ -> --===*= (glob)
     8 --===+[0-9]+=+$ -> --===*= (glob)
     9 
     9 
    10   $ cat > prune-blank-after-boundary.py <<EOF
    10   $ cat > prune-blank-after-boundary.py <<EOF
    11   > from __future__ import absolute_import, print_function
       
    12   > import sys
    11   > import sys
    13   > skipblank = False
    12   > skipblank = False
    14   > trim = lambda x: x.strip(' \r\n')
    13   > trim = lambda x: x.strip(' \r\n')
    15   > for l in sys.stdin:
    14   > for l in sys.stdin:
    16   >     if trim(l).endswith('=--') or trim(l).endswith('=='):
    15   >     if trim(l).endswith('=--') or trim(l).endswith('=='):
   512   X-Mercurial-Series-Total: 1
   511   X-Mercurial-Series-Total: 1
   513   Message-Id: <f81ef97829467e868fc4.240@test-hostname>
   512   Message-Id: <f81ef97829467e868fc4.240@test-hostname>
   514   X-Mercurial-Series-Id: <f81ef97829467e868fc4.240@test-hostname>
   513   X-Mercurial-Series-Id: <f81ef97829467e868fc4.240@test-hostname>
   515   User-Agent: Mercurial-patchbomb/* (glob)
   514   User-Agent: Mercurial-patchbomb/* (glob)
   516   Date: Thu, 01 Jan 1970 00:04:00 +0000
   515   Date: Thu, 01 Jan 1970 00:04:00 +0000
   517   From: Q <quux> (no-py3 !)
       
   518   From: =?iso-8859-1?q?Q?= <quux> (py3 !)
   516   From: =?iso-8859-1?q?Q?= <quux> (py3 !)
   519   To: foo
   517   To: foo
   520   Cc: bar
   518   Cc: bar
   521   
   519   
   522   IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojICAgICAgVGh1IEph
   520   IyBIRyBjaGFuZ2VzZXQgcGF0Y2gKIyBVc2VyIHRlc3QKIyBEYXRlIDQgMAojICAgICAgVGh1IEph
  2398   Message-Id: <8580ff50825a50c8f716.315532860@test-hostname>
  2396   Message-Id: <8580ff50825a50c8f716.315532860@test-hostname>
  2399   X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@test-hostname>
  2397   X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860@test-hostname>
  2400   User-Agent: Mercurial-patchbomb/* (glob)
  2398   User-Agent: Mercurial-patchbomb/* (glob)
  2401   Date: Tue, 01 Jan 1980 00:01:00 +0000
  2399   Date: Tue, 01 Jan 1980 00:01:00 +0000
  2402   From: quux
  2400   From: quux
  2403   To: spam <spam>, eggs, toast (no-py3 !)
       
  2404   Cc: foo, bar@example.com, "A, B <>" <a@example.com> (no-py3 !)
       
  2405   Bcc: "Quux, A." <quux> (no-py3 !)
       
  2406   To: =?iso-8859-1?q?spam?= <spam>, eggs, toast (py3 !)
  2401   To: =?iso-8859-1?q?spam?= <spam>, eggs, toast (py3 !)
  2407   Cc: foo, bar@example.com, =?iso-8859-1?q?A=2C_B_=3C=3E?= <a@example.com> (py3 !)
  2402   Cc: foo, bar@example.com, =?iso-8859-1?q?A=2C_B_=3C=3E?= <a@example.com> (py3 !)
  2408   Bcc: =?iso-8859-1?q?Quux=2C_A=2E?= <quux> (py3 !)
  2403   Bcc: =?iso-8859-1?q?Quux=2C_A=2E?= <quux> (py3 !)
  2409   
  2404   
  2410   # HG changeset patch
  2405   # HG changeset patch
  2720   
  2715   
  2721   displaying [PATCH 2 of 6] \xe7a ... (esc)
  2716   displaying [PATCH 2 of 6] \xe7a ... (esc)
  2722   MIME-Version: 1.0
  2717   MIME-Version: 1.0
  2723   Content-Type: text/plain; charset="iso-8859-1"
  2718   Content-Type: text/plain; charset="iso-8859-1"
  2724   Content-Transfer-Encoding: quoted-printable
  2719   Content-Transfer-Encoding: quoted-printable
  2725   Subject: [PATCH 2 of 6] \xe7a (esc) (no-py3 !)
       
  2726   Subject: =?utf-8?b?W1BBVENIIDIgb2YgNl0gw6dh?= (py3 !)
  2720   Subject: =?utf-8?b?W1BBVENIIDIgb2YgNl0gw6dh?= (py3 !)
  2727   X-Mercurial-Node: f81ef97829467e868fc405fccbcfa66217e4d3e6
  2721   X-Mercurial-Node: f81ef97829467e868fc405fccbcfa66217e4d3e6
  2728   X-Mercurial-Series-Index: 2
  2722   X-Mercurial-Series-Index: 2
  2729   X-Mercurial-Series-Total: 6
  2723   X-Mercurial-Series-Total: 6
  2730   Message-Id: <f81ef97829467e868fc4.315532862@test-hostname>
  2724   Message-Id: <f81ef97829467e868fc4.315532862@test-hostname>