Show More
@@ -70,7 +70,7 b' that the patchbomb extension can automat' | |||
|
70 | 70 | directly from the commandline. See the [email] and [smtp] sections in |
|
71 | 71 | hgrc(5) for details.''' |
|
72 | 72 | |
|
73 | import os, errno, socket, tempfile, cStringIO | |
|
73 | import os, errno, socket, tempfile, cStringIO, time | |
|
74 | 74 | import email.MIMEMultipart, email.MIMEBase |
|
75 | 75 | import email.Utils, email.Encoders, email.Generator |
|
76 | 76 | from mercurial import cmdutil, commands, hg, mail, patch, util |
@@ -446,7 +446,7 b' def patchbomb(ui, repo, *revs, **opts):' | |||
|
446 | 446 | ui.status(_('Writing '), subj, ' ...\n') |
|
447 | 447 | fp = open(opts.get('mbox'), 'In-Reply-To' in m and 'ab+' or 'wb+') |
|
448 | 448 | generator = email.Generator.Generator(fp, mangle_from_=True) |
|
449 |
date = |
|
|
449 | date = time.ctime(start_time[0]) | |
|
450 | 450 | fp.write('From %s %s\n' % (sender_addr, date)) |
|
451 | 451 | generator.flatten(m, 0) |
|
452 | 452 | fp.write('\n\n') |
@@ -163,7 +163,7 b' This patch series consists of 1 patches.' | |||
|
163 | 163 | |
|
164 | 164 | |
|
165 | 165 | Writing [PATCH] charset=utf-8; content-transfer-encoding: base64 ... |
|
166 |
From quux Thu Jan |
|
|
166 | From quux Thu Jan 1 00:04:01 1970 | |
|
167 | 167 | Content-Type: text/plain; charset="utf-8" |
|
168 | 168 | MIME-Version: 1.0 |
|
169 | 169 | Content-Transfer-Encoding: base64 |
@@ -198,7 +198,7 b' This patch series consists of 1 patches.' | |||
|
198 | 198 | |
|
199 | 199 | |
|
200 | 200 | Writing [PATCH] charset=utf-8; content-transfer-encoding: quoted-printable ... |
|
201 |
From quux Thu Jan |
|
|
201 | From quux Thu Jan 1 00:04:01 1970 | |
|
202 | 202 | Content-Type: text/plain; charset="us-ascii" |
|
203 | 203 | MIME-Version: 1.0 |
|
204 | 204 | Content-Transfer-Encoding: quoted-printable |
@@ -249,7 +249,7 b' This patch series consists of 1 patches.' | |||
|
249 | 249 | |
|
250 | 250 | Writing [PATCH] charset=us-ascii; content-transfer-encoding: 8bit ... |
|
251 | 251 | % md5sum of 8-bit output |
|
252 | e61684fc0bcccba4204714be37951893 mboxfix | |
|
252 | 8ce4c019c17ca51a293c055382d76d67 mboxfix | |
|
253 | 253 | % test diffstat for single patch |
|
254 | 254 | This patch series consists of 1 patches. |
|
255 | 255 |
General Comments 0
You need to be logged in to leave comments.
Login now