Mercurial > hg
comparison tests/test-notify-changegroup.t @ 34310:2d0c306a88c2
mail: encode long unicode lines in emails properly (issue5687)
3e544c074459 introduced a bug: emails Content-Transfer-Encoding
is silently replaced with 'quoted-printable' while any other
encoding could be used by underlying code. The problem is revealed
when a long unicode line is encoded.
The patch implements proper check which works for any text and
encoding.
author | Igor Ippolitov <iippolitov@gmail.com> |
---|---|
date | Tue, 26 Sep 2017 16:14:57 +0300 |
parents | 24849d53697d |
children | eb586ed5d8ce |
comparison
equal
deleted
inserted
replaced
34309:b94db1780365 | 34310:2d0c306a88c2 |
---|---|
44 searching for changes | 44 searching for changes |
45 adding changesets | 45 adding changesets |
46 adding manifests | 46 adding manifests |
47 adding file changes | 47 adding file changes |
48 added 2 changesets with 2 changes to 1 files | 48 added 2 changesets with 2 changes to 1 files |
49 MIME-Version: 1.0 | |
49 Content-Type: text/plain; charset="us-ascii" | 50 Content-Type: text/plain; charset="us-ascii" |
50 MIME-Version: 1.0 | |
51 Content-Transfer-Encoding: 7bit | 51 Content-Transfer-Encoding: 7bit |
52 Date: * (glob) | 52 Date: * (glob) |
53 Subject: * (glob) | 53 Subject: * (glob) |
54 From: test | 54 From: test |
55 X-Hg-Notification: changeset cb9a9f314b8b | 55 X-Hg-Notification: changeset cb9a9f314b8b |
95 > $PYTHON -c 'from __future__ import print_function ; import sys,re; print(re.sub("\n\t", " ", sys.stdin.read()), end="")' | 95 > $PYTHON -c 'from __future__ import print_function ; import sys,re; print(re.sub("\n\t", " ", sys.stdin.read()), end="")' |
96 adding changesets | 96 adding changesets |
97 adding manifests | 97 adding manifests |
98 adding file changes | 98 adding file changes |
99 added 2 changesets with 2 changes to 1 files | 99 added 2 changesets with 2 changes to 1 files |
100 MIME-Version: 1.0 | |
100 Content-Type: text/plain; charset="us-ascii" | 101 Content-Type: text/plain; charset="us-ascii" |
101 MIME-Version: 1.0 | |
102 Content-Transfer-Encoding: 7bit | 102 Content-Transfer-Encoding: 7bit |
103 Date: * (glob) | 103 Date: * (glob) |
104 Subject: * (glob) | 104 Subject: * (glob) |
105 From: test | 105 From: test |
106 X-Hg-Notification: changeset cb9a9f314b8b | 106 X-Hg-Notification: changeset cb9a9f314b8b |
172 searching for changes | 172 searching for changes |
173 adding changesets | 173 adding changesets |
174 adding manifests | 174 adding manifests |
175 adding file changes | 175 adding file changes |
176 added 4 changesets with 4 changes to 1 files | 176 added 4 changesets with 4 changes to 1 files |
177 MIME-Version: 1.0 | |
177 Content-Type: text/plain; charset="us-ascii" | 178 Content-Type: text/plain; charset="us-ascii" |
178 MIME-Version: 1.0 | |
179 Content-Transfer-Encoding: 7bit | 179 Content-Transfer-Encoding: 7bit |
180 Date: * (glob) | 180 Date: * (glob) |
181 Subject: * (glob) | 181 Subject: * (glob) |
182 From: committer_1 | 182 From: committer_1 |
183 X-Hg-Notification: changeset 84e487dddc58 | 183 X-Hg-Notification: changeset 84e487dddc58 |