[Bug 6915] New: hg email -t 'spam<spam><eggs>'

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Wed Sep 11 08:14:43 UTC 2024


https://bz.mercurial-scm.org/show_bug.cgi?id=6915

            Bug ID: 6915
           Summary: hg email -t 'spam<spam><eggs>'
           Product: Mercurial
           Version: 6.8.1
          Hardware: PC
                OS: Other
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: marcel at telka.sk
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

I noticed that the test-patchbomb.t fails:


# Running /data/builds/oi-userland/components/developer/mercurial/build/sh
"/tmp/hgtests.ey4ka2ck/child70/test-patchbomb.t.sh" 

---
/data/builds/oi-userland/components/developer/mercurial/build/amd64-3.9/tests/test-patchbomb.t
+++
/data/builds/oi-userland/components/developer/mercurial/build/amd64-3.9/tests/test-patchbomb.t.err
@@ -2419,41 +2419,11 @@
   >  --config email.bcc='"Quux, A." <quux>'
   this patch series consists of 1 patches.

-
-  sending [PATCH] test ...
+  abort: no recipient addresses provided
+  [255]
   $ cat < tmp.mbox
-  From quux ... ... .. ..:..:.. .... (re)
-  MIME-Version: 1.0
-  Content-Type: text/plain; charset="us-ascii"
-  Content-Transfer-Encoding: 7bit
-  Subject: [PATCH] test
-  X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
-  X-Mercurial-Series-Index: 1
-  X-Mercurial-Series-Total: 1
-  Message-Id: <8580ff50825a50c8f716.315532860 at test-hostname>
-  X-Mercurial-Series-Id: <8580ff50825a50c8f716.315532860 at test-hostname>
-  User-Agent: Mercurial-patchbomb/* (glob)
-  Date: Tue, 01 Jan 1980 00:01:00 +0000
-  From: quux
-  To: =?iso-8859-1?q?spam?= <spam>, eggs, toast
-  Cc: foo, bar at example.com, =?iso-8859-1?q?A=2C_B_=3C=3E?= <a at example.com>
-  Bcc: =?iso-8859-1?q?Quux=2C_A=2E?= <quux>
-
-  # HG changeset patch
-  # User test
-  # Date 1 0
-  #      Thu Jan 01 00:00:01 1970 +0000
-  # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
-  # Parent  0000000000000000000000000000000000000000
-  a
-
-  diff -r 000000000000 -r 8580ff50825a a
-  --- /dev/null        Thu Jan 01 00:00:00 1970 +0000
-  +++ b/a      Thu Jan 01 00:00:01 1970 +0000
-  @@ -0,0 +1,1 @@
-  +a
-
-
+  $TESTTMP.sh: line 226: tmp.mbox: $ENOENT$
+  [1]

 test flag template:
   $ echo foo > intro.text

ERROR: test-patchbomb.t output changed



The problem seems to be with -t 'spam<spam><eggs>'.  When I remove it then the
test pass.

Simple reproducer:


$ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam><eggs>' -t
toast -c 'foo,bar at example.com' -c '"A, B <>" <a at example.com>' -s test -r 0
--config email.bcc='"Quux, A." <quux>'
this patch series consists of 1 patches.

abort: no recipient addresses provided
$ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t toast -c
'foo,bar at example.com' -c '"A, B <>" <a at example.com>' -s test -r 0 --config
email.bcc='"Quux, A." <quux>'
this patch series consists of 1 patches.


sending [PATCH] test ...
$

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list