##// END OF EJS Templates
patchbomb: add (optional) note to 0 of 0 prompt
Matt Mackall -
r16233:3f79b110 default
parent child Browse files
Show More
@@ -1,549 +1,549 b''
1 # patchbomb.py - sending Mercurial changesets as patch emails
1 # patchbomb.py - sending Mercurial changesets as patch emails
2 #
2 #
3 # Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
3 # Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
4 #
4 #
5 # This software may be used and distributed according to the terms of the
5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version.
6 # GNU General Public License version 2 or any later version.
7
7
8 '''command to send changesets as (a series of) patch emails
8 '''command to send changesets as (a series of) patch emails
9
9
10 The series is started off with a "[PATCH 0 of N]" introduction, which
10 The series is started off with a "[PATCH 0 of N]" introduction, which
11 describes the series as a whole.
11 describes the series as a whole.
12
12
13 Each patch email has a Subject line of "[PATCH M of N] ...", using the
13 Each patch email has a Subject line of "[PATCH M of N] ...", using the
14 first line of the changeset description as the subject text. The
14 first line of the changeset description as the subject text. The
15 message contains two or three body parts:
15 message contains two or three body parts:
16
16
17 - The changeset description.
17 - The changeset description.
18 - [Optional] The result of running diffstat on the patch.
18 - [Optional] The result of running diffstat on the patch.
19 - The patch itself, as generated by :hg:`export`.
19 - The patch itself, as generated by :hg:`export`.
20
20
21 Each message refers to the first in the series using the In-Reply-To
21 Each message refers to the first in the series using the In-Reply-To
22 and References headers, so they will show up as a sequence in threaded
22 and References headers, so they will show up as a sequence in threaded
23 mail and news readers, and in mail archives.
23 mail and news readers, and in mail archives.
24
24
25 To configure other defaults, add a section like this to your
25 To configure other defaults, add a section like this to your
26 configuration file::
26 configuration file::
27
27
28 [email]
28 [email]
29 from = My Name <my@email>
29 from = My Name <my@email>
30 to = recipient1, recipient2, ...
30 to = recipient1, recipient2, ...
31 cc = cc1, cc2, ...
31 cc = cc1, cc2, ...
32 bcc = bcc1, bcc2, ...
32 bcc = bcc1, bcc2, ...
33 reply-to = address1, address2, ...
33 reply-to = address1, address2, ...
34
34
35 Use ``[patchbomb]`` as configuration section name if you need to
35 Use ``[patchbomb]`` as configuration section name if you need to
36 override global ``[email]`` address settings.
36 override global ``[email]`` address settings.
37
37
38 Then you can use the :hg:`email` command to mail a series of
38 Then you can use the :hg:`email` command to mail a series of
39 changesets as a patchbomb.
39 changesets as a patchbomb.
40
40
41 You can also either configure the method option in the email section
41 You can also either configure the method option in the email section
42 to be a sendmail compatible mailer or fill out the [smtp] section so
42 to be a sendmail compatible mailer or fill out the [smtp] section so
43 that the patchbomb extension can automatically send patchbombs
43 that the patchbomb extension can automatically send patchbombs
44 directly from the commandline. See the [email] and [smtp] sections in
44 directly from the commandline. See the [email] and [smtp] sections in
45 hgrc(5) for details.
45 hgrc(5) for details.
46 '''
46 '''
47
47
48 import os, errno, socket, tempfile, cStringIO
48 import os, errno, socket, tempfile, cStringIO
49 import email.MIMEMultipart, email.MIMEBase
49 import email.MIMEMultipart, email.MIMEBase
50 import email.Utils, email.Encoders, email.Generator
50 import email.Utils, email.Encoders, email.Generator
51 from mercurial import cmdutil, commands, hg, mail, patch, util, discovery
51 from mercurial import cmdutil, commands, hg, mail, patch, util, discovery
52 from mercurial import scmutil
52 from mercurial import scmutil
53 from mercurial.i18n import _
53 from mercurial.i18n import _
54 from mercurial.node import bin
54 from mercurial.node import bin
55
55
56 cmdtable = {}
56 cmdtable = {}
57 command = cmdutil.command(cmdtable)
57 command = cmdutil.command(cmdtable)
58
58
59 def prompt(ui, prompt, default=None, rest=':'):
59 def prompt(ui, prompt, default=None, rest=':'):
60 if default:
60 if default:
61 prompt += ' [%s]' % default
61 prompt += ' [%s]' % default
62 return ui.prompt(prompt + rest, default)
62 return ui.prompt(prompt + rest, default)
63
63
64 def introwanted(opts, number):
64 def introwanted(opts, number):
65 '''is an introductory message apparently wanted?'''
65 '''is an introductory message apparently wanted?'''
66 return number > 1 or opts.get('intro') or opts.get('desc')
66 return number > 1 or opts.get('intro') or opts.get('desc')
67
67
68 def makepatch(ui, repo, patchlines, opts, _charsets, idx, total, numbered,
68 def makepatch(ui, repo, patchlines, opts, _charsets, idx, total, numbered,
69 patchname=None):
69 patchname=None):
70
70
71 desc = []
71 desc = []
72 node = None
72 node = None
73 body = ''
73 body = ''
74
74
75 for line in patchlines:
75 for line in patchlines:
76 if line.startswith('#'):
76 if line.startswith('#'):
77 if line.startswith('# Node ID'):
77 if line.startswith('# Node ID'):
78 node = line.split()[-1]
78 node = line.split()[-1]
79 continue
79 continue
80 if line.startswith('diff -r') or line.startswith('diff --git'):
80 if line.startswith('diff -r') or line.startswith('diff --git'):
81 break
81 break
82 desc.append(line)
82 desc.append(line)
83
83
84 if not patchname and not node:
84 if not patchname and not node:
85 raise ValueError
85 raise ValueError
86
86
87 if opts.get('attach'):
87 if opts.get('attach'):
88 body = ('\n'.join(desc[1:]).strip() or
88 body = ('\n'.join(desc[1:]).strip() or
89 'Patch subject is complete summary.')
89 'Patch subject is complete summary.')
90 body += '\n\n\n'
90 body += '\n\n\n'
91
91
92 if opts.get('plain'):
92 if opts.get('plain'):
93 while patchlines and patchlines[0].startswith('# '):
93 while patchlines and patchlines[0].startswith('# '):
94 patchlines.pop(0)
94 patchlines.pop(0)
95 if patchlines:
95 if patchlines:
96 patchlines.pop(0)
96 patchlines.pop(0)
97 while patchlines and not patchlines[0].strip():
97 while patchlines and not patchlines[0].strip():
98 patchlines.pop(0)
98 patchlines.pop(0)
99
99
100 ds = patch.diffstat(patchlines, git=opts.get('git'))
100 ds = patch.diffstat(patchlines, git=opts.get('git'))
101 if opts.get('diffstat'):
101 if opts.get('diffstat'):
102 body += ds + '\n\n'
102 body += ds + '\n\n'
103
103
104 if opts.get('attach') or opts.get('inline'):
104 if opts.get('attach') or opts.get('inline'):
105 msg = email.MIMEMultipart.MIMEMultipart()
105 msg = email.MIMEMultipart.MIMEMultipart()
106 if body:
106 if body:
107 msg.attach(mail.mimeencode(ui, body, _charsets, opts.get('test')))
107 msg.attach(mail.mimeencode(ui, body, _charsets, opts.get('test')))
108 p = mail.mimetextpatch('\n'.join(patchlines), 'x-patch', opts.get('test'))
108 p = mail.mimetextpatch('\n'.join(patchlines), 'x-patch', opts.get('test'))
109 binnode = bin(node)
109 binnode = bin(node)
110 # if node is mq patch, it will have the patch file's name as a tag
110 # if node is mq patch, it will have the patch file's name as a tag
111 if not patchname:
111 if not patchname:
112 patchtags = [t for t in repo.nodetags(binnode)
112 patchtags = [t for t in repo.nodetags(binnode)
113 if t.endswith('.patch') or t.endswith('.diff')]
113 if t.endswith('.patch') or t.endswith('.diff')]
114 if patchtags:
114 if patchtags:
115 patchname = patchtags[0]
115 patchname = patchtags[0]
116 elif total > 1:
116 elif total > 1:
117 patchname = cmdutil.makefilename(repo, '%b-%n.patch',
117 patchname = cmdutil.makefilename(repo, '%b-%n.patch',
118 binnode, seqno=idx, total=total)
118 binnode, seqno=idx, total=total)
119 else:
119 else:
120 patchname = cmdutil.makefilename(repo, '%b.patch', binnode)
120 patchname = cmdutil.makefilename(repo, '%b.patch', binnode)
121 disposition = 'inline'
121 disposition = 'inline'
122 if opts.get('attach'):
122 if opts.get('attach'):
123 disposition = 'attachment'
123 disposition = 'attachment'
124 p['Content-Disposition'] = disposition + '; filename=' + patchname
124 p['Content-Disposition'] = disposition + '; filename=' + patchname
125 msg.attach(p)
125 msg.attach(p)
126 else:
126 else:
127 body += '\n'.join(patchlines)
127 body += '\n'.join(patchlines)
128 msg = mail.mimetextpatch(body, display=opts.get('test'))
128 msg = mail.mimetextpatch(body, display=opts.get('test'))
129
129
130 flag = ' '.join(opts.get('flag'))
130 flag = ' '.join(opts.get('flag'))
131 if flag:
131 if flag:
132 flag = ' ' + flag
132 flag = ' ' + flag
133
133
134 subj = desc[0].strip().rstrip('. ')
134 subj = desc[0].strip().rstrip('. ')
135 if not numbered:
135 if not numbered:
136 subj = '[PATCH%s] %s' % (flag, opts.get('subject') or subj)
136 subj = '[PATCH%s] %s' % (flag, opts.get('subject') or subj)
137 else:
137 else:
138 tlen = len(str(total))
138 tlen = len(str(total))
139 subj = '[PATCH %0*d of %d%s] %s' % (tlen, idx, total, flag, subj)
139 subj = '[PATCH %0*d of %d%s] %s' % (tlen, idx, total, flag, subj)
140 msg['Subject'] = mail.headencode(ui, subj, _charsets, opts.get('test'))
140 msg['Subject'] = mail.headencode(ui, subj, _charsets, opts.get('test'))
141 msg['X-Mercurial-Node'] = node
141 msg['X-Mercurial-Node'] = node
142 return msg, subj, ds
142 return msg, subj, ds
143
143
144 emailopts = [
144 emailopts = [
145 ('a', 'attach', None, _('send patches as attachments')),
145 ('a', 'attach', None, _('send patches as attachments')),
146 ('i', 'inline', None, _('send patches as inline attachments')),
146 ('i', 'inline', None, _('send patches as inline attachments')),
147 ('', 'bcc', [], _('email addresses of blind carbon copy recipients')),
147 ('', 'bcc', [], _('email addresses of blind carbon copy recipients')),
148 ('c', 'cc', [], _('email addresses of copy recipients')),
148 ('c', 'cc', [], _('email addresses of copy recipients')),
149 ('', 'confirm', None, _('ask for confirmation before sending')),
149 ('', 'confirm', None, _('ask for confirmation before sending')),
150 ('d', 'diffstat', None, _('add diffstat output to messages')),
150 ('d', 'diffstat', None, _('add diffstat output to messages')),
151 ('', 'date', '', _('use the given date as the sending date')),
151 ('', 'date', '', _('use the given date as the sending date')),
152 ('', 'desc', '', _('use the given file as the series description')),
152 ('', 'desc', '', _('use the given file as the series description')),
153 ('f', 'from', '', _('email address of sender')),
153 ('f', 'from', '', _('email address of sender')),
154 ('n', 'test', None, _('print messages that would be sent')),
154 ('n', 'test', None, _('print messages that would be sent')),
155 ('m', 'mbox', '', _('write messages to mbox file instead of sending them')),
155 ('m', 'mbox', '', _('write messages to mbox file instead of sending them')),
156 ('', 'reply-to', [], _('email addresses replies should be sent to')),
156 ('', 'reply-to', [], _('email addresses replies should be sent to')),
157 ('s', 'subject', '', _('subject of first message (intro or single patch)')),
157 ('s', 'subject', '', _('subject of first message (intro or single patch)')),
158 ('', 'in-reply-to', '', _('message identifier to reply to')),
158 ('', 'in-reply-to', '', _('message identifier to reply to')),
159 ('', 'flag', [], _('flags to add in subject prefixes')),
159 ('', 'flag', [], _('flags to add in subject prefixes')),
160 ('t', 'to', [], _('email addresses of recipients'))]
160 ('t', 'to', [], _('email addresses of recipients'))]
161
161
162 @command('email',
162 @command('email',
163 [('g', 'git', None, _('use git extended diff format')),
163 [('g', 'git', None, _('use git extended diff format')),
164 ('', 'plain', None, _('omit hg patch header')),
164 ('', 'plain', None, _('omit hg patch header')),
165 ('o', 'outgoing', None,
165 ('o', 'outgoing', None,
166 _('send changes not found in the target repository')),
166 _('send changes not found in the target repository')),
167 ('b', 'bundle', None, _('send changes not in target as a binary bundle')),
167 ('b', 'bundle', None, _('send changes not in target as a binary bundle')),
168 ('', 'bundlename', 'bundle',
168 ('', 'bundlename', 'bundle',
169 _('name of the bundle attachment file'), _('NAME')),
169 _('name of the bundle attachment file'), _('NAME')),
170 ('r', 'rev', [], _('a revision to send'), _('REV')),
170 ('r', 'rev', [], _('a revision to send'), _('REV')),
171 ('', 'force', None, _('run even when remote repository is unrelated '
171 ('', 'force', None, _('run even when remote repository is unrelated '
172 '(with -b/--bundle)')),
172 '(with -b/--bundle)')),
173 ('', 'base', [], _('a base changeset to specify instead of a destination '
173 ('', 'base', [], _('a base changeset to specify instead of a destination '
174 '(with -b/--bundle)'), _('REV')),
174 '(with -b/--bundle)'), _('REV')),
175 ('', 'intro', None, _('send an introduction email for a single patch')),
175 ('', 'intro', None, _('send an introduction email for a single patch')),
176 ] + emailopts + commands.remoteopts,
176 ] + emailopts + commands.remoteopts,
177 _('hg email [OPTION]... [DEST]...'))
177 _('hg email [OPTION]... [DEST]...'))
178 def patchbomb(ui, repo, *revs, **opts):
178 def patchbomb(ui, repo, *revs, **opts):
179 '''send changesets by email
179 '''send changesets by email
180
180
181 By default, diffs are sent in the format generated by
181 By default, diffs are sent in the format generated by
182 :hg:`export`, one per message. The series starts with a "[PATCH 0
182 :hg:`export`, one per message. The series starts with a "[PATCH 0
183 of N]" introduction, which describes the series as a whole.
183 of N]" introduction, which describes the series as a whole.
184
184
185 Each patch email has a Subject line of "[PATCH M of N] ...", using
185 Each patch email has a Subject line of "[PATCH M of N] ...", using
186 the first line of the changeset description as the subject text.
186 the first line of the changeset description as the subject text.
187 The message contains two or three parts. First, the changeset
187 The message contains two or three parts. First, the changeset
188 description.
188 description.
189
189
190 With the -d/--diffstat option, if the diffstat program is
190 With the -d/--diffstat option, if the diffstat program is
191 installed, the result of running diffstat on the patch is inserted.
191 installed, the result of running diffstat on the patch is inserted.
192
192
193 Finally, the patch itself, as generated by :hg:`export`.
193 Finally, the patch itself, as generated by :hg:`export`.
194
194
195 With the -d/--diffstat or -c/--confirm options, you will be presented
195 With the -d/--diffstat or -c/--confirm options, you will be presented
196 with a final summary of all messages and asked for confirmation before
196 with a final summary of all messages and asked for confirmation before
197 the messages are sent.
197 the messages are sent.
198
198
199 By default the patch is included as text in the email body for
199 By default the patch is included as text in the email body for
200 easy reviewing. Using the -a/--attach option will instead create
200 easy reviewing. Using the -a/--attach option will instead create
201 an attachment for the patch. With -i/--inline an inline attachment
201 an attachment for the patch. With -i/--inline an inline attachment
202 will be created.
202 will be created.
203
203
204 With -o/--outgoing, emails will be generated for patches not found
204 With -o/--outgoing, emails will be generated for patches not found
205 in the destination repository (or only those which are ancestors
205 in the destination repository (or only those which are ancestors
206 of the specified revisions if any are provided)
206 of the specified revisions if any are provided)
207
207
208 With -b/--bundle, changesets are selected as for --outgoing, but a
208 With -b/--bundle, changesets are selected as for --outgoing, but a
209 single email containing a binary Mercurial bundle as an attachment
209 single email containing a binary Mercurial bundle as an attachment
210 will be sent.
210 will be sent.
211
211
212 With -m/--mbox, instead of previewing each patchbomb message in a
212 With -m/--mbox, instead of previewing each patchbomb message in a
213 pager or sending the messages directly, it will create a UNIX
213 pager or sending the messages directly, it will create a UNIX
214 mailbox file with the patch emails. This mailbox file can be
214 mailbox file with the patch emails. This mailbox file can be
215 previewed with any mail user agent which supports UNIX mbox
215 previewed with any mail user agent which supports UNIX mbox
216 files.
216 files.
217
217
218 With -n/--test, all steps will run, but mail will not be sent.
218 With -n/--test, all steps will run, but mail will not be sent.
219 You will be prompted for an email recipient address, a subject and
219 You will be prompted for an email recipient address, a subject and
220 an introductory message describing the patches of your patchbomb.
220 an introductory message describing the patches of your patchbomb.
221 Then when all is done, patchbomb messages are displayed. If the
221 Then when all is done, patchbomb messages are displayed. If the
222 PAGER environment variable is set, your pager will be fired up once
222 PAGER environment variable is set, your pager will be fired up once
223 for each patchbomb message, so you can verify everything is alright.
223 for each patchbomb message, so you can verify everything is alright.
224
224
225 In case email sending fails, you will find a backup of your series
225 In case email sending fails, you will find a backup of your series
226 introductory message in ``.hg/last-email.txt``.
226 introductory message in ``.hg/last-email.txt``.
227
227
228 Examples::
228 Examples::
229
229
230 hg email -r 3000 # send patch 3000 only
230 hg email -r 3000 # send patch 3000 only
231 hg email -r 3000 -r 3001 # send patches 3000 and 3001
231 hg email -r 3000 -r 3001 # send patches 3000 and 3001
232 hg email -r 3000:3005 # send patches 3000 through 3005
232 hg email -r 3000:3005 # send patches 3000 through 3005
233 hg email 3000 # send patch 3000 (deprecated)
233 hg email 3000 # send patch 3000 (deprecated)
234
234
235 hg email -o # send all patches not in default
235 hg email -o # send all patches not in default
236 hg email -o DEST # send all patches not in DEST
236 hg email -o DEST # send all patches not in DEST
237 hg email -o -r 3000 # send all ancestors of 3000 not in default
237 hg email -o -r 3000 # send all ancestors of 3000 not in default
238 hg email -o -r 3000 DEST # send all ancestors of 3000 not in DEST
238 hg email -o -r 3000 DEST # send all ancestors of 3000 not in DEST
239
239
240 hg email -b # send bundle of all patches not in default
240 hg email -b # send bundle of all patches not in default
241 hg email -b DEST # send bundle of all patches not in DEST
241 hg email -b DEST # send bundle of all patches not in DEST
242 hg email -b -r 3000 # bundle of all ancestors of 3000 not in default
242 hg email -b -r 3000 # bundle of all ancestors of 3000 not in default
243 hg email -b -r 3000 DEST # bundle of all ancestors of 3000 not in DEST
243 hg email -b -r 3000 DEST # bundle of all ancestors of 3000 not in DEST
244
244
245 hg email -o -m mbox && # generate an mbox file...
245 hg email -o -m mbox && # generate an mbox file...
246 mutt -R -f mbox # ... and view it with mutt
246 mutt -R -f mbox # ... and view it with mutt
247 hg email -o -m mbox && # generate an mbox file ...
247 hg email -o -m mbox && # generate an mbox file ...
248 formail -s sendmail \\ # ... and use formail to send from the mbox
248 formail -s sendmail \\ # ... and use formail to send from the mbox
249 -bm -t < mbox # ... using sendmail
249 -bm -t < mbox # ... using sendmail
250
250
251 Before using this command, you will need to enable email in your
251 Before using this command, you will need to enable email in your
252 hgrc. See the [email] section in hgrc(5) for details.
252 hgrc. See the [email] section in hgrc(5) for details.
253 '''
253 '''
254
254
255 _charsets = mail._charsets(ui)
255 _charsets = mail._charsets(ui)
256
256
257 bundle = opts.get('bundle')
257 bundle = opts.get('bundle')
258 date = opts.get('date')
258 date = opts.get('date')
259 mbox = opts.get('mbox')
259 mbox = opts.get('mbox')
260 outgoing = opts.get('outgoing')
260 outgoing = opts.get('outgoing')
261 rev = opts.get('rev')
261 rev = opts.get('rev')
262 # internal option used by pbranches
262 # internal option used by pbranches
263 patches = opts.get('patches')
263 patches = opts.get('patches')
264
264
265 def getoutgoing(dest, revs):
265 def getoutgoing(dest, revs):
266 '''Return the revisions present locally but not in dest'''
266 '''Return the revisions present locally but not in dest'''
267 dest = ui.expandpath(dest or 'default-push', dest or 'default')
267 dest = ui.expandpath(dest or 'default-push', dest or 'default')
268 dest, branches = hg.parseurl(dest)
268 dest, branches = hg.parseurl(dest)
269 revs, checkout = hg.addbranchrevs(repo, repo, branches, revs)
269 revs, checkout = hg.addbranchrevs(repo, repo, branches, revs)
270 other = hg.peer(repo, opts, dest)
270 other = hg.peer(repo, opts, dest)
271 ui.status(_('comparing with %s\n') % util.hidepassword(dest))
271 ui.status(_('comparing with %s\n') % util.hidepassword(dest))
272 common, _anyinc, _heads = discovery.findcommonincoming(repo, other)
272 common, _anyinc, _heads = discovery.findcommonincoming(repo, other)
273 nodes = revs and map(repo.lookup, revs) or revs
273 nodes = revs and map(repo.lookup, revs) or revs
274 o = repo.changelog.findmissing(common, heads=nodes)
274 o = repo.changelog.findmissing(common, heads=nodes)
275 if not o:
275 if not o:
276 ui.status(_("no changes found\n"))
276 ui.status(_("no changes found\n"))
277 return []
277 return []
278 return [str(repo.changelog.rev(r)) for r in o]
278 return [str(repo.changelog.rev(r)) for r in o]
279
279
280 def getpatches(revs):
280 def getpatches(revs):
281 for r in scmutil.revrange(repo, revs):
281 for r in scmutil.revrange(repo, revs):
282 output = cStringIO.StringIO()
282 output = cStringIO.StringIO()
283 cmdutil.export(repo, [r], fp=output,
283 cmdutil.export(repo, [r], fp=output,
284 opts=patch.diffopts(ui, opts))
284 opts=patch.diffopts(ui, opts))
285 yield output.getvalue().split('\n')
285 yield output.getvalue().split('\n')
286
286
287 def getbundle(dest):
287 def getbundle(dest):
288 tmpdir = tempfile.mkdtemp(prefix='hg-email-bundle-')
288 tmpdir = tempfile.mkdtemp(prefix='hg-email-bundle-')
289 tmpfn = os.path.join(tmpdir, 'bundle')
289 tmpfn = os.path.join(tmpdir, 'bundle')
290 try:
290 try:
291 commands.bundle(ui, repo, tmpfn, dest, **opts)
291 commands.bundle(ui, repo, tmpfn, dest, **opts)
292 fp = open(tmpfn, 'rb')
292 fp = open(tmpfn, 'rb')
293 data = fp.read()
293 data = fp.read()
294 fp.close()
294 fp.close()
295 return data
295 return data
296 finally:
296 finally:
297 try:
297 try:
298 os.unlink(tmpfn)
298 os.unlink(tmpfn)
299 except:
299 except:
300 pass
300 pass
301 os.rmdir(tmpdir)
301 os.rmdir(tmpdir)
302
302
303 if not (opts.get('test') or mbox):
303 if not (opts.get('test') or mbox):
304 # really sending
304 # really sending
305 mail.validateconfig(ui)
305 mail.validateconfig(ui)
306
306
307 if not (revs or rev or outgoing or bundle or patches):
307 if not (revs or rev or outgoing or bundle or patches):
308 raise util.Abort(_('specify at least one changeset with -r or -o'))
308 raise util.Abort(_('specify at least one changeset with -r or -o'))
309
309
310 if outgoing and bundle:
310 if outgoing and bundle:
311 raise util.Abort(_("--outgoing mode always on with --bundle;"
311 raise util.Abort(_("--outgoing mode always on with --bundle;"
312 " do not re-specify --outgoing"))
312 " do not re-specify --outgoing"))
313
313
314 if outgoing or bundle:
314 if outgoing or bundle:
315 if len(revs) > 1:
315 if len(revs) > 1:
316 raise util.Abort(_("too many destinations"))
316 raise util.Abort(_("too many destinations"))
317 dest = revs and revs[0] or None
317 dest = revs and revs[0] or None
318 revs = []
318 revs = []
319
319
320 if rev:
320 if rev:
321 if revs:
321 if revs:
322 raise util.Abort(_('use only one form to specify the revision'))
322 raise util.Abort(_('use only one form to specify the revision'))
323 revs = rev
323 revs = rev
324
324
325 if outgoing:
325 if outgoing:
326 revs = getoutgoing(dest, rev)
326 revs = getoutgoing(dest, rev)
327 if bundle:
327 if bundle:
328 opts['revs'] = revs
328 opts['revs'] = revs
329
329
330 # start
330 # start
331 if date:
331 if date:
332 start_time = util.parsedate(date)
332 start_time = util.parsedate(date)
333 else:
333 else:
334 start_time = util.makedate()
334 start_time = util.makedate()
335
335
336 def genmsgid(id):
336 def genmsgid(id):
337 return '<%s.%s@%s>' % (id[:20], int(start_time[0]), socket.getfqdn())
337 return '<%s.%s@%s>' % (id[:20], int(start_time[0]), socket.getfqdn())
338
338
339 def getdescription(body, sender):
339 def getdescription(body, sender):
340 if opts.get('desc'):
340 if opts.get('desc'):
341 body = open(opts.get('desc')).read()
341 body = open(opts.get('desc')).read()
342 else:
342 else:
343 ui.write(_('\nWrite the introductory message for the '
343 ui.write(_('\nWrite the introductory message for the '
344 'patch series.\n\n'))
344 'patch series.\n\n'))
345 body = ui.edit(body, sender)
345 body = ui.edit(body, sender)
346 # Save series description in case sendmail fails
346 # Save series description in case sendmail fails
347 msgfile = repo.opener('last-email.txt', 'wb')
347 msgfile = repo.opener('last-email.txt', 'wb')
348 msgfile.write(body)
348 msgfile.write(body)
349 msgfile.close()
349 msgfile.close()
350 return body
350 return body
351
351
352 def getpatchmsgs(patches, patchnames=None):
352 def getpatchmsgs(patches, patchnames=None):
353 msgs = []
353 msgs = []
354
354
355 ui.write(_('This patch series consists of %d patches.\n\n')
355 ui.write(_('This patch series consists of %d patches.\n\n')
356 % len(patches))
356 % len(patches))
357
357
358 # build the intro message, or skip it if the user declines
358 # build the intro message, or skip it if the user declines
359 if introwanted(opts, len(patches)):
359 if introwanted(opts, len(patches)):
360 msg = makeintro(patches)
360 msg = makeintro(patches)
361 if msg:
361 if msg:
362 msgs.append(msg)
362 msgs.append(msg)
363
363
364 # are we going to send more than one message?
364 # are we going to send more than one message?
365 numbered = len(msgs) + len(patches) > 1
365 numbered = len(msgs) + len(patches) > 1
366
366
367 # now generate the actual patch messages
367 # now generate the actual patch messages
368 name = None
368 name = None
369 for i, p in enumerate(patches):
369 for i, p in enumerate(patches):
370 if patchnames:
370 if patchnames:
371 name = patchnames[i]
371 name = patchnames[i]
372 msg = makepatch(ui, repo, p, opts, _charsets, i + 1,
372 msg = makepatch(ui, repo, p, opts, _charsets, i + 1,
373 len(patches), numbered, name)
373 len(patches), numbered, name)
374 msgs.append(msg)
374 msgs.append(msg)
375
375
376 return msgs
376 return msgs
377
377
378 def makeintro(patches):
378 def makeintro(patches):
379 tlen = len(str(len(patches)))
379 tlen = len(str(len(patches)))
380
380
381 flag = opts.get('flag') or ''
381 flag = opts.get('flag') or ''
382 if flag:
382 if flag:
383 flag = ' ' + ' '.join(flag)
383 flag = ' ' + ' '.join(flag)
384 prefix = '[PATCH %0*d of %d%s]' % (tlen, 0, len(patches), flag)
384 prefix = '[PATCH %0*d of %d%s]' % (tlen, 0, len(patches), flag)
385
385
386 subj = (opts.get('subject') or
386 subj = (opts.get('subject') or
387 prompt(ui, 'Subject: ', rest=prefix, default=''))
387 prompt(ui, '(optional) Subject: ', rest=prefix, default=''))
388 if not subj:
388 if not subj:
389 return None # skip intro if the user doesn't bother
389 return None # skip intro if the user doesn't bother
390
390
391 subj = prefix + ' ' + subj
391 subj = prefix + ' ' + subj
392
392
393 body = ''
393 body = ''
394 if opts.get('diffstat'):
394 if opts.get('diffstat'):
395 # generate a cumulative diffstat of the whole patch series
395 # generate a cumulative diffstat of the whole patch series
396 diffstat = patch.diffstat(sum(patches, []))
396 diffstat = patch.diffstat(sum(patches, []))
397 body = '\n' + diffstat
397 body = '\n' + diffstat
398 else:
398 else:
399 diffstat = None
399 diffstat = None
400
400
401 body = getdescription(body, sender)
401 body = getdescription(body, sender)
402 msg = mail.mimeencode(ui, body, _charsets, opts.get('test'))
402 msg = mail.mimeencode(ui, body, _charsets, opts.get('test'))
403 msg['Subject'] = mail.headencode(ui, subj, _charsets,
403 msg['Subject'] = mail.headencode(ui, subj, _charsets,
404 opts.get('test'))
404 opts.get('test'))
405 return (msg, subj, diffstat)
405 return (msg, subj, diffstat)
406
406
407 def getbundlemsgs(bundle):
407 def getbundlemsgs(bundle):
408 subj = (opts.get('subject')
408 subj = (opts.get('subject')
409 or prompt(ui, 'Subject:', 'A bundle for your repository'))
409 or prompt(ui, 'Subject:', 'A bundle for your repository'))
410
410
411 body = getdescription('', sender)
411 body = getdescription('', sender)
412 msg = email.MIMEMultipart.MIMEMultipart()
412 msg = email.MIMEMultipart.MIMEMultipart()
413 if body:
413 if body:
414 msg.attach(mail.mimeencode(ui, body, _charsets, opts.get('test')))
414 msg.attach(mail.mimeencode(ui, body, _charsets, opts.get('test')))
415 datapart = email.MIMEBase.MIMEBase('application', 'x-mercurial-bundle')
415 datapart = email.MIMEBase.MIMEBase('application', 'x-mercurial-bundle')
416 datapart.set_payload(bundle)
416 datapart.set_payload(bundle)
417 bundlename = '%s.hg' % opts.get('bundlename', 'bundle')
417 bundlename = '%s.hg' % opts.get('bundlename', 'bundle')
418 datapart.add_header('Content-Disposition', 'attachment',
418 datapart.add_header('Content-Disposition', 'attachment',
419 filename=bundlename)
419 filename=bundlename)
420 email.Encoders.encode_base64(datapart)
420 email.Encoders.encode_base64(datapart)
421 msg.attach(datapart)
421 msg.attach(datapart)
422 msg['Subject'] = mail.headencode(ui, subj, _charsets, opts.get('test'))
422 msg['Subject'] = mail.headencode(ui, subj, _charsets, opts.get('test'))
423 return [(msg, subj, None)]
423 return [(msg, subj, None)]
424
424
425 sender = (opts.get('from') or ui.config('email', 'from') or
425 sender = (opts.get('from') or ui.config('email', 'from') or
426 ui.config('patchbomb', 'from') or
426 ui.config('patchbomb', 'from') or
427 prompt(ui, 'From', ui.username()))
427 prompt(ui, 'From', ui.username()))
428
428
429 if patches:
429 if patches:
430 msgs = getpatchmsgs(patches, opts.get('patchnames'))
430 msgs = getpatchmsgs(patches, opts.get('patchnames'))
431 elif bundle:
431 elif bundle:
432 msgs = getbundlemsgs(getbundle(dest))
432 msgs = getbundlemsgs(getbundle(dest))
433 else:
433 else:
434 msgs = getpatchmsgs(list(getpatches(revs)))
434 msgs = getpatchmsgs(list(getpatches(revs)))
435
435
436 showaddrs = []
436 showaddrs = []
437
437
438 def getaddrs(header, ask=False, default=None):
438 def getaddrs(header, ask=False, default=None):
439 configkey = header.lower()
439 configkey = header.lower()
440 opt = header.replace('-', '_').lower()
440 opt = header.replace('-', '_').lower()
441 addrs = opts.get(opt)
441 addrs = opts.get(opt)
442 if addrs:
442 if addrs:
443 showaddrs.append('%s: %s' % (header, ', '.join(addrs)))
443 showaddrs.append('%s: %s' % (header, ', '.join(addrs)))
444 return mail.addrlistencode(ui, addrs, _charsets, opts.get('test'))
444 return mail.addrlistencode(ui, addrs, _charsets, opts.get('test'))
445
445
446 # not on the command line: fallback to config and then maybe ask
446 # not on the command line: fallback to config and then maybe ask
447 addr = (ui.config('email', configkey) or
447 addr = (ui.config('email', configkey) or
448 ui.config('patchbomb', configkey) or
448 ui.config('patchbomb', configkey) or
449 '')
449 '')
450 if not addr and ask:
450 if not addr and ask:
451 addr = prompt(ui, header, default=default)
451 addr = prompt(ui, header, default=default)
452 if addr:
452 if addr:
453 showaddrs.append('%s: %s' % (header, addr))
453 showaddrs.append('%s: %s' % (header, addr))
454 return mail.addrlistencode(ui, [addr], _charsets, opts.get('test'))
454 return mail.addrlistencode(ui, [addr], _charsets, opts.get('test'))
455 else:
455 else:
456 return default
456 return default
457
457
458 to = getaddrs('To', ask=True)
458 to = getaddrs('To', ask=True)
459 if not to:
459 if not to:
460 # we can get here in non-interactive mode
460 # we can get here in non-interactive mode
461 raise util.Abort(_('no recipient addresses provided'))
461 raise util.Abort(_('no recipient addresses provided'))
462 cc = getaddrs('Cc', ask=True, default='') or []
462 cc = getaddrs('Cc', ask=True, default='') or []
463 bcc = getaddrs('Bcc') or []
463 bcc = getaddrs('Bcc') or []
464 replyto = getaddrs('Reply-To')
464 replyto = getaddrs('Reply-To')
465
465
466 if opts.get('diffstat') or opts.get('confirm'):
466 if opts.get('diffstat') or opts.get('confirm'):
467 ui.write(_('\nFinal summary:\n\n'))
467 ui.write(_('\nFinal summary:\n\n'))
468 ui.write('From: %s\n' % sender)
468 ui.write('From: %s\n' % sender)
469 for addr in showaddrs:
469 for addr in showaddrs:
470 ui.write('%s\n' % addr)
470 ui.write('%s\n' % addr)
471 for m, subj, ds in msgs:
471 for m, subj, ds in msgs:
472 ui.write('Subject: %s\n' % subj)
472 ui.write('Subject: %s\n' % subj)
473 if ds:
473 if ds:
474 ui.write(ds)
474 ui.write(ds)
475 ui.write('\n')
475 ui.write('\n')
476 if ui.promptchoice(_('are you sure you want to send (yn)?'),
476 if ui.promptchoice(_('are you sure you want to send (yn)?'),
477 (_('&Yes'), _('&No'))):
477 (_('&Yes'), _('&No'))):
478 raise util.Abort(_('patchbomb canceled'))
478 raise util.Abort(_('patchbomb canceled'))
479
479
480 ui.write('\n')
480 ui.write('\n')
481
481
482 parent = opts.get('in_reply_to') or None
482 parent = opts.get('in_reply_to') or None
483 # angle brackets may be omitted, they're not semantically part of the msg-id
483 # angle brackets may be omitted, they're not semantically part of the msg-id
484 if parent is not None:
484 if parent is not None:
485 if not parent.startswith('<'):
485 if not parent.startswith('<'):
486 parent = '<' + parent
486 parent = '<' + parent
487 if not parent.endswith('>'):
487 if not parent.endswith('>'):
488 parent += '>'
488 parent += '>'
489
489
490 first = True
490 first = True
491
491
492 sender_addr = email.Utils.parseaddr(sender)[1]
492 sender_addr = email.Utils.parseaddr(sender)[1]
493 sender = mail.addressencode(ui, sender, _charsets, opts.get('test'))
493 sender = mail.addressencode(ui, sender, _charsets, opts.get('test'))
494 sendmail = None
494 sendmail = None
495 for i, (m, subj, ds) in enumerate(msgs):
495 for i, (m, subj, ds) in enumerate(msgs):
496 try:
496 try:
497 m['Message-Id'] = genmsgid(m['X-Mercurial-Node'])
497 m['Message-Id'] = genmsgid(m['X-Mercurial-Node'])
498 except TypeError:
498 except TypeError:
499 m['Message-Id'] = genmsgid('patchbomb')
499 m['Message-Id'] = genmsgid('patchbomb')
500 if parent:
500 if parent:
501 m['In-Reply-To'] = parent
501 m['In-Reply-To'] = parent
502 m['References'] = parent
502 m['References'] = parent
503 if first:
503 if first:
504 parent = m['Message-Id']
504 parent = m['Message-Id']
505 first = False
505 first = False
506
506
507 m['User-Agent'] = 'Mercurial-patchbomb/%s' % util.version()
507 m['User-Agent'] = 'Mercurial-patchbomb/%s' % util.version()
508 m['Date'] = email.Utils.formatdate(start_time[0], localtime=True)
508 m['Date'] = email.Utils.formatdate(start_time[0], localtime=True)
509
509
510 start_time = (start_time[0] + 1, start_time[1])
510 start_time = (start_time[0] + 1, start_time[1])
511 m['From'] = sender
511 m['From'] = sender
512 m['To'] = ', '.join(to)
512 m['To'] = ', '.join(to)
513 if cc:
513 if cc:
514 m['Cc'] = ', '.join(cc)
514 m['Cc'] = ', '.join(cc)
515 if bcc:
515 if bcc:
516 m['Bcc'] = ', '.join(bcc)
516 m['Bcc'] = ', '.join(bcc)
517 if replyto:
517 if replyto:
518 m['Reply-To'] = ', '.join(replyto)
518 m['Reply-To'] = ', '.join(replyto)
519 if opts.get('test'):
519 if opts.get('test'):
520 ui.status(_('Displaying '), subj, ' ...\n')
520 ui.status(_('Displaying '), subj, ' ...\n')
521 ui.flush()
521 ui.flush()
522 if 'PAGER' in os.environ and not ui.plain():
522 if 'PAGER' in os.environ and not ui.plain():
523 fp = util.popen(os.environ['PAGER'], 'w')
523 fp = util.popen(os.environ['PAGER'], 'w')
524 else:
524 else:
525 fp = ui
525 fp = ui
526 generator = email.Generator.Generator(fp, mangle_from_=False)
526 generator = email.Generator.Generator(fp, mangle_from_=False)
527 try:
527 try:
528 generator.flatten(m, 0)
528 generator.flatten(m, 0)
529 fp.write('\n')
529 fp.write('\n')
530 except IOError, inst:
530 except IOError, inst:
531 if inst.errno != errno.EPIPE:
531 if inst.errno != errno.EPIPE:
532 raise
532 raise
533 if fp is not ui:
533 if fp is not ui:
534 fp.close()
534 fp.close()
535 else:
535 else:
536 if not sendmail:
536 if not sendmail:
537 sendmail = mail.connect(ui, mbox=mbox)
537 sendmail = mail.connect(ui, mbox=mbox)
538 ui.status(_('Sending '), subj, ' ...\n')
538 ui.status(_('Sending '), subj, ' ...\n')
539 ui.progress(_('sending'), i, item=subj, total=len(msgs))
539 ui.progress(_('sending'), i, item=subj, total=len(msgs))
540 if not mbox:
540 if not mbox:
541 # Exim does not remove the Bcc field
541 # Exim does not remove the Bcc field
542 del m['Bcc']
542 del m['Bcc']
543 fp = cStringIO.StringIO()
543 fp = cStringIO.StringIO()
544 generator = email.Generator.Generator(fp, mangle_from_=False)
544 generator = email.Generator.Generator(fp, mangle_from_=False)
545 generator.flatten(m, 0)
545 generator.flatten(m, 0)
546 sendmail(sender_addr, to + bcc + cc, fp.getvalue())
546 sendmail(sender_addr, to + bcc + cc, fp.getvalue())
547
547
548 ui.progress(_('writing'), None)
548 ui.progress(_('writing'), None)
549 ui.progress(_('sending'), None)
549 ui.progress(_('sending'), None)
@@ -1,2334 +1,2334 b''
1 $ "$TESTDIR/hghave" system-sh || exit 80
1 $ "$TESTDIR/hghave" system-sh || exit 80
2
2
3 $ echo "[extensions]" >> $HGRCPATH
3 $ echo "[extensions]" >> $HGRCPATH
4 $ echo "patchbomb=" >> $HGRCPATH
4 $ echo "patchbomb=" >> $HGRCPATH
5
5
6 $ hg init t
6 $ hg init t
7 $ cd t
7 $ cd t
8 $ echo a > a
8 $ echo a > a
9 $ hg commit -Ama -d '1 0'
9 $ hg commit -Ama -d '1 0'
10 adding a
10 adding a
11
11
12 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
12 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -r tip
13 This patch series consists of 1 patches.
13 This patch series consists of 1 patches.
14
14
15
15
16 Displaying [PATCH] a ...
16 Displaying [PATCH] a ...
17 Content-Type: text/plain; charset="us-ascii"
17 Content-Type: text/plain; charset="us-ascii"
18 MIME-Version: 1.0
18 MIME-Version: 1.0
19 Content-Transfer-Encoding: 7bit
19 Content-Transfer-Encoding: 7bit
20 Subject: [PATCH] a
20 Subject: [PATCH] a
21 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
21 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
22 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
22 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
23 User-Agent: Mercurial-patchbomb/* (glob)
23 User-Agent: Mercurial-patchbomb/* (glob)
24 Date: Thu, 01 Jan 1970 00:01:00 +0000
24 Date: Thu, 01 Jan 1970 00:01:00 +0000
25 From: quux
25 From: quux
26 To: foo
26 To: foo
27 Cc: bar
27 Cc: bar
28
28
29 # HG changeset patch
29 # HG changeset patch
30 # User test
30 # User test
31 # Date 1 0
31 # Date 1 0
32 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
32 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
33 # Parent 0000000000000000000000000000000000000000
33 # Parent 0000000000000000000000000000000000000000
34 a
34 a
35
35
36 diff -r 000000000000 -r 8580ff50825a a
36 diff -r 000000000000 -r 8580ff50825a a
37 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
37 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
38 +++ b/a Thu Jan 01 00:00:01 1970 +0000
38 +++ b/a Thu Jan 01 00:00:01 1970 +0000
39 @@ -0,0 +1,1 @@
39 @@ -0,0 +1,1 @@
40 +a
40 +a
41
41
42
42
43 $ hg --config ui.interactive=1 email --confirm -n -f quux -t foo -c bar -r tip<<EOF
43 $ hg --config ui.interactive=1 email --confirm -n -f quux -t foo -c bar -r tip<<EOF
44 > n
44 > n
45 > EOF
45 > EOF
46 This patch series consists of 1 patches.
46 This patch series consists of 1 patches.
47
47
48
48
49 Final summary:
49 Final summary:
50
50
51 From: quux
51 From: quux
52 To: foo
52 To: foo
53 Cc: bar
53 Cc: bar
54 Subject: [PATCH] a
54 Subject: [PATCH] a
55 a | 1 +
55 a | 1 +
56 1 files changed, 1 insertions(+), 0 deletions(-)
56 1 files changed, 1 insertions(+), 0 deletions(-)
57
57
58 are you sure you want to send (yn)? abort: patchbomb canceled
58 are you sure you want to send (yn)? abort: patchbomb canceled
59 [255]
59 [255]
60
60
61 $ echo b > b
61 $ echo b > b
62 $ hg commit -Amb -d '2 0'
62 $ hg commit -Amb -d '2 0'
63 adding b
63 adding b
64
64
65 $ hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test -r 0:tip
65 $ hg email --date '1970-1-1 0:2' -n -f quux -t foo -c bar -s test -r 0:tip
66 This patch series consists of 2 patches.
66 This patch series consists of 2 patches.
67
67
68
68
69 Write the introductory message for the patch series.
69 Write the introductory message for the patch series.
70
70
71
71
72 Displaying [PATCH 0 of 2] test ...
72 Displaying [PATCH 0 of 2] test ...
73 Content-Type: text/plain; charset="us-ascii"
73 Content-Type: text/plain; charset="us-ascii"
74 MIME-Version: 1.0
74 MIME-Version: 1.0
75 Content-Transfer-Encoding: 7bit
75 Content-Transfer-Encoding: 7bit
76 Subject: [PATCH 0 of 2] test
76 Subject: [PATCH 0 of 2] test
77 Message-Id: <patchbomb.120@*> (glob)
77 Message-Id: <patchbomb.120@*> (glob)
78 User-Agent: Mercurial-patchbomb/* (glob)
78 User-Agent: Mercurial-patchbomb/* (glob)
79 Date: Thu, 01 Jan 1970 00:02:00 +0000
79 Date: Thu, 01 Jan 1970 00:02:00 +0000
80 From: quux
80 From: quux
81 To: foo
81 To: foo
82 Cc: bar
82 Cc: bar
83
83
84
84
85 Displaying [PATCH 1 of 2] a ...
85 Displaying [PATCH 1 of 2] a ...
86 Content-Type: text/plain; charset="us-ascii"
86 Content-Type: text/plain; charset="us-ascii"
87 MIME-Version: 1.0
87 MIME-Version: 1.0
88 Content-Transfer-Encoding: 7bit
88 Content-Transfer-Encoding: 7bit
89 Subject: [PATCH 1 of 2] a
89 Subject: [PATCH 1 of 2] a
90 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
90 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
91 Message-Id: <8580ff50825a50c8f716.121@*> (glob)
91 Message-Id: <8580ff50825a50c8f716.121@*> (glob)
92 In-Reply-To: <patchbomb.120@*> (glob)
92 In-Reply-To: <patchbomb.120@*> (glob)
93 References: <patchbomb.120@*> (glob)
93 References: <patchbomb.120@*> (glob)
94 User-Agent: Mercurial-patchbomb/* (glob)
94 User-Agent: Mercurial-patchbomb/* (glob)
95 Date: Thu, 01 Jan 1970 00:02:01 +0000
95 Date: Thu, 01 Jan 1970 00:02:01 +0000
96 From: quux
96 From: quux
97 To: foo
97 To: foo
98 Cc: bar
98 Cc: bar
99
99
100 # HG changeset patch
100 # HG changeset patch
101 # User test
101 # User test
102 # Date 1 0
102 # Date 1 0
103 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
103 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
104 # Parent 0000000000000000000000000000000000000000
104 # Parent 0000000000000000000000000000000000000000
105 a
105 a
106
106
107 diff -r 000000000000 -r 8580ff50825a a
107 diff -r 000000000000 -r 8580ff50825a a
108 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
108 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
109 +++ b/a Thu Jan 01 00:00:01 1970 +0000
109 +++ b/a Thu Jan 01 00:00:01 1970 +0000
110 @@ -0,0 +1,1 @@
110 @@ -0,0 +1,1 @@
111 +a
111 +a
112
112
113 Displaying [PATCH 2 of 2] b ...
113 Displaying [PATCH 2 of 2] b ...
114 Content-Type: text/plain; charset="us-ascii"
114 Content-Type: text/plain; charset="us-ascii"
115 MIME-Version: 1.0
115 MIME-Version: 1.0
116 Content-Transfer-Encoding: 7bit
116 Content-Transfer-Encoding: 7bit
117 Subject: [PATCH 2 of 2] b
117 Subject: [PATCH 2 of 2] b
118 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
118 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
119 Message-Id: <97d72e5f12c7e84f8506.122@*> (glob)
119 Message-Id: <97d72e5f12c7e84f8506.122@*> (glob)
120 In-Reply-To: <patchbomb.120@*> (glob)
120 In-Reply-To: <patchbomb.120@*> (glob)
121 References: <patchbomb.120@*> (glob)
121 References: <patchbomb.120@*> (glob)
122 User-Agent: Mercurial-patchbomb/* (glob)
122 User-Agent: Mercurial-patchbomb/* (glob)
123 Date: Thu, 01 Jan 1970 00:02:02 +0000
123 Date: Thu, 01 Jan 1970 00:02:02 +0000
124 From: quux
124 From: quux
125 To: foo
125 To: foo
126 Cc: bar
126 Cc: bar
127
127
128 # HG changeset patch
128 # HG changeset patch
129 # User test
129 # User test
130 # Date 2 0
130 # Date 2 0
131 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
131 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
132 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
132 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
133 b
133 b
134
134
135 diff -r 8580ff50825a -r 97d72e5f12c7 b
135 diff -r 8580ff50825a -r 97d72e5f12c7 b
136 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
136 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
137 +++ b/b Thu Jan 01 00:00:02 1970 +0000
137 +++ b/b Thu Jan 01 00:00:02 1970 +0000
138 @@ -0,0 +1,1 @@
138 @@ -0,0 +1,1 @@
139 +b
139 +b
140
140
141
141
142 .hg/last-email.txt
142 .hg/last-email.txt
143
143
144 $ cat > editor << '__EOF__'
144 $ cat > editor << '__EOF__'
145 > #!/bin/sh
145 > #!/bin/sh
146 > echo "a precious introductory message" > "$1"
146 > echo "a precious introductory message" > "$1"
147 > __EOF__
147 > __EOF__
148 $ chmod +x editor
148 $ chmod +x editor
149 $ HGEDITOR="'`pwd`'"/editor hg email -n -t foo -s test -r 0:tip > /dev/null
149 $ HGEDITOR="'`pwd`'"/editor hg email -n -t foo -s test -r 0:tip > /dev/null
150 $ cat .hg/last-email.txt
150 $ cat .hg/last-email.txt
151 a precious introductory message
151 a precious introductory message
152
152
153 $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip \
153 $ hg email -m test.mbox -f quux -t foo -c bar -s test 0:tip \
154 > --config extensions.progress= --config progress.assume-tty=1 \
154 > --config extensions.progress= --config progress.assume-tty=1 \
155 > --config progress.delay=0 --config progress.refresh=0 \
155 > --config progress.delay=0 --config progress.refresh=0 \
156 > --config progress.width=60 2>&1 | \
156 > --config progress.width=60 2>&1 | \
157 > python $TESTDIR/filtercr.py
157 > python $TESTDIR/filtercr.py
158 This patch series consists of 2 patches.
158 This patch series consists of 2 patches.
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 sending [ ] 0/3
164 sending [ ] 0/3
165 sending [ ] 0/3
165 sending [ ] 0/3
166
166
167
167
168 sending [==============> ] 1/3
168 sending [==============> ] 1/3
169 sending [==============> ] 1/3
169 sending [==============> ] 1/3
170
170
171
171
172 sending [=============================> ] 2/3
172 sending [=============================> ] 2/3
173 sending [=============================> ] 2/3
173 sending [=============================> ] 2/3
174 \r (esc)
174 \r (esc)
175 Sending [PATCH 0 of 2] test ...
175 Sending [PATCH 0 of 2] test ...
176 Sending [PATCH 1 of 2] a ...
176 Sending [PATCH 1 of 2] a ...
177 Sending [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
183 $ cd t2
183 $ cd t2
184 $ echo c > c
184 $ echo c > c
185 $ hg commit -Amc -d '3 0'
185 $ hg commit -Amc -d '3 0'
186 adding c
186 adding c
187
187
188 $ cat > description <<EOF
188 $ cat > description <<EOF
189 > a multiline
189 > a multiline
190 >
190 >
191 > description
191 > description
192 > EOF
192 > EOF
193
193
194
194
195 test bundle and description:
195 test bundle and description:
196 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
196 $ hg email --date '1970-1-1 0:3' -n -f quux -t foo \
197 > -c bar -s test -r tip -b --desc description
197 > -c bar -s test -r tip -b --desc description
198 searching for changes
198 searching for changes
199 1 changesets found
199 1 changesets found
200
200
201 Displaying test ...
201 Displaying test ...
202 Content-Type: multipart/mixed; boundary="===*" (glob)
202 Content-Type: multipart/mixed; boundary="===*" (glob)
203 MIME-Version: 1.0
203 MIME-Version: 1.0
204 Subject: test
204 Subject: test
205 Message-Id: <patchbomb.180@*> (glob)
205 Message-Id: <patchbomb.180@*> (glob)
206 User-Agent: Mercurial-patchbomb/* (glob)
206 User-Agent: Mercurial-patchbomb/* (glob)
207 Date: Thu, 01 Jan 1970 00:03:00 +0000
207 Date: Thu, 01 Jan 1970 00:03:00 +0000
208 From: quux
208 From: quux
209 To: foo
209 To: foo
210 Cc: bar
210 Cc: bar
211
211
212 --===* (glob)
212 --===* (glob)
213 Content-Type: text/plain; charset="us-ascii"
213 Content-Type: text/plain; charset="us-ascii"
214 MIME-Version: 1.0
214 MIME-Version: 1.0
215 Content-Transfer-Encoding: 7bit
215 Content-Transfer-Encoding: 7bit
216
216
217 a multiline
217 a multiline
218
218
219 description
219 description
220
220
221 --===* (glob)
221 --===* (glob)
222 Content-Type: application/x-mercurial-bundle
222 Content-Type: application/x-mercurial-bundle
223 MIME-Version: 1.0
223 MIME-Version: 1.0
224 Content-Disposition: attachment; filename="bundle.hg"
224 Content-Disposition: attachment; filename="bundle.hg"
225 Content-Transfer-Encoding: base64
225 Content-Transfer-Encoding: base64
226
226
227 SEcxMEJaaDkxQVkmU1nvR7I3AAAN////lFYQWj1/4HwRkdC/AywIAk0E4pfoSIIIgQCgGEQOcLAA
227 SEcxMEJaaDkxQVkmU1nvR7I3AAAN////lFYQWj1/4HwRkdC/AywIAk0E4pfoSIIIgQCgGEQOcLAA
228 2tA1VPyp4mkeoG0EaaPU0GTT1GjRiNPIg9CZGBqZ6UbU9J+KFU09DNUaGgAAAAAANAGgAAAAA1U8
228 2tA1VPyp4mkeoG0EaaPU0GTT1GjRiNPIg9CZGBqZ6UbU9J+KFU09DNUaGgAAAAAANAGgAAAAA1U8
229 oGgAADQGgAANNANAAAAAAZipFLz3XoakCEQB3PVPyHJVi1iYkAAKQAZQGpQGZESInRnCFMqLDla2
229 oGgAADQGgAANNANAAAAAAZipFLz3XoakCEQB3PVPyHJVi1iYkAAKQAZQGpQGZESInRnCFMqLDla2
230 Bx3qfRQeA2N4lnzKkAmP8kR2asievLLXXebVU8Vg4iEBqcJNJAxIapSU6SM4888ZAciRG6MYAIEE
230 Bx3qfRQeA2N4lnzKkAmP8kR2asievLLXXebVU8Vg4iEBqcJNJAxIapSU6SM4888ZAciRG6MYAIEE
231 SlIBpFisgGkyRjX//TMtfcUAEsGu56+YnE1OlTZmzKm8BSu2rvo4rHAYYaadIFFuTy0LYgIkgLVD
231 SlIBpFisgGkyRjX//TMtfcUAEsGu56+YnE1OlTZmzKm8BSu2rvo4rHAYYaadIFFuTy0LYgIkgLVD
232 sgVa2F19D1tx9+hgbAygLgQwaIqcDdgA4BjQgIiz/AEP72++llgDKhKducqodGE4B0ETqF3JFOFC
232 sgVa2F19D1tx9+hgbAygLgQwaIqcDdgA4BjQgIiz/AEP72++llgDKhKducqodGE4B0ETqF3JFOFC
233 Q70eyNw=
233 Q70eyNw=
234 --===*-- (glob)
234 --===*-- (glob)
235
235
236 utf-8 patch:
236 utf-8 patch:
237 $ python -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();'
237 $ python -c 'fp = open("utf", "wb"); fp.write("h\xC3\xB6mma!\n"); fp.close();'
238 $ hg commit -A -d '4 0' -m 'utf-8 content'
238 $ hg commit -A -d '4 0' -m 'utf-8 content'
239 adding description
239 adding description
240 adding utf
240 adding utf
241
241
242 no mime encoding for email --test:
242 no mime encoding for email --test:
243 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
243 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
244 This patch series consists of 1 patches.
244 This patch series consists of 1 patches.
245
245
246
246
247 Displaying [PATCH] utf-8 content ...
247 Displaying [PATCH] utf-8 content ...
248 Content-Type: text/plain; charset="us-ascii"
248 Content-Type: text/plain; charset="us-ascii"
249 MIME-Version: 1.0
249 MIME-Version: 1.0
250 Content-Transfer-Encoding: 8bit
250 Content-Transfer-Encoding: 8bit
251 Subject: [PATCH] utf-8 content
251 Subject: [PATCH] utf-8 content
252 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
252 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
253 Message-Id: <909a00e13e9d78b575ae.240@*> (glob)
253 Message-Id: <909a00e13e9d78b575ae.240@*> (glob)
254 User-Agent: Mercurial-patchbomb/* (glob)
254 User-Agent: Mercurial-patchbomb/* (glob)
255 Date: Thu, 01 Jan 1970 00:04:00 +0000
255 Date: Thu, 01 Jan 1970 00:04:00 +0000
256 From: quux
256 From: quux
257 To: foo
257 To: foo
258 Cc: bar
258 Cc: bar
259
259
260 # HG changeset patch
260 # HG changeset patch
261 # User test
261 # User test
262 # Date 4 0
262 # Date 4 0
263 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
263 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
264 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
264 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
265 utf-8 content
265 utf-8 content
266
266
267 diff -r ff2c9fa2018b -r 909a00e13e9d description
267 diff -r ff2c9fa2018b -r 909a00e13e9d description
268 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
268 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
269 +++ b/description Thu Jan 01 00:00:04 1970 +0000
269 +++ b/description Thu Jan 01 00:00:04 1970 +0000
270 @@ -0,0 +1,3 @@
270 @@ -0,0 +1,3 @@
271 +a multiline
271 +a multiline
272 +
272 +
273 +description
273 +description
274 diff -r ff2c9fa2018b -r 909a00e13e9d utf
274 diff -r ff2c9fa2018b -r 909a00e13e9d utf
275 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
275 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
276 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
276 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
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 'Q <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 Sending [PATCH] utf-8 content ...
286 Sending [PATCH] utf-8 content ...
287
287
288 $ cat mbox
288 $ cat mbox
289 From quux ... ... .. ..:..:.. .... (re)
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: Q <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
304 MThiMTVmYTc0YjMzMzYzYmRhOTUyNzMyM2UyYTk5Zgp1dGYtOCBjb250ZW50CgpkaWZmIC1yIGZm
304 MThiMTVmYTc0YjMzMzYzYmRhOTUyNzMyM2UyYTk5Zgp1dGYtOCBjb250ZW50CgpkaWZmIC1yIGZm
305 MmM5ZmEyMDE4YiAtciA5MDlhMDBlMTNlOWQgZGVzY3JpcHRpb24KLS0tIC9kZXYvbnVsbAlUaHUg
305 MmM5ZmEyMDE4YiAtciA5MDlhMDBlMTNlOWQgZGVzY3JpcHRpb24KLS0tIC9kZXYvbnVsbAlUaHUg
306 SmFuIDAxIDAwOjAwOjAwIDE5NzAgKzAwMDAKKysrIGIvZGVzY3JpcHRpb24JVGh1IEphbiAwMSAw
306 SmFuIDAxIDAwOjAwOjAwIDE5NzAgKzAwMDAKKysrIGIvZGVzY3JpcHRpb24JVGh1IEphbiAwMSAw
307 MDowMDowNCAxOTcwICswMDAwCkBAIC0wLDAgKzEsMyBAQAorYSBtdWx0aWxpbmUKKworZGVzY3Jp
307 MDowMDowNCAxOTcwICswMDAwCkBAIC0wLDAgKzEsMyBAQAorYSBtdWx0aWxpbmUKKworZGVzY3Jp
308 cHRpb24KZGlmZiAtciBmZjJjOWZhMjAxOGIgLXIgOTA5YTAwZTEzZTlkIHV0ZgotLS0gL2Rldi9u
308 cHRpb24KZGlmZiAtciBmZjJjOWZhMjAxOGIgLXIgOTA5YTAwZTEzZTlkIHV0ZgotLS0gL2Rldi9u
309 dWxsCVRodSBKYW4gMDEgMDA6MDA6MDAgMTk3MCArMDAwMAorKysgYi91dGYJVGh1IEphbiAwMSAw
309 dWxsCVRodSBKYW4gMDEgMDA6MDA6MDAgMTk3MCArMDAwMAorKysgYi91dGYJVGh1IEphbiAwMSAw
310 MDowMDowNCAxOTcwICswMDAwCkBAIC0wLDAgKzEsMSBAQAoraMO2bW1hIQo=
310 MDowMDowNCAxOTcwICswMDAwCkBAIC0wLDAgKzEsMSBAQAoraMO2bW1hIQo=
311
311
312
312
313 $ python -c 'print open("mbox").read().split("\n\n")[1].decode("base64")'
313 $ python -c 'print open("mbox").read().split("\n\n")[1].decode("base64")'
314 # HG changeset patch
314 # HG changeset patch
315 # User test
315 # User test
316 # Date 4 0
316 # Date 4 0
317 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
317 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
318 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
318 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
319 utf-8 content
319 utf-8 content
320
320
321 diff -r ff2c9fa2018b -r 909a00e13e9d description
321 diff -r ff2c9fa2018b -r 909a00e13e9d description
322 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
322 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
323 +++ b/description Thu Jan 01 00:00:04 1970 +0000
323 +++ b/description Thu Jan 01 00:00:04 1970 +0000
324 @@ -0,0 +1,3 @@
324 @@ -0,0 +1,3 @@
325 +a multiline
325 +a multiline
326 +
326 +
327 +description
327 +description
328 diff -r ff2c9fa2018b -r 909a00e13e9d utf
328 diff -r ff2c9fa2018b -r 909a00e13e9d utf
329 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
329 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
330 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
330 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
331 @@ -0,0 +1,1 @@
331 @@ -0,0 +1,1 @@
332 +h\xc3\xb6mma! (esc)
332 +h\xc3\xb6mma! (esc)
333
333
334 $ rm mbox
334 $ rm mbox
335
335
336 mime encoded mbox (quoted-printable):
336 mime encoded mbox (quoted-printable):
337 $ python -c 'fp = open("long", "wb"); fp.write("%s\nfoo\n\nbar\n" % ("x" * 1024)); fp.close();'
337 $ python -c 'fp = open("long", "wb"); fp.write("%s\nfoo\n\nbar\n" % ("x" * 1024)); fp.close();'
338 $ hg commit -A -d '4 0' -m 'long line'
338 $ hg commit -A -d '4 0' -m 'long line'
339 adding long
339 adding long
340
340
341 no mime encoding for email --test:
341 no mime encoding for email --test:
342 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
342 $ hg email --date '1970-1-1 0:4' -f quux -t foo -c bar -r tip -n
343 This patch series consists of 1 patches.
343 This patch series consists of 1 patches.
344
344
345
345
346 Displaying [PATCH] long line ...
346 Displaying [PATCH] long line ...
347 Content-Type: text/plain; charset="us-ascii"
347 Content-Type: text/plain; charset="us-ascii"
348 MIME-Version: 1.0
348 MIME-Version: 1.0
349 Content-Transfer-Encoding: quoted-printable
349 Content-Transfer-Encoding: quoted-printable
350 Subject: [PATCH] long line
350 Subject: [PATCH] long line
351 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
351 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
352 Message-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
352 Message-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
353 User-Agent: Mercurial-patchbomb/* (glob)
353 User-Agent: Mercurial-patchbomb/* (glob)
354 Date: Thu, 01 Jan 1970 00:04:00 +0000
354 Date: Thu, 01 Jan 1970 00:04:00 +0000
355 From: quux
355 From: quux
356 To: foo
356 To: foo
357 Cc: bar
357 Cc: bar
358
358
359 # HG changeset patch
359 # HG changeset patch
360 # User test
360 # User test
361 # Date 4 0
361 # Date 4 0
362 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
362 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
363 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
363 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
364 long line
364 long line
365
365
366 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
366 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
367 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
367 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
368 +++ b/long Thu Jan 01 00:00:04 1970 +0000
368 +++ b/long Thu Jan 01 00:00:04 1970 +0000
369 @@ -0,0 +1,4 @@
369 @@ -0,0 +1,4 @@
370 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
370 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
371 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
371 xxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
378 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
379 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
379 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
380 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
380 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
381 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
381 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
382 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
382 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
383 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
383 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
384 +foo
384 +foo
385 +
385 +
386 +bar
386 +bar
387
387
388
388
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 Sending [PATCH] long line ...
394 Sending [PATCH] long line ...
395 $ cat mbox
395 $ cat mbox
396 From quux ... ... .. ..:..:.. .... (re)
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
402 Message-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
402 Message-Id: <a2ea8fc83dd8b93cfd86.240@*> (glob)
403 User-Agent: Mercurial-patchbomb/* (glob)
403 User-Agent: Mercurial-patchbomb/* (glob)
404 Date: Thu, 01 Jan 1970 00:04:00 +0000
404 Date: Thu, 01 Jan 1970 00:04:00 +0000
405 From: quux
405 From: quux
406 To: foo
406 To: foo
407 Cc: bar
407 Cc: bar
408
408
409 # HG changeset patch
409 # HG changeset patch
410 # User test
410 # User test
411 # Date 4 0
411 # Date 4 0
412 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
412 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
413 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
413 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
414 long line
414 long line
415
415
416 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
416 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
417 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
417 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
418 +++ b/long Thu Jan 01 00:00:04 1970 +0000
418 +++ b/long Thu Jan 01 00:00:04 1970 +0000
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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
433 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
433 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
434 +foo
434 +foo
435 +
435 +
436 +bar
436 +bar
437
437
438
438
439
439
440 $ rm mbox
440 $ rm mbox
441
441
442 iso-8859-1 patch:
442 iso-8859-1 patch:
443 $ python -c 'fp = open("isolatin", "wb"); fp.write("h\xF6mma!\n"); fp.close();'
443 $ python -c 'fp = open("isolatin", "wb"); fp.write("h\xF6mma!\n"); fp.close();'
444 $ hg commit -A -d '5 0' -m 'isolatin 8-bit encoding'
444 $ hg commit -A -d '5 0' -m 'isolatin 8-bit encoding'
445 adding isolatin
445 adding isolatin
446
446
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 Sending [PATCH] isolatin 8-bit encoding ...
452 Sending [PATCH] isolatin 8-bit encoding ...
453 $ cat mbox
453 $ cat mbox
454 From quux ... ... .. ..:..:.. .... (re)
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
460 Message-Id: <240fb913fc1b7ff15ddb.300@*> (glob)
460 Message-Id: <240fb913fc1b7ff15ddb.300@*> (glob)
461 User-Agent: Mercurial-patchbomb/* (glob)
461 User-Agent: Mercurial-patchbomb/* (glob)
462 Date: Thu, 01 Jan 1970 00:05:00 +0000
462 Date: Thu, 01 Jan 1970 00:05:00 +0000
463 From: quux
463 From: quux
464 To: foo
464 To: foo
465 Cc: bar
465 Cc: bar
466
466
467 # HG changeset patch
467 # HG changeset patch
468 # User test
468 # User test
469 # Date 5 0
469 # Date 5 0
470 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
470 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
471 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
471 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
472 isolatin 8-bit encoding
472 isolatin 8-bit encoding
473
473
474 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
474 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
475 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
475 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
476 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
476 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
477 @@ -0,0 +1,1 @@
477 @@ -0,0 +1,1 @@
478 +h\xf6mma! (esc)
478 +h\xf6mma! (esc)
479
479
480
480
481
481
482 test diffstat for single patch:
482 test diffstat for single patch:
483 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2
483 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y -r 2
484 This patch series consists of 1 patches.
484 This patch series consists of 1 patches.
485
485
486
486
487 Final summary:
487 Final summary:
488
488
489 From: quux
489 From: quux
490 To: foo
490 To: foo
491 Cc: bar
491 Cc: bar
492 Subject: [PATCH] test
492 Subject: [PATCH] test
493 c | 1 +
493 c | 1 +
494 1 files changed, 1 insertions(+), 0 deletions(-)
494 1 files changed, 1 insertions(+), 0 deletions(-)
495
495
496 are you sure you want to send (yn)? y
496 are you sure you want to send (yn)? y
497
497
498 Displaying [PATCH] test ...
498 Displaying [PATCH] test ...
499 Content-Type: text/plain; charset="us-ascii"
499 Content-Type: text/plain; charset="us-ascii"
500 MIME-Version: 1.0
500 MIME-Version: 1.0
501 Content-Transfer-Encoding: 7bit
501 Content-Transfer-Encoding: 7bit
502 Subject: [PATCH] test
502 Subject: [PATCH] test
503 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
503 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
504 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
504 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
505 User-Agent: Mercurial-patchbomb/* (glob)
505 User-Agent: Mercurial-patchbomb/* (glob)
506 Date: Thu, 01 Jan 1970 00:01:00 +0000
506 Date: Thu, 01 Jan 1970 00:01:00 +0000
507 From: quux
507 From: quux
508 To: foo
508 To: foo
509 Cc: bar
509 Cc: bar
510
510
511 c | 1 +
511 c | 1 +
512 1 files changed, 1 insertions(+), 0 deletions(-)
512 1 files changed, 1 insertions(+), 0 deletions(-)
513
513
514
514
515 # HG changeset patch
515 # HG changeset patch
516 # User test
516 # User test
517 # Date 3 0
517 # Date 3 0
518 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
518 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
519 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
519 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
520 c
520 c
521
521
522 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
522 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
523 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
523 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
524 +++ b/c Thu Jan 01 00:00:03 1970 +0000
524 +++ b/c Thu Jan 01 00:00:03 1970 +0000
525 @@ -0,0 +1,1 @@
525 @@ -0,0 +1,1 @@
526 +c
526 +c
527
527
528
528
529 test diffstat for multiple patches:
529 test diffstat for multiple patches:
530 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \
530 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -d -y \
531 > -r 0:1
531 > -r 0:1
532 This patch series consists of 2 patches.
532 This patch series consists of 2 patches.
533
533
534
534
535 Write the introductory message for the patch series.
535 Write the introductory message for the patch series.
536
536
537
537
538 Final summary:
538 Final summary:
539
539
540 From: quux
540 From: quux
541 To: foo
541 To: foo
542 Cc: bar
542 Cc: bar
543 Subject: [PATCH 0 of 2] test
543 Subject: [PATCH 0 of 2] test
544 a | 1 +
544 a | 1 +
545 b | 1 +
545 b | 1 +
546 2 files changed, 2 insertions(+), 0 deletions(-)
546 2 files changed, 2 insertions(+), 0 deletions(-)
547 Subject: [PATCH 1 of 2] a
547 Subject: [PATCH 1 of 2] a
548 a | 1 +
548 a | 1 +
549 1 files changed, 1 insertions(+), 0 deletions(-)
549 1 files changed, 1 insertions(+), 0 deletions(-)
550 Subject: [PATCH 2 of 2] b
550 Subject: [PATCH 2 of 2] b
551 b | 1 +
551 b | 1 +
552 1 files changed, 1 insertions(+), 0 deletions(-)
552 1 files changed, 1 insertions(+), 0 deletions(-)
553
553
554 are you sure you want to send (yn)? y
554 are you sure you want to send (yn)? y
555
555
556 Displaying [PATCH 0 of 2] test ...
556 Displaying [PATCH 0 of 2] test ...
557 Content-Type: text/plain; charset="us-ascii"
557 Content-Type: text/plain; charset="us-ascii"
558 MIME-Version: 1.0
558 MIME-Version: 1.0
559 Content-Transfer-Encoding: 7bit
559 Content-Transfer-Encoding: 7bit
560 Subject: [PATCH 0 of 2] test
560 Subject: [PATCH 0 of 2] test
561 Message-Id: <patchbomb.60@*> (glob)
561 Message-Id: <patchbomb.60@*> (glob)
562 User-Agent: Mercurial-patchbomb/* (glob)
562 User-Agent: Mercurial-patchbomb/* (glob)
563 Date: Thu, 01 Jan 1970 00:01:00 +0000
563 Date: Thu, 01 Jan 1970 00:01:00 +0000
564 From: quux
564 From: quux
565 To: foo
565 To: foo
566 Cc: bar
566 Cc: bar
567
567
568
568
569 a | 1 +
569 a | 1 +
570 b | 1 +
570 b | 1 +
571 2 files changed, 2 insertions(+), 0 deletions(-)
571 2 files changed, 2 insertions(+), 0 deletions(-)
572
572
573 Displaying [PATCH 1 of 2] a ...
573 Displaying [PATCH 1 of 2] a ...
574 Content-Type: text/plain; charset="us-ascii"
574 Content-Type: text/plain; charset="us-ascii"
575 MIME-Version: 1.0
575 MIME-Version: 1.0
576 Content-Transfer-Encoding: 7bit
576 Content-Transfer-Encoding: 7bit
577 Subject: [PATCH 1 of 2] a
577 Subject: [PATCH 1 of 2] a
578 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
578 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
579 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
579 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
580 In-Reply-To: <patchbomb.60@*> (glob)
580 In-Reply-To: <patchbomb.60@*> (glob)
581 References: <patchbomb.60@*> (glob)
581 References: <patchbomb.60@*> (glob)
582 User-Agent: Mercurial-patchbomb/* (glob)
582 User-Agent: Mercurial-patchbomb/* (glob)
583 Date: Thu, 01 Jan 1970 00:01:01 +0000
583 Date: Thu, 01 Jan 1970 00:01:01 +0000
584 From: quux
584 From: quux
585 To: foo
585 To: foo
586 Cc: bar
586 Cc: bar
587
587
588 a | 1 +
588 a | 1 +
589 1 files changed, 1 insertions(+), 0 deletions(-)
589 1 files changed, 1 insertions(+), 0 deletions(-)
590
590
591
591
592 # HG changeset patch
592 # HG changeset patch
593 # User test
593 # User test
594 # Date 1 0
594 # Date 1 0
595 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
595 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
596 # Parent 0000000000000000000000000000000000000000
596 # Parent 0000000000000000000000000000000000000000
597 a
597 a
598
598
599 diff -r 000000000000 -r 8580ff50825a a
599 diff -r 000000000000 -r 8580ff50825a a
600 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
600 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
601 +++ b/a Thu Jan 01 00:00:01 1970 +0000
601 +++ b/a Thu Jan 01 00:00:01 1970 +0000
602 @@ -0,0 +1,1 @@
602 @@ -0,0 +1,1 @@
603 +a
603 +a
604
604
605 Displaying [PATCH 2 of 2] b ...
605 Displaying [PATCH 2 of 2] b ...
606 Content-Type: text/plain; charset="us-ascii"
606 Content-Type: text/plain; charset="us-ascii"
607 MIME-Version: 1.0
607 MIME-Version: 1.0
608 Content-Transfer-Encoding: 7bit
608 Content-Transfer-Encoding: 7bit
609 Subject: [PATCH 2 of 2] b
609 Subject: [PATCH 2 of 2] b
610 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
610 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
611 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
611 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
612 In-Reply-To: <patchbomb.60@*> (glob)
612 In-Reply-To: <patchbomb.60@*> (glob)
613 References: <patchbomb.60@*> (glob)
613 References: <patchbomb.60@*> (glob)
614 User-Agent: Mercurial-patchbomb/* (glob)
614 User-Agent: Mercurial-patchbomb/* (glob)
615 Date: Thu, 01 Jan 1970 00:01:02 +0000
615 Date: Thu, 01 Jan 1970 00:01:02 +0000
616 From: quux
616 From: quux
617 To: foo
617 To: foo
618 Cc: bar
618 Cc: bar
619
619
620 b | 1 +
620 b | 1 +
621 1 files changed, 1 insertions(+), 0 deletions(-)
621 1 files changed, 1 insertions(+), 0 deletions(-)
622
622
623
623
624 # HG changeset patch
624 # HG changeset patch
625 # User test
625 # User test
626 # Date 2 0
626 # Date 2 0
627 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
627 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
628 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
628 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
629 b
629 b
630
630
631 diff -r 8580ff50825a -r 97d72e5f12c7 b
631 diff -r 8580ff50825a -r 97d72e5f12c7 b
632 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
632 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
633 +++ b/b Thu Jan 01 00:00:02 1970 +0000
633 +++ b/b Thu Jan 01 00:00:02 1970 +0000
634 @@ -0,0 +1,1 @@
634 @@ -0,0 +1,1 @@
635 +b
635 +b
636
636
637
637
638 test inline for single patch:
638 test inline for single patch:
639 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2
639 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2
640 This patch series consists of 1 patches.
640 This patch series consists of 1 patches.
641
641
642
642
643 Displaying [PATCH] test ...
643 Displaying [PATCH] test ...
644 Content-Type: multipart/mixed; boundary="===*" (glob)
644 Content-Type: multipart/mixed; boundary="===*" (glob)
645 MIME-Version: 1.0
645 MIME-Version: 1.0
646 Subject: [PATCH] test
646 Subject: [PATCH] test
647 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
647 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
648 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
648 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
649 User-Agent: Mercurial-patchbomb/* (glob)
649 User-Agent: Mercurial-patchbomb/* (glob)
650 Date: Thu, 01 Jan 1970 00:01:00 +0000
650 Date: Thu, 01 Jan 1970 00:01:00 +0000
651 From: quux
651 From: quux
652 To: foo
652 To: foo
653 Cc: bar
653 Cc: bar
654
654
655 --===* (glob)
655 --===* (glob)
656 Content-Type: text/x-patch; charset="us-ascii"
656 Content-Type: text/x-patch; charset="us-ascii"
657 MIME-Version: 1.0
657 MIME-Version: 1.0
658 Content-Transfer-Encoding: 7bit
658 Content-Transfer-Encoding: 7bit
659 Content-Disposition: inline; filename=t2.patch
659 Content-Disposition: inline; filename=t2.patch
660
660
661 # HG changeset patch
661 # HG changeset patch
662 # User test
662 # User test
663 # Date 3 0
663 # Date 3 0
664 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
664 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
665 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
665 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
666 c
666 c
667
667
668 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
668 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
669 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
669 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
670 +++ b/c Thu Jan 01 00:00:03 1970 +0000
670 +++ b/c Thu Jan 01 00:00:03 1970 +0000
671 @@ -0,0 +1,1 @@
671 @@ -0,0 +1,1 @@
672 +c
672 +c
673
673
674 --===*-- (glob)
674 --===*-- (glob)
675
675
676
676
677 test inline for single patch (quoted-printable):
677 test inline for single patch (quoted-printable):
678 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4
678 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 4
679 This patch series consists of 1 patches.
679 This patch series consists of 1 patches.
680
680
681
681
682 Displaying [PATCH] test ...
682 Displaying [PATCH] test ...
683 Content-Type: multipart/mixed; boundary="===*" (glob)
683 Content-Type: multipart/mixed; boundary="===*" (glob)
684 MIME-Version: 1.0
684 MIME-Version: 1.0
685 Subject: [PATCH] test
685 Subject: [PATCH] test
686 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
686 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
687 Message-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
687 Message-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
688 User-Agent: Mercurial-patchbomb/* (glob)
688 User-Agent: Mercurial-patchbomb/* (glob)
689 Date: Thu, 01 Jan 1970 00:01:00 +0000
689 Date: Thu, 01 Jan 1970 00:01:00 +0000
690 From: quux
690 From: quux
691 To: foo
691 To: foo
692 Cc: bar
692 Cc: bar
693
693
694 --===* (glob)
694 --===* (glob)
695 Content-Type: text/x-patch; charset="us-ascii"
695 Content-Type: text/x-patch; charset="us-ascii"
696 MIME-Version: 1.0
696 MIME-Version: 1.0
697 Content-Transfer-Encoding: quoted-printable
697 Content-Transfer-Encoding: quoted-printable
698 Content-Disposition: inline; filename=t2.patch
698 Content-Disposition: inline; filename=t2.patch
699
699
700 # HG changeset patch
700 # HG changeset patch
701 # User test
701 # User test
702 # Date 4 0
702 # Date 4 0
703 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
703 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
704 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
704 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
705 long line
705 long line
706
706
707 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
707 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
708 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
708 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
709 +++ b/long Thu Jan 01 00:00:04 1970 +0000
709 +++ b/long Thu Jan 01 00:00:04 1970 +0000
710 @@ -0,0 +1,4 @@
710 @@ -0,0 +1,4 @@
711 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
711 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
712 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
712 xxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
719 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
720 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
720 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
721 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
721 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
722 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
722 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
723 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
723 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
724 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
724 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
725 +foo
725 +foo
726 +
726 +
727 +bar
727 +bar
728
728
729 --===*-- (glob)
729 --===*-- (glob)
730
730
731 test inline for multiple patches:
731 test inline for multiple patches:
732 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
732 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i \
733 > -r 0:1 -r 4
733 > -r 0:1 -r 4
734 This patch series consists of 3 patches.
734 This patch series consists of 3 patches.
735
735
736
736
737 Write the introductory message for the patch series.
737 Write the introductory message for the patch series.
738
738
739
739
740 Displaying [PATCH 0 of 3] test ...
740 Displaying [PATCH 0 of 3] test ...
741 Content-Type: text/plain; charset="us-ascii"
741 Content-Type: text/plain; charset="us-ascii"
742 MIME-Version: 1.0
742 MIME-Version: 1.0
743 Content-Transfer-Encoding: 7bit
743 Content-Transfer-Encoding: 7bit
744 Subject: [PATCH 0 of 3] test
744 Subject: [PATCH 0 of 3] test
745 Message-Id: <patchbomb.60@*> (glob)
745 Message-Id: <patchbomb.60@*> (glob)
746 User-Agent: Mercurial-patchbomb/* (glob)
746 User-Agent: Mercurial-patchbomb/* (glob)
747 Date: Thu, 01 Jan 1970 00:01:00 +0000
747 Date: Thu, 01 Jan 1970 00:01:00 +0000
748 From: quux
748 From: quux
749 To: foo
749 To: foo
750 Cc: bar
750 Cc: bar
751
751
752
752
753 Displaying [PATCH 1 of 3] a ...
753 Displaying [PATCH 1 of 3] a ...
754 Content-Type: multipart/mixed; boundary="===*" (glob)
754 Content-Type: multipart/mixed; boundary="===*" (glob)
755 MIME-Version: 1.0
755 MIME-Version: 1.0
756 Subject: [PATCH 1 of 3] a
756 Subject: [PATCH 1 of 3] a
757 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
757 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
758 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
758 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
759 In-Reply-To: <patchbomb.60@*> (glob)
759 In-Reply-To: <patchbomb.60@*> (glob)
760 References: <patchbomb.60@*> (glob)
760 References: <patchbomb.60@*> (glob)
761 User-Agent: Mercurial-patchbomb/* (glob)
761 User-Agent: Mercurial-patchbomb/* (glob)
762 Date: Thu, 01 Jan 1970 00:01:01 +0000
762 Date: Thu, 01 Jan 1970 00:01:01 +0000
763 From: quux
763 From: quux
764 To: foo
764 To: foo
765 Cc: bar
765 Cc: bar
766
766
767 --===* (glob)
767 --===* (glob)
768 Content-Type: text/x-patch; charset="us-ascii"
768 Content-Type: text/x-patch; charset="us-ascii"
769 MIME-Version: 1.0
769 MIME-Version: 1.0
770 Content-Transfer-Encoding: 7bit
770 Content-Transfer-Encoding: 7bit
771 Content-Disposition: inline; filename=t2-1.patch
771 Content-Disposition: inline; filename=t2-1.patch
772
772
773 # HG changeset patch
773 # HG changeset patch
774 # User test
774 # User test
775 # Date 1 0
775 # Date 1 0
776 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
776 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
777 # Parent 0000000000000000000000000000000000000000
777 # Parent 0000000000000000000000000000000000000000
778 a
778 a
779
779
780 diff -r 000000000000 -r 8580ff50825a a
780 diff -r 000000000000 -r 8580ff50825a a
781 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
781 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
782 +++ b/a Thu Jan 01 00:00:01 1970 +0000
782 +++ b/a Thu Jan 01 00:00:01 1970 +0000
783 @@ -0,0 +1,1 @@
783 @@ -0,0 +1,1 @@
784 +a
784 +a
785
785
786 --===*-- (glob)
786 --===*-- (glob)
787 Displaying [PATCH 2 of 3] b ...
787 Displaying [PATCH 2 of 3] b ...
788 Content-Type: multipart/mixed; boundary="===*" (glob)
788 Content-Type: multipart/mixed; boundary="===*" (glob)
789 MIME-Version: 1.0
789 MIME-Version: 1.0
790 Subject: [PATCH 2 of 3] b
790 Subject: [PATCH 2 of 3] b
791 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
791 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
792 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
792 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
793 In-Reply-To: <patchbomb.60@*> (glob)
793 In-Reply-To: <patchbomb.60@*> (glob)
794 References: <patchbomb.60@*> (glob)
794 References: <patchbomb.60@*> (glob)
795 User-Agent: Mercurial-patchbomb/* (glob)
795 User-Agent: Mercurial-patchbomb/* (glob)
796 Date: Thu, 01 Jan 1970 00:01:02 +0000
796 Date: Thu, 01 Jan 1970 00:01:02 +0000
797 From: quux
797 From: quux
798 To: foo
798 To: foo
799 Cc: bar
799 Cc: bar
800
800
801 --===* (glob)
801 --===* (glob)
802 Content-Type: text/x-patch; charset="us-ascii"
802 Content-Type: text/x-patch; charset="us-ascii"
803 MIME-Version: 1.0
803 MIME-Version: 1.0
804 Content-Transfer-Encoding: 7bit
804 Content-Transfer-Encoding: 7bit
805 Content-Disposition: inline; filename=t2-2.patch
805 Content-Disposition: inline; filename=t2-2.patch
806
806
807 # HG changeset patch
807 # HG changeset patch
808 # User test
808 # User test
809 # Date 2 0
809 # Date 2 0
810 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
810 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
811 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
811 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
812 b
812 b
813
813
814 diff -r 8580ff50825a -r 97d72e5f12c7 b
814 diff -r 8580ff50825a -r 97d72e5f12c7 b
815 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
815 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
816 +++ b/b Thu Jan 01 00:00:02 1970 +0000
816 +++ b/b Thu Jan 01 00:00:02 1970 +0000
817 @@ -0,0 +1,1 @@
817 @@ -0,0 +1,1 @@
818 +b
818 +b
819
819
820 --===*-- (glob)
820 --===*-- (glob)
821 Displaying [PATCH 3 of 3] long line ...
821 Displaying [PATCH 3 of 3] long line ...
822 Content-Type: multipart/mixed; boundary="===*" (glob)
822 Content-Type: multipart/mixed; boundary="===*" (glob)
823 MIME-Version: 1.0
823 MIME-Version: 1.0
824 Subject: [PATCH 3 of 3] long line
824 Subject: [PATCH 3 of 3] long line
825 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
825 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
826 Message-Id: <a2ea8fc83dd8b93cfd86.63@*> (glob)
826 Message-Id: <a2ea8fc83dd8b93cfd86.63@*> (glob)
827 In-Reply-To: <patchbomb.60@*> (glob)
827 In-Reply-To: <patchbomb.60@*> (glob)
828 References: <patchbomb.60@*> (glob)
828 References: <patchbomb.60@*> (glob)
829 User-Agent: Mercurial-patchbomb/* (glob)
829 User-Agent: Mercurial-patchbomb/* (glob)
830 Date: Thu, 01 Jan 1970 00:01:03 +0000
830 Date: Thu, 01 Jan 1970 00:01:03 +0000
831 From: quux
831 From: quux
832 To: foo
832 To: foo
833 Cc: bar
833 Cc: bar
834
834
835 --===* (glob)
835 --===* (glob)
836 Content-Type: text/x-patch; charset="us-ascii"
836 Content-Type: text/x-patch; charset="us-ascii"
837 MIME-Version: 1.0
837 MIME-Version: 1.0
838 Content-Transfer-Encoding: quoted-printable
838 Content-Transfer-Encoding: quoted-printable
839 Content-Disposition: inline; filename=t2-3.patch
839 Content-Disposition: inline; filename=t2-3.patch
840
840
841 # HG changeset patch
841 # HG changeset patch
842 # User test
842 # User test
843 # Date 4 0
843 # Date 4 0
844 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
844 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
845 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
845 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
846 long line
846 long line
847
847
848 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
848 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
849 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
849 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
850 +++ b/long Thu Jan 01 00:00:04 1970 +0000
850 +++ b/long Thu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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
865 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
865 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
866 +foo
866 +foo
867 +
867 +
868 +bar
868 +bar
869
869
870 --===*-- (glob)
870 --===*-- (glob)
871
871
872 test attach for single patch:
872 test attach for single patch:
873 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2
873 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 2
874 This patch series consists of 1 patches.
874 This patch series consists of 1 patches.
875
875
876
876
877 Displaying [PATCH] test ...
877 Displaying [PATCH] test ...
878 Content-Type: multipart/mixed; boundary="===*" (glob)
878 Content-Type: multipart/mixed; boundary="===*" (glob)
879 MIME-Version: 1.0
879 MIME-Version: 1.0
880 Subject: [PATCH] test
880 Subject: [PATCH] test
881 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
881 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
882 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
882 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
883 User-Agent: Mercurial-patchbomb/* (glob)
883 User-Agent: Mercurial-patchbomb/* (glob)
884 Date: Thu, 01 Jan 1970 00:01:00 +0000
884 Date: Thu, 01 Jan 1970 00:01:00 +0000
885 From: quux
885 From: quux
886 To: foo
886 To: foo
887 Cc: bar
887 Cc: bar
888
888
889 --===* (glob)
889 --===* (glob)
890 Content-Type: text/plain; charset="us-ascii"
890 Content-Type: text/plain; charset="us-ascii"
891 MIME-Version: 1.0
891 MIME-Version: 1.0
892 Content-Transfer-Encoding: 7bit
892 Content-Transfer-Encoding: 7bit
893
893
894 Patch subject is complete summary.
894 Patch subject is complete summary.
895
895
896
896
897
897
898 --===* (glob)
898 --===* (glob)
899 Content-Type: text/x-patch; charset="us-ascii"
899 Content-Type: text/x-patch; charset="us-ascii"
900 MIME-Version: 1.0
900 MIME-Version: 1.0
901 Content-Transfer-Encoding: 7bit
901 Content-Transfer-Encoding: 7bit
902 Content-Disposition: attachment; filename=t2.patch
902 Content-Disposition: attachment; filename=t2.patch
903
903
904 # HG changeset patch
904 # HG changeset patch
905 # User test
905 # User test
906 # Date 3 0
906 # Date 3 0
907 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
907 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
908 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
908 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
909 c
909 c
910
910
911 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
911 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
912 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
912 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
913 +++ b/c Thu Jan 01 00:00:03 1970 +0000
913 +++ b/c Thu Jan 01 00:00:03 1970 +0000
914 @@ -0,0 +1,1 @@
914 @@ -0,0 +1,1 @@
915 +c
915 +c
916
916
917 --===*-- (glob)
917 --===*-- (glob)
918
918
919 test attach for single patch (quoted-printable):
919 test attach for single patch (quoted-printable):
920 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4
920 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a -r 4
921 This patch series consists of 1 patches.
921 This patch series consists of 1 patches.
922
922
923
923
924 Displaying [PATCH] test ...
924 Displaying [PATCH] test ...
925 Content-Type: multipart/mixed; boundary="===*" (glob)
925 Content-Type: multipart/mixed; boundary="===*" (glob)
926 MIME-Version: 1.0
926 MIME-Version: 1.0
927 Subject: [PATCH] test
927 Subject: [PATCH] test
928 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
928 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
929 Message-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
929 Message-Id: <a2ea8fc83dd8b93cfd86.60@*> (glob)
930 User-Agent: Mercurial-patchbomb/* (glob)
930 User-Agent: Mercurial-patchbomb/* (glob)
931 Date: Thu, 01 Jan 1970 00:01:00 +0000
931 Date: Thu, 01 Jan 1970 00:01:00 +0000
932 From: quux
932 From: quux
933 To: foo
933 To: foo
934 Cc: bar
934 Cc: bar
935
935
936 --===* (glob)
936 --===* (glob)
937 Content-Type: text/plain; charset="us-ascii"
937 Content-Type: text/plain; charset="us-ascii"
938 MIME-Version: 1.0
938 MIME-Version: 1.0
939 Content-Transfer-Encoding: 7bit
939 Content-Transfer-Encoding: 7bit
940
940
941 Patch subject is complete summary.
941 Patch subject is complete summary.
942
942
943
943
944
944
945 --===* (glob)
945 --===* (glob)
946 Content-Type: text/x-patch; charset="us-ascii"
946 Content-Type: text/x-patch; charset="us-ascii"
947 MIME-Version: 1.0
947 MIME-Version: 1.0
948 Content-Transfer-Encoding: quoted-printable
948 Content-Transfer-Encoding: quoted-printable
949 Content-Disposition: attachment; filename=t2.patch
949 Content-Disposition: attachment; filename=t2.patch
950
950
951 # HG changeset patch
951 # HG changeset patch
952 # User test
952 # User test
953 # Date 4 0
953 # Date 4 0
954 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
954 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
955 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
955 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
956 long line
956 long line
957
957
958 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
958 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
959 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
959 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
960 +++ b/long Thu Jan 01 00:00:04 1970 +0000
960 +++ b/long Thu Jan 01 00:00:04 1970 +0000
961 @@ -0,0 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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
975 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
975 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
976 +foo
976 +foo
977 +
977 +
978 +bar
978 +bar
979
979
980 --===*-- (glob)
980 --===*-- (glob)
981
981
982 test attach for multiple patches:
982 test attach for multiple patches:
983 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
983 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
984 > -r 0:1 -r 4
984 > -r 0:1 -r 4
985 This patch series consists of 3 patches.
985 This patch series consists of 3 patches.
986
986
987
987
988 Write the introductory message for the patch series.
988 Write the introductory message for the patch series.
989
989
990
990
991 Displaying [PATCH 0 of 3] test ...
991 Displaying [PATCH 0 of 3] test ...
992 Content-Type: text/plain; charset="us-ascii"
992 Content-Type: text/plain; charset="us-ascii"
993 MIME-Version: 1.0
993 MIME-Version: 1.0
994 Content-Transfer-Encoding: 7bit
994 Content-Transfer-Encoding: 7bit
995 Subject: [PATCH 0 of 3] test
995 Subject: [PATCH 0 of 3] test
996 Message-Id: <patchbomb.60@*> (glob)
996 Message-Id: <patchbomb.60@*> (glob)
997 User-Agent: Mercurial-patchbomb/* (glob)
997 User-Agent: Mercurial-patchbomb/* (glob)
998 Date: Thu, 01 Jan 1970 00:01:00 +0000
998 Date: Thu, 01 Jan 1970 00:01:00 +0000
999 From: quux
999 From: quux
1000 To: foo
1000 To: foo
1001 Cc: bar
1001 Cc: bar
1002
1002
1003
1003
1004 Displaying [PATCH 1 of 3] a ...
1004 Displaying [PATCH 1 of 3] a ...
1005 Content-Type: multipart/mixed; boundary="===*" (glob)
1005 Content-Type: multipart/mixed; boundary="===*" (glob)
1006 MIME-Version: 1.0
1006 MIME-Version: 1.0
1007 Subject: [PATCH 1 of 3] a
1007 Subject: [PATCH 1 of 3] a
1008 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1008 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1009 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1009 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1010 In-Reply-To: <patchbomb.60@*> (glob)
1010 In-Reply-To: <patchbomb.60@*> (glob)
1011 References: <patchbomb.60@*> (glob)
1011 References: <patchbomb.60@*> (glob)
1012 User-Agent: Mercurial-patchbomb/* (glob)
1012 User-Agent: Mercurial-patchbomb/* (glob)
1013 Date: Thu, 01 Jan 1970 00:01:01 +0000
1013 Date: Thu, 01 Jan 1970 00:01:01 +0000
1014 From: quux
1014 From: quux
1015 To: foo
1015 To: foo
1016 Cc: bar
1016 Cc: bar
1017
1017
1018 --===* (glob)
1018 --===* (glob)
1019 Content-Type: text/plain; charset="us-ascii"
1019 Content-Type: text/plain; charset="us-ascii"
1020 MIME-Version: 1.0
1020 MIME-Version: 1.0
1021 Content-Transfer-Encoding: 7bit
1021 Content-Transfer-Encoding: 7bit
1022
1022
1023 Patch subject is complete summary.
1023 Patch subject is complete summary.
1024
1024
1025
1025
1026
1026
1027 --===* (glob)
1027 --===* (glob)
1028 Content-Type: text/x-patch; charset="us-ascii"
1028 Content-Type: text/x-patch; charset="us-ascii"
1029 MIME-Version: 1.0
1029 MIME-Version: 1.0
1030 Content-Transfer-Encoding: 7bit
1030 Content-Transfer-Encoding: 7bit
1031 Content-Disposition: attachment; filename=t2-1.patch
1031 Content-Disposition: attachment; filename=t2-1.patch
1032
1032
1033 # HG changeset patch
1033 # HG changeset patch
1034 # User test
1034 # User test
1035 # Date 1 0
1035 # Date 1 0
1036 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1036 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1037 # Parent 0000000000000000000000000000000000000000
1037 # Parent 0000000000000000000000000000000000000000
1038 a
1038 a
1039
1039
1040 diff -r 000000000000 -r 8580ff50825a a
1040 diff -r 000000000000 -r 8580ff50825a a
1041 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1041 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1042 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1042 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1043 @@ -0,0 +1,1 @@
1043 @@ -0,0 +1,1 @@
1044 +a
1044 +a
1045
1045
1046 --===*-- (glob)
1046 --===*-- (glob)
1047 Displaying [PATCH 2 of 3] b ...
1047 Displaying [PATCH 2 of 3] b ...
1048 Content-Type: multipart/mixed; boundary="===*" (glob)
1048 Content-Type: multipart/mixed; boundary="===*" (glob)
1049 MIME-Version: 1.0
1049 MIME-Version: 1.0
1050 Subject: [PATCH 2 of 3] b
1050 Subject: [PATCH 2 of 3] b
1051 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1051 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1052 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1052 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1053 In-Reply-To: <patchbomb.60@*> (glob)
1053 In-Reply-To: <patchbomb.60@*> (glob)
1054 References: <patchbomb.60@*> (glob)
1054 References: <patchbomb.60@*> (glob)
1055 User-Agent: Mercurial-patchbomb/* (glob)
1055 User-Agent: Mercurial-patchbomb/* (glob)
1056 Date: Thu, 01 Jan 1970 00:01:02 +0000
1056 Date: Thu, 01 Jan 1970 00:01:02 +0000
1057 From: quux
1057 From: quux
1058 To: foo
1058 To: foo
1059 Cc: bar
1059 Cc: bar
1060
1060
1061 --===* (glob)
1061 --===* (glob)
1062 Content-Type: text/plain; charset="us-ascii"
1062 Content-Type: text/plain; charset="us-ascii"
1063 MIME-Version: 1.0
1063 MIME-Version: 1.0
1064 Content-Transfer-Encoding: 7bit
1064 Content-Transfer-Encoding: 7bit
1065
1065
1066 Patch subject is complete summary.
1066 Patch subject is complete summary.
1067
1067
1068
1068
1069
1069
1070 --===* (glob)
1070 --===* (glob)
1071 Content-Type: text/x-patch; charset="us-ascii"
1071 Content-Type: text/x-patch; charset="us-ascii"
1072 MIME-Version: 1.0
1072 MIME-Version: 1.0
1073 Content-Transfer-Encoding: 7bit
1073 Content-Transfer-Encoding: 7bit
1074 Content-Disposition: attachment; filename=t2-2.patch
1074 Content-Disposition: attachment; filename=t2-2.patch
1075
1075
1076 # HG changeset patch
1076 # HG changeset patch
1077 # User test
1077 # User test
1078 # Date 2 0
1078 # Date 2 0
1079 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1079 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1080 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1080 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1081 b
1081 b
1082
1082
1083 diff -r 8580ff50825a -r 97d72e5f12c7 b
1083 diff -r 8580ff50825a -r 97d72e5f12c7 b
1084 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1084 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1085 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1085 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1086 @@ -0,0 +1,1 @@
1086 @@ -0,0 +1,1 @@
1087 +b
1087 +b
1088
1088
1089 --===*-- (glob)
1089 --===*-- (glob)
1090 Displaying [PATCH 3 of 3] long line ...
1090 Displaying [PATCH 3 of 3] long line ...
1091 Content-Type: multipart/mixed; boundary="===*" (glob)
1091 Content-Type: multipart/mixed; boundary="===*" (glob)
1092 MIME-Version: 1.0
1092 MIME-Version: 1.0
1093 Subject: [PATCH 3 of 3] long line
1093 Subject: [PATCH 3 of 3] long line
1094 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1094 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1095 Message-Id: <a2ea8fc83dd8b93cfd86.63@*> (glob)
1095 Message-Id: <a2ea8fc83dd8b93cfd86.63@*> (glob)
1096 In-Reply-To: <patchbomb.60@*> (glob)
1096 In-Reply-To: <patchbomb.60@*> (glob)
1097 References: <patchbomb.60@*> (glob)
1097 References: <patchbomb.60@*> (glob)
1098 User-Agent: Mercurial-patchbomb/* (glob)
1098 User-Agent: Mercurial-patchbomb/* (glob)
1099 Date: Thu, 01 Jan 1970 00:01:03 +0000
1099 Date: Thu, 01 Jan 1970 00:01:03 +0000
1100 From: quux
1100 From: quux
1101 To: foo
1101 To: foo
1102 Cc: bar
1102 Cc: bar
1103
1103
1104 --===* (glob)
1104 --===* (glob)
1105 Content-Type: text/plain; charset="us-ascii"
1105 Content-Type: text/plain; charset="us-ascii"
1106 MIME-Version: 1.0
1106 MIME-Version: 1.0
1107 Content-Transfer-Encoding: 7bit
1107 Content-Transfer-Encoding: 7bit
1108
1108
1109 Patch subject is complete summary.
1109 Patch subject is complete summary.
1110
1110
1111
1111
1112
1112
1113 --===* (glob)
1113 --===* (glob)
1114 Content-Type: text/x-patch; charset="us-ascii"
1114 Content-Type: text/x-patch; charset="us-ascii"
1115 MIME-Version: 1.0
1115 MIME-Version: 1.0
1116 Content-Transfer-Encoding: quoted-printable
1116 Content-Transfer-Encoding: quoted-printable
1117 Content-Disposition: attachment; filename=t2-3.patch
1117 Content-Disposition: attachment; filename=t2-3.patch
1118
1118
1119 # HG changeset patch
1119 # HG changeset patch
1120 # User test
1120 # User test
1121 # Date 4 0
1121 # Date 4 0
1122 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1122 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1123 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1123 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1124 long line
1124 long line
1125
1125
1126 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1126 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1127 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1127 --- /dev/null Thu Jan 01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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1142 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1143 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1143 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1144 +foo
1144 +foo
1145 +
1145 +
1146 +bar
1146 +bar
1147
1147
1148 --===*-- (glob)
1148 --===*-- (glob)
1149
1149
1150 test intro for single patch:
1150 test intro for single patch:
1151 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1151 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1152 > -r 2
1152 > -r 2
1153 This patch series consists of 1 patches.
1153 This patch series consists of 1 patches.
1154
1154
1155
1155
1156 Write the introductory message for the patch series.
1156 Write the introductory message for the patch series.
1157
1157
1158
1158
1159 Displaying [PATCH 0 of 1] test ...
1159 Displaying [PATCH 0 of 1] test ...
1160 Content-Type: text/plain; charset="us-ascii"
1160 Content-Type: text/plain; charset="us-ascii"
1161 MIME-Version: 1.0
1161 MIME-Version: 1.0
1162 Content-Transfer-Encoding: 7bit
1162 Content-Transfer-Encoding: 7bit
1163 Subject: [PATCH 0 of 1] test
1163 Subject: [PATCH 0 of 1] test
1164 Message-Id: <patchbomb.60@*> (glob)
1164 Message-Id: <patchbomb.60@*> (glob)
1165 User-Agent: Mercurial-patchbomb/* (glob)
1165 User-Agent: Mercurial-patchbomb/* (glob)
1166 Date: Thu, 01 Jan 1970 00:01:00 +0000
1166 Date: Thu, 01 Jan 1970 00:01:00 +0000
1167 From: quux
1167 From: quux
1168 To: foo
1168 To: foo
1169 Cc: bar
1169 Cc: bar
1170
1170
1171
1171
1172 Displaying [PATCH 1 of 1] c ...
1172 Displaying [PATCH 1 of 1] c ...
1173 Content-Type: text/plain; charset="us-ascii"
1173 Content-Type: text/plain; charset="us-ascii"
1174 MIME-Version: 1.0
1174 MIME-Version: 1.0
1175 Content-Transfer-Encoding: 7bit
1175 Content-Transfer-Encoding: 7bit
1176 Subject: [PATCH 1 of 1] c
1176 Subject: [PATCH 1 of 1] c
1177 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1177 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1178 Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1178 Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1179 In-Reply-To: <patchbomb.60@*> (glob)
1179 In-Reply-To: <patchbomb.60@*> (glob)
1180 References: <patchbomb.60@*> (glob)
1180 References: <patchbomb.60@*> (glob)
1181 User-Agent: Mercurial-patchbomb/* (glob)
1181 User-Agent: Mercurial-patchbomb/* (glob)
1182 Date: Thu, 01 Jan 1970 00:01:01 +0000
1182 Date: Thu, 01 Jan 1970 00:01:01 +0000
1183 From: quux
1183 From: quux
1184 To: foo
1184 To: foo
1185 Cc: bar
1185 Cc: bar
1186
1186
1187 # HG changeset patch
1187 # HG changeset patch
1188 # User test
1188 # User test
1189 # Date 3 0
1189 # Date 3 0
1190 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1190 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1191 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1191 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1192 c
1192 c
1193
1193
1194 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1194 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1195 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1195 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1196 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1196 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1197 @@ -0,0 +1,1 @@
1197 @@ -0,0 +1,1 @@
1198 +c
1198 +c
1199
1199
1200
1200
1201 test --desc without --intro for a single patch:
1201 test --desc without --intro for a single patch:
1202 $ echo foo > intro.text
1202 $ echo foo > intro.text
1203 $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \
1203 $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \
1204 > -s test -r 2
1204 > -s test -r 2
1205 This patch series consists of 1 patches.
1205 This patch series consists of 1 patches.
1206
1206
1207
1207
1208 Displaying [PATCH 0 of 1] test ...
1208 Displaying [PATCH 0 of 1] test ...
1209 Content-Type: text/plain; charset="us-ascii"
1209 Content-Type: text/plain; charset="us-ascii"
1210 MIME-Version: 1.0
1210 MIME-Version: 1.0
1211 Content-Transfer-Encoding: 7bit
1211 Content-Transfer-Encoding: 7bit
1212 Subject: [PATCH 0 of 1] test
1212 Subject: [PATCH 0 of 1] test
1213 Message-Id: <patchbomb.60@*> (glob)
1213 Message-Id: <patchbomb.60@*> (glob)
1214 User-Agent: Mercurial-patchbomb/* (glob)
1214 User-Agent: Mercurial-patchbomb/* (glob)
1215 Date: Thu, 01 Jan 1970 00:01:00 +0000
1215 Date: Thu, 01 Jan 1970 00:01:00 +0000
1216 From: quux
1216 From: quux
1217 To: foo
1217 To: foo
1218 Cc: bar
1218 Cc: bar
1219
1219
1220 foo
1220 foo
1221
1221
1222 Displaying [PATCH 1 of 1] c ...
1222 Displaying [PATCH 1 of 1] c ...
1223 Content-Type: text/plain; charset="us-ascii"
1223 Content-Type: text/plain; charset="us-ascii"
1224 MIME-Version: 1.0
1224 MIME-Version: 1.0
1225 Content-Transfer-Encoding: 7bit
1225 Content-Transfer-Encoding: 7bit
1226 Subject: [PATCH 1 of 1] c
1226 Subject: [PATCH 1 of 1] c
1227 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1227 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1228 Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1228 Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1229 In-Reply-To: <patchbomb.60@*> (glob)
1229 In-Reply-To: <patchbomb.60@*> (glob)
1230 References: <patchbomb.60@*> (glob)
1230 References: <patchbomb.60@*> (glob)
1231 User-Agent: Mercurial-patchbomb/* (glob)
1231 User-Agent: Mercurial-patchbomb/* (glob)
1232 Date: Thu, 01 Jan 1970 00:01:01 +0000
1232 Date: Thu, 01 Jan 1970 00:01:01 +0000
1233 From: quux
1233 From: quux
1234 To: foo
1234 To: foo
1235 Cc: bar
1235 Cc: bar
1236
1236
1237 # HG changeset patch
1237 # HG changeset patch
1238 # User test
1238 # User test
1239 # Date 3 0
1239 # Date 3 0
1240 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1240 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1241 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1241 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1242 c
1242 c
1243
1243
1244 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1244 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1245 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1245 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1246 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1246 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1247 @@ -0,0 +1,1 @@
1247 @@ -0,0 +1,1 @@
1248 +c
1248 +c
1249
1249
1250
1250
1251 test intro for multiple patches:
1251 test intro for multiple patches:
1252 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1252 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1253 > -r 0:1
1253 > -r 0:1
1254 This patch series consists of 2 patches.
1254 This patch series consists of 2 patches.
1255
1255
1256
1256
1257 Write the introductory message for the patch series.
1257 Write the introductory message for the patch series.
1258
1258
1259
1259
1260 Displaying [PATCH 0 of 2] test ...
1260 Displaying [PATCH 0 of 2] test ...
1261 Content-Type: text/plain; charset="us-ascii"
1261 Content-Type: text/plain; charset="us-ascii"
1262 MIME-Version: 1.0
1262 MIME-Version: 1.0
1263 Content-Transfer-Encoding: 7bit
1263 Content-Transfer-Encoding: 7bit
1264 Subject: [PATCH 0 of 2] test
1264 Subject: [PATCH 0 of 2] test
1265 Message-Id: <patchbomb.60@*> (glob)
1265 Message-Id: <patchbomb.60@*> (glob)
1266 User-Agent: Mercurial-patchbomb/* (glob)
1266 User-Agent: Mercurial-patchbomb/* (glob)
1267 Date: Thu, 01 Jan 1970 00:01:00 +0000
1267 Date: Thu, 01 Jan 1970 00:01:00 +0000
1268 From: quux
1268 From: quux
1269 To: foo
1269 To: foo
1270 Cc: bar
1270 Cc: bar
1271
1271
1272
1272
1273 Displaying [PATCH 1 of 2] a ...
1273 Displaying [PATCH 1 of 2] a ...
1274 Content-Type: text/plain; charset="us-ascii"
1274 Content-Type: text/plain; charset="us-ascii"
1275 MIME-Version: 1.0
1275 MIME-Version: 1.0
1276 Content-Transfer-Encoding: 7bit
1276 Content-Transfer-Encoding: 7bit
1277 Subject: [PATCH 1 of 2] a
1277 Subject: [PATCH 1 of 2] a
1278 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1278 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1279 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1279 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1280 In-Reply-To: <patchbomb.60@*> (glob)
1280 In-Reply-To: <patchbomb.60@*> (glob)
1281 References: <patchbomb.60@*> (glob)
1281 References: <patchbomb.60@*> (glob)
1282 User-Agent: Mercurial-patchbomb/* (glob)
1282 User-Agent: Mercurial-patchbomb/* (glob)
1283 Date: Thu, 01 Jan 1970 00:01:01 +0000
1283 Date: Thu, 01 Jan 1970 00:01:01 +0000
1284 From: quux
1284 From: quux
1285 To: foo
1285 To: foo
1286 Cc: bar
1286 Cc: bar
1287
1287
1288 # HG changeset patch
1288 # HG changeset patch
1289 # User test
1289 # User test
1290 # Date 1 0
1290 # Date 1 0
1291 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1291 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1292 # Parent 0000000000000000000000000000000000000000
1292 # Parent 0000000000000000000000000000000000000000
1293 a
1293 a
1294
1294
1295 diff -r 000000000000 -r 8580ff50825a a
1295 diff -r 000000000000 -r 8580ff50825a a
1296 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1296 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1297 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1297 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1298 @@ -0,0 +1,1 @@
1298 @@ -0,0 +1,1 @@
1299 +a
1299 +a
1300
1300
1301 Displaying [PATCH 2 of 2] b ...
1301 Displaying [PATCH 2 of 2] b ...
1302 Content-Type: text/plain; charset="us-ascii"
1302 Content-Type: text/plain; charset="us-ascii"
1303 MIME-Version: 1.0
1303 MIME-Version: 1.0
1304 Content-Transfer-Encoding: 7bit
1304 Content-Transfer-Encoding: 7bit
1305 Subject: [PATCH 2 of 2] b
1305 Subject: [PATCH 2 of 2] b
1306 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1306 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1307 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1307 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1308 In-Reply-To: <patchbomb.60@*> (glob)
1308 In-Reply-To: <patchbomb.60@*> (glob)
1309 References: <patchbomb.60@*> (glob)
1309 References: <patchbomb.60@*> (glob)
1310 User-Agent: Mercurial-patchbomb/* (glob)
1310 User-Agent: Mercurial-patchbomb/* (glob)
1311 Date: Thu, 01 Jan 1970 00:01:02 +0000
1311 Date: Thu, 01 Jan 1970 00:01:02 +0000
1312 From: quux
1312 From: quux
1313 To: foo
1313 To: foo
1314 Cc: bar
1314 Cc: bar
1315
1315
1316 # HG changeset patch
1316 # HG changeset patch
1317 # User test
1317 # User test
1318 # Date 2 0
1318 # Date 2 0
1319 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1319 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1320 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1320 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1321 b
1321 b
1322
1322
1323 diff -r 8580ff50825a -r 97d72e5f12c7 b
1323 diff -r 8580ff50825a -r 97d72e5f12c7 b
1324 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1324 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1325 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1325 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1326 @@ -0,0 +1,1 @@
1326 @@ -0,0 +1,1 @@
1327 +b
1327 +b
1328
1328
1329
1329
1330 test reply-to via config:
1330 test reply-to via config:
1331 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1331 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1332 > --config patchbomb.reply-to='baz@example.com'
1332 > --config patchbomb.reply-to='baz@example.com'
1333 This patch series consists of 1 patches.
1333 This patch series consists of 1 patches.
1334
1334
1335
1335
1336 Displaying [PATCH] test ...
1336 Displaying [PATCH] test ...
1337 Content-Type: text/plain; charset="us-ascii"
1337 Content-Type: text/plain; charset="us-ascii"
1338 MIME-Version: 1.0
1338 MIME-Version: 1.0
1339 Content-Transfer-Encoding: 7bit
1339 Content-Transfer-Encoding: 7bit
1340 Subject: [PATCH] test
1340 Subject: [PATCH] test
1341 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1341 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1342 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1342 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1343 User-Agent: Mercurial-patchbomb/* (glob)
1343 User-Agent: Mercurial-patchbomb/* (glob)
1344 Date: Thu, 01 Jan 1970 00:01:00 +0000
1344 Date: Thu, 01 Jan 1970 00:01:00 +0000
1345 From: quux
1345 From: quux
1346 To: foo
1346 To: foo
1347 Cc: bar
1347 Cc: bar
1348 Reply-To: baz@example.com
1348 Reply-To: baz@example.com
1349
1349
1350 # HG changeset patch
1350 # HG changeset patch
1351 # User test
1351 # User test
1352 # Date 3 0
1352 # Date 3 0
1353 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1353 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1354 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1354 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1355 c
1355 c
1356
1356
1357 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1357 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1358 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1358 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1359 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1359 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1360 @@ -0,0 +1,1 @@
1360 @@ -0,0 +1,1 @@
1361 +c
1361 +c
1362
1362
1363
1363
1364 test reply-to via command line:
1364 test reply-to via command line:
1365 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1365 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -r 2 \
1366 > --reply-to baz --reply-to fred
1366 > --reply-to baz --reply-to fred
1367 This patch series consists of 1 patches.
1367 This patch series consists of 1 patches.
1368
1368
1369
1369
1370 Displaying [PATCH] test ...
1370 Displaying [PATCH] test ...
1371 Content-Type: text/plain; charset="us-ascii"
1371 Content-Type: text/plain; charset="us-ascii"
1372 MIME-Version: 1.0
1372 MIME-Version: 1.0
1373 Content-Transfer-Encoding: 7bit
1373 Content-Transfer-Encoding: 7bit
1374 Subject: [PATCH] test
1374 Subject: [PATCH] test
1375 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1375 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1376 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1376 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1377 User-Agent: Mercurial-patchbomb/* (glob)
1377 User-Agent: Mercurial-patchbomb/* (glob)
1378 Date: Thu, 01 Jan 1970 00:01:00 +0000
1378 Date: Thu, 01 Jan 1970 00:01:00 +0000
1379 From: quux
1379 From: quux
1380 To: foo
1380 To: foo
1381 Cc: bar
1381 Cc: bar
1382 Reply-To: baz, fred
1382 Reply-To: baz, fred
1383
1383
1384 # HG changeset patch
1384 # HG changeset patch
1385 # User test
1385 # User test
1386 # Date 3 0
1386 # Date 3 0
1387 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1387 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1388 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1388 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1389 c
1389 c
1390
1390
1391 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1391 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1392 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1392 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1393 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1393 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1394 @@ -0,0 +1,1 @@
1394 @@ -0,0 +1,1 @@
1395 +c
1395 +c
1396
1396
1397
1397
1398 tagging csets:
1398 tagging csets:
1399 $ hg tag -r0 zero zero.foo
1399 $ hg tag -r0 zero zero.foo
1400 $ hg tag -r1 one one.patch
1400 $ hg tag -r1 one one.patch
1401 $ hg tag -r2 two two.diff
1401 $ hg tag -r2 two two.diff
1402
1402
1403 test inline for single named patch:
1403 test inline for single named patch:
1404 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2
1404 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 2
1405 This patch series consists of 1 patches.
1405 This patch series consists of 1 patches.
1406
1406
1407
1407
1408 Displaying [PATCH] test ...
1408 Displaying [PATCH] test ...
1409 Content-Type: multipart/mixed; boundary="===*" (glob)
1409 Content-Type: multipart/mixed; boundary="===*" (glob)
1410 MIME-Version: 1.0
1410 MIME-Version: 1.0
1411 Subject: [PATCH] test
1411 Subject: [PATCH] test
1412 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1412 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1413 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1413 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1414 User-Agent: Mercurial-patchbomb/* (glob)
1414 User-Agent: Mercurial-patchbomb/* (glob)
1415 Date: Thu, 01 Jan 1970 00:01:00 +0000
1415 Date: Thu, 01 Jan 1970 00:01:00 +0000
1416 From: quux
1416 From: quux
1417 To: foo
1417 To: foo
1418 Cc: bar
1418 Cc: bar
1419
1419
1420 --===* (glob)
1420 --===* (glob)
1421 Content-Type: text/x-patch; charset="us-ascii"
1421 Content-Type: text/x-patch; charset="us-ascii"
1422 MIME-Version: 1.0
1422 MIME-Version: 1.0
1423 Content-Transfer-Encoding: 7bit
1423 Content-Transfer-Encoding: 7bit
1424 Content-Disposition: inline; filename=two.diff
1424 Content-Disposition: inline; filename=two.diff
1425
1425
1426 # HG changeset patch
1426 # HG changeset patch
1427 # User test
1427 # User test
1428 # Date 3 0
1428 # Date 3 0
1429 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1429 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1430 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1430 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1431 c
1431 c
1432
1432
1433 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1433 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1434 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1434 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1435 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1435 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1436 @@ -0,0 +1,1 @@
1436 @@ -0,0 +1,1 @@
1437 +c
1437 +c
1438
1438
1439 --===*-- (glob)
1439 --===*-- (glob)
1440
1440
1441 test inline for multiple named/unnamed patches:
1441 test inline for multiple named/unnamed patches:
1442 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 0:1
1442 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i -r 0:1
1443 This patch series consists of 2 patches.
1443 This patch series consists of 2 patches.
1444
1444
1445
1445
1446 Write the introductory message for the patch series.
1446 Write the introductory message for the patch series.
1447
1447
1448
1448
1449 Displaying [PATCH 0 of 2] test ...
1449 Displaying [PATCH 0 of 2] test ...
1450 Content-Type: text/plain; charset="us-ascii"
1450 Content-Type: text/plain; charset="us-ascii"
1451 MIME-Version: 1.0
1451 MIME-Version: 1.0
1452 Content-Transfer-Encoding: 7bit
1452 Content-Transfer-Encoding: 7bit
1453 Subject: [PATCH 0 of 2] test
1453 Subject: [PATCH 0 of 2] test
1454 Message-Id: <patchbomb.60@*> (glob)
1454 Message-Id: <patchbomb.60@*> (glob)
1455 User-Agent: Mercurial-patchbomb/* (glob)
1455 User-Agent: Mercurial-patchbomb/* (glob)
1456 Date: Thu, 01 Jan 1970 00:01:00 +0000
1456 Date: Thu, 01 Jan 1970 00:01:00 +0000
1457 From: quux
1457 From: quux
1458 To: foo
1458 To: foo
1459 Cc: bar
1459 Cc: bar
1460
1460
1461
1461
1462 Displaying [PATCH 1 of 2] a ...
1462 Displaying [PATCH 1 of 2] a ...
1463 Content-Type: multipart/mixed; boundary="===*" (glob)
1463 Content-Type: multipart/mixed; boundary="===*" (glob)
1464 MIME-Version: 1.0
1464 MIME-Version: 1.0
1465 Subject: [PATCH 1 of 2] a
1465 Subject: [PATCH 1 of 2] a
1466 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1466 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1467 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1467 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1468 In-Reply-To: <patchbomb.60@*> (glob)
1468 In-Reply-To: <patchbomb.60@*> (glob)
1469 References: <patchbomb.60@*> (glob)
1469 References: <patchbomb.60@*> (glob)
1470 User-Agent: Mercurial-patchbomb/* (glob)
1470 User-Agent: Mercurial-patchbomb/* (glob)
1471 Date: Thu, 01 Jan 1970 00:01:01 +0000
1471 Date: Thu, 01 Jan 1970 00:01:01 +0000
1472 From: quux
1472 From: quux
1473 To: foo
1473 To: foo
1474 Cc: bar
1474 Cc: bar
1475
1475
1476 --===* (glob)
1476 --===* (glob)
1477 Content-Type: text/x-patch; charset="us-ascii"
1477 Content-Type: text/x-patch; charset="us-ascii"
1478 MIME-Version: 1.0
1478 MIME-Version: 1.0
1479 Content-Transfer-Encoding: 7bit
1479 Content-Transfer-Encoding: 7bit
1480 Content-Disposition: inline; filename=t2-1.patch
1480 Content-Disposition: inline; filename=t2-1.patch
1481
1481
1482 # HG changeset patch
1482 # HG changeset patch
1483 # User test
1483 # User test
1484 # Date 1 0
1484 # Date 1 0
1485 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1485 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1486 # Parent 0000000000000000000000000000000000000000
1486 # Parent 0000000000000000000000000000000000000000
1487 a
1487 a
1488
1488
1489 diff -r 000000000000 -r 8580ff50825a a
1489 diff -r 000000000000 -r 8580ff50825a a
1490 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1490 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1491 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1491 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1492 @@ -0,0 +1,1 @@
1492 @@ -0,0 +1,1 @@
1493 +a
1493 +a
1494
1494
1495 --===*-- (glob)
1495 --===*-- (glob)
1496 Displaying [PATCH 2 of 2] b ...
1496 Displaying [PATCH 2 of 2] b ...
1497 Content-Type: multipart/mixed; boundary="===*" (glob)
1497 Content-Type: multipart/mixed; boundary="===*" (glob)
1498 MIME-Version: 1.0
1498 MIME-Version: 1.0
1499 Subject: [PATCH 2 of 2] b
1499 Subject: [PATCH 2 of 2] b
1500 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1500 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1501 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1501 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1502 In-Reply-To: <patchbomb.60@*> (glob)
1502 In-Reply-To: <patchbomb.60@*> (glob)
1503 References: <patchbomb.60@*> (glob)
1503 References: <patchbomb.60@*> (glob)
1504 User-Agent: Mercurial-patchbomb/* (glob)
1504 User-Agent: Mercurial-patchbomb/* (glob)
1505 Date: Thu, 01 Jan 1970 00:01:02 +0000
1505 Date: Thu, 01 Jan 1970 00:01:02 +0000
1506 From: quux
1506 From: quux
1507 To: foo
1507 To: foo
1508 Cc: bar
1508 Cc: bar
1509
1509
1510 --===* (glob)
1510 --===* (glob)
1511 Content-Type: text/x-patch; charset="us-ascii"
1511 Content-Type: text/x-patch; charset="us-ascii"
1512 MIME-Version: 1.0
1512 MIME-Version: 1.0
1513 Content-Transfer-Encoding: 7bit
1513 Content-Transfer-Encoding: 7bit
1514 Content-Disposition: inline; filename=one.patch
1514 Content-Disposition: inline; filename=one.patch
1515
1515
1516 # HG changeset patch
1516 # HG changeset patch
1517 # User test
1517 # User test
1518 # Date 2 0
1518 # Date 2 0
1519 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1519 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1520 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1520 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1521 b
1521 b
1522
1522
1523 diff -r 8580ff50825a -r 97d72e5f12c7 b
1523 diff -r 8580ff50825a -r 97d72e5f12c7 b
1524 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1524 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1525 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1525 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1526 @@ -0,0 +1,1 @@
1526 @@ -0,0 +1,1 @@
1527 +b
1527 +b
1528
1528
1529 --===*-- (glob)
1529 --===*-- (glob)
1530
1530
1531
1531
1532 test inreplyto:
1532 test inreplyto:
1533 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1533 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1534 > -r tip
1534 > -r tip
1535 This patch series consists of 1 patches.
1535 This patch series consists of 1 patches.
1536
1536
1537
1537
1538 Displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
1538 Displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
1539 Content-Type: text/plain; charset="us-ascii"
1539 Content-Type: text/plain; charset="us-ascii"
1540 MIME-Version: 1.0
1540 MIME-Version: 1.0
1541 Content-Transfer-Encoding: 7bit
1541 Content-Transfer-Encoding: 7bit
1542 Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
1542 Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
1543 X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
1543 X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
1544 Message-Id: <7aead2484924c445ad8c.60@*> (glob)
1544 Message-Id: <7aead2484924c445ad8c.60@*> (glob)
1545 In-Reply-To: <baz>
1545 In-Reply-To: <baz>
1546 References: <baz>
1546 References: <baz>
1547 User-Agent: Mercurial-patchbomb/* (glob)
1547 User-Agent: Mercurial-patchbomb/* (glob)
1548 Date: Thu, 01 Jan 1970 00:01:00 +0000
1548 Date: Thu, 01 Jan 1970 00:01:00 +0000
1549 From: quux
1549 From: quux
1550 To: foo
1550 To: foo
1551 Cc: bar
1551 Cc: bar
1552
1552
1553 # HG changeset patch
1553 # HG changeset patch
1554 # User test
1554 # User test
1555 # Date 0 0
1555 # Date 0 0
1556 # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
1556 # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
1557 # Parent 045ca29b1ea20e4940411e695e20e521f2f0f98e
1557 # Parent 045ca29b1ea20e4940411e695e20e521f2f0f98e
1558 Added tag two, two.diff for changeset ff2c9fa2018b
1558 Added tag two, two.diff for changeset ff2c9fa2018b
1559
1559
1560 diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
1560 diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
1561 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
1561 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
1562 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
1562 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
1563 @@ -2,3 +2,5 @@
1563 @@ -2,3 +2,5 @@
1564 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
1564 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
1565 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
1565 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
1566 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
1566 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
1567 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
1567 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
1568 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
1568 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
1569
1569
1570 no intro message in non-interactive mode
1570 no intro message in non-interactive mode
1571 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1571 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1572 > -r 0:1
1572 > -r 0:1
1573 This patch series consists of 2 patches.
1573 This patch series consists of 2 patches.
1574
1574
1575 Subject: [PATCH 0 of 2]
1575 (optional) Subject: [PATCH 0 of 2]
1576
1576
1577 Displaying [PATCH 1 of 2] a ...
1577 Displaying [PATCH 1 of 2] a ...
1578 Content-Type: text/plain; charset="us-ascii"
1578 Content-Type: text/plain; charset="us-ascii"
1579 MIME-Version: 1.0
1579 MIME-Version: 1.0
1580 Content-Transfer-Encoding: 7bit
1580 Content-Transfer-Encoding: 7bit
1581 Subject: [PATCH 1 of 2] a
1581 Subject: [PATCH 1 of 2] a
1582 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1582 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1583 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
1583 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
1584 In-Reply-To: <baz>
1584 In-Reply-To: <baz>
1585 References: <baz>
1585 References: <baz>
1586 User-Agent: Mercurial-patchbomb/* (glob)
1586 User-Agent: Mercurial-patchbomb/* (glob)
1587 Date: Thu, 01 Jan 1970 00:01:00 +0000
1587 Date: Thu, 01 Jan 1970 00:01:00 +0000
1588 From: quux
1588 From: quux
1589 To: foo
1589 To: foo
1590 Cc: bar
1590 Cc: bar
1591
1591
1592 # HG changeset patch
1592 # HG changeset patch
1593 # User test
1593 # User test
1594 # Date 1 0
1594 # Date 1 0
1595 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1595 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1596 # Parent 0000000000000000000000000000000000000000
1596 # Parent 0000000000000000000000000000000000000000
1597 a
1597 a
1598
1598
1599 diff -r 000000000000 -r 8580ff50825a a
1599 diff -r 000000000000 -r 8580ff50825a a
1600 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1600 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1601 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1601 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1602 @@ -0,0 +1,1 @@
1602 @@ -0,0 +1,1 @@
1603 +a
1603 +a
1604
1604
1605 Displaying [PATCH 2 of 2] b ...
1605 Displaying [PATCH 2 of 2] b ...
1606 Content-Type: text/plain; charset="us-ascii"
1606 Content-Type: text/plain; charset="us-ascii"
1607 MIME-Version: 1.0
1607 MIME-Version: 1.0
1608 Content-Transfer-Encoding: 7bit
1608 Content-Transfer-Encoding: 7bit
1609 Subject: [PATCH 2 of 2] b
1609 Subject: [PATCH 2 of 2] b
1610 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1610 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1611 Message-Id: <97d72e5f12c7e84f8506.61@*> (glob)
1611 Message-Id: <97d72e5f12c7e84f8506.61@*> (glob)
1612 In-Reply-To: <8580ff50825a50c8f716.60@*> (glob)
1612 In-Reply-To: <8580ff50825a50c8f716.60@*> (glob)
1613 References: <8580ff50825a50c8f716.60@*> (glob)
1613 References: <8580ff50825a50c8f716.60@*> (glob)
1614 User-Agent: Mercurial-patchbomb/* (glob)
1614 User-Agent: Mercurial-patchbomb/* (glob)
1615 Date: Thu, 01 Jan 1970 00:01:01 +0000
1615 Date: Thu, 01 Jan 1970 00:01:01 +0000
1616 From: quux
1616 From: quux
1617 To: foo
1617 To: foo
1618 Cc: bar
1618 Cc: bar
1619
1619
1620 # HG changeset patch
1620 # HG changeset patch
1621 # User test
1621 # User test
1622 # Date 2 0
1622 # Date 2 0
1623 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1623 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1624 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1624 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1625 b
1625 b
1626
1626
1627 diff -r 8580ff50825a -r 97d72e5f12c7 b
1627 diff -r 8580ff50825a -r 97d72e5f12c7 b
1628 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1628 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1629 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1629 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1630 @@ -0,0 +1,1 @@
1630 @@ -0,0 +1,1 @@
1631 +b
1631 +b
1632
1632
1633
1633
1634
1634
1635
1635
1636 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1636 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1637 > -s test -r 0:1
1637 > -s test -r 0:1
1638 This patch series consists of 2 patches.
1638 This patch series consists of 2 patches.
1639
1639
1640
1640
1641 Write the introductory message for the patch series.
1641 Write the introductory message for the patch series.
1642
1642
1643
1643
1644 Displaying [PATCH 0 of 2] test ...
1644 Displaying [PATCH 0 of 2] test ...
1645 Content-Type: text/plain; charset="us-ascii"
1645 Content-Type: text/plain; charset="us-ascii"
1646 MIME-Version: 1.0
1646 MIME-Version: 1.0
1647 Content-Transfer-Encoding: 7bit
1647 Content-Transfer-Encoding: 7bit
1648 Subject: [PATCH 0 of 2] test
1648 Subject: [PATCH 0 of 2] test
1649 Message-Id: <patchbomb.60@*> (glob)
1649 Message-Id: <patchbomb.60@*> (glob)
1650 In-Reply-To: <baz>
1650 In-Reply-To: <baz>
1651 References: <baz>
1651 References: <baz>
1652 User-Agent: Mercurial-patchbomb/* (glob)
1652 User-Agent: Mercurial-patchbomb/* (glob)
1653 Date: Thu, 01 Jan 1970 00:01:00 +0000
1653 Date: Thu, 01 Jan 1970 00:01:00 +0000
1654 From: quux
1654 From: quux
1655 To: foo
1655 To: foo
1656 Cc: bar
1656 Cc: bar
1657
1657
1658
1658
1659 Displaying [PATCH 1 of 2] a ...
1659 Displaying [PATCH 1 of 2] a ...
1660 Content-Type: text/plain; charset="us-ascii"
1660 Content-Type: text/plain; charset="us-ascii"
1661 MIME-Version: 1.0
1661 MIME-Version: 1.0
1662 Content-Transfer-Encoding: 7bit
1662 Content-Transfer-Encoding: 7bit
1663 Subject: [PATCH 1 of 2] a
1663 Subject: [PATCH 1 of 2] a
1664 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1664 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1665 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1665 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1666 In-Reply-To: <patchbomb.60@*> (glob)
1666 In-Reply-To: <patchbomb.60@*> (glob)
1667 References: <patchbomb.60@*> (glob)
1667 References: <patchbomb.60@*> (glob)
1668 User-Agent: Mercurial-patchbomb/* (glob)
1668 User-Agent: Mercurial-patchbomb/* (glob)
1669 Date: Thu, 01 Jan 1970 00:01:01 +0000
1669 Date: Thu, 01 Jan 1970 00:01:01 +0000
1670 From: quux
1670 From: quux
1671 To: foo
1671 To: foo
1672 Cc: bar
1672 Cc: bar
1673
1673
1674 # HG changeset patch
1674 # HG changeset patch
1675 # User test
1675 # User test
1676 # Date 1 0
1676 # Date 1 0
1677 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1677 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1678 # Parent 0000000000000000000000000000000000000000
1678 # Parent 0000000000000000000000000000000000000000
1679 a
1679 a
1680
1680
1681 diff -r 000000000000 -r 8580ff50825a a
1681 diff -r 000000000000 -r 8580ff50825a a
1682 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1682 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1683 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1683 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1684 @@ -0,0 +1,1 @@
1684 @@ -0,0 +1,1 @@
1685 +a
1685 +a
1686
1686
1687 Displaying [PATCH 2 of 2] b ...
1687 Displaying [PATCH 2 of 2] b ...
1688 Content-Type: text/plain; charset="us-ascii"
1688 Content-Type: text/plain; charset="us-ascii"
1689 MIME-Version: 1.0
1689 MIME-Version: 1.0
1690 Content-Transfer-Encoding: 7bit
1690 Content-Transfer-Encoding: 7bit
1691 Subject: [PATCH 2 of 2] b
1691 Subject: [PATCH 2 of 2] b
1692 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1692 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1693 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1693 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1694 In-Reply-To: <patchbomb.60@*> (glob)
1694 In-Reply-To: <patchbomb.60@*> (glob)
1695 References: <patchbomb.60@*> (glob)
1695 References: <patchbomb.60@*> (glob)
1696 User-Agent: Mercurial-patchbomb/* (glob)
1696 User-Agent: Mercurial-patchbomb/* (glob)
1697 Date: Thu, 01 Jan 1970 00:01:02 +0000
1697 Date: Thu, 01 Jan 1970 00:01:02 +0000
1698 From: quux
1698 From: quux
1699 To: foo
1699 To: foo
1700 Cc: bar
1700 Cc: bar
1701
1701
1702 # HG changeset patch
1702 # HG changeset patch
1703 # User test
1703 # User test
1704 # Date 2 0
1704 # Date 2 0
1705 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1705 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1706 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1706 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1707 b
1707 b
1708
1708
1709 diff -r 8580ff50825a -r 97d72e5f12c7 b
1709 diff -r 8580ff50825a -r 97d72e5f12c7 b
1710 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1710 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1711 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1711 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1712 @@ -0,0 +1,1 @@
1712 @@ -0,0 +1,1 @@
1713 +b
1713 +b
1714
1714
1715
1715
1716 test single flag for single patch:
1716 test single flag for single patch:
1717 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
1717 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
1718 > -r 2
1718 > -r 2
1719 This patch series consists of 1 patches.
1719 This patch series consists of 1 patches.
1720
1720
1721
1721
1722 Displaying [PATCH fooFlag] test ...
1722 Displaying [PATCH fooFlag] test ...
1723 Content-Type: text/plain; charset="us-ascii"
1723 Content-Type: text/plain; charset="us-ascii"
1724 MIME-Version: 1.0
1724 MIME-Version: 1.0
1725 Content-Transfer-Encoding: 7bit
1725 Content-Transfer-Encoding: 7bit
1726 Subject: [PATCH fooFlag] test
1726 Subject: [PATCH fooFlag] test
1727 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1727 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1728 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1728 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1729 User-Agent: Mercurial-patchbomb/* (glob)
1729 User-Agent: Mercurial-patchbomb/* (glob)
1730 Date: Thu, 01 Jan 1970 00:01:00 +0000
1730 Date: Thu, 01 Jan 1970 00:01:00 +0000
1731 From: quux
1731 From: quux
1732 To: foo
1732 To: foo
1733 Cc: bar
1733 Cc: bar
1734
1734
1735 # HG changeset patch
1735 # HG changeset patch
1736 # User test
1736 # User test
1737 # Date 3 0
1737 # Date 3 0
1738 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1738 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1739 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1739 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1740 c
1740 c
1741
1741
1742 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1742 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1743 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1743 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1744 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1744 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1745 @@ -0,0 +1,1 @@
1745 @@ -0,0 +1,1 @@
1746 +c
1746 +c
1747
1747
1748
1748
1749 test single flag for multiple patches:
1749 test single flag for multiple patches:
1750 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
1750 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
1751 > -r 0:1
1751 > -r 0:1
1752 This patch series consists of 2 patches.
1752 This patch series consists of 2 patches.
1753
1753
1754
1754
1755 Write the introductory message for the patch series.
1755 Write the introductory message for the patch series.
1756
1756
1757
1757
1758 Displaying [PATCH 0 of 2 fooFlag] test ...
1758 Displaying [PATCH 0 of 2 fooFlag] test ...
1759 Content-Type: text/plain; charset="us-ascii"
1759 Content-Type: text/plain; charset="us-ascii"
1760 MIME-Version: 1.0
1760 MIME-Version: 1.0
1761 Content-Transfer-Encoding: 7bit
1761 Content-Transfer-Encoding: 7bit
1762 Subject: [PATCH 0 of 2 fooFlag] test
1762 Subject: [PATCH 0 of 2 fooFlag] test
1763 Message-Id: <patchbomb.60@*> (glob)
1763 Message-Id: <patchbomb.60@*> (glob)
1764 User-Agent: Mercurial-patchbomb/* (glob)
1764 User-Agent: Mercurial-patchbomb/* (glob)
1765 Date: Thu, 01 Jan 1970 00:01:00 +0000
1765 Date: Thu, 01 Jan 1970 00:01:00 +0000
1766 From: quux
1766 From: quux
1767 To: foo
1767 To: foo
1768 Cc: bar
1768 Cc: bar
1769
1769
1770
1770
1771 Displaying [PATCH 1 of 2 fooFlag] a ...
1771 Displaying [PATCH 1 of 2 fooFlag] a ...
1772 Content-Type: text/plain; charset="us-ascii"
1772 Content-Type: text/plain; charset="us-ascii"
1773 MIME-Version: 1.0
1773 MIME-Version: 1.0
1774 Content-Transfer-Encoding: 7bit
1774 Content-Transfer-Encoding: 7bit
1775 Subject: [PATCH 1 of 2 fooFlag] a
1775 Subject: [PATCH 1 of 2 fooFlag] a
1776 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1776 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1777 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1777 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1778 In-Reply-To: <patchbomb.60@*> (glob)
1778 In-Reply-To: <patchbomb.60@*> (glob)
1779 References: <patchbomb.60@*> (glob)
1779 References: <patchbomb.60@*> (glob)
1780 User-Agent: Mercurial-patchbomb/* (glob)
1780 User-Agent: Mercurial-patchbomb/* (glob)
1781 Date: Thu, 01 Jan 1970 00:01:01 +0000
1781 Date: Thu, 01 Jan 1970 00:01:01 +0000
1782 From: quux
1782 From: quux
1783 To: foo
1783 To: foo
1784 Cc: bar
1784 Cc: bar
1785
1785
1786 # HG changeset patch
1786 # HG changeset patch
1787 # User test
1787 # User test
1788 # Date 1 0
1788 # Date 1 0
1789 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1789 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1790 # Parent 0000000000000000000000000000000000000000
1790 # Parent 0000000000000000000000000000000000000000
1791 a
1791 a
1792
1792
1793 diff -r 000000000000 -r 8580ff50825a a
1793 diff -r 000000000000 -r 8580ff50825a a
1794 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1794 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1795 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1795 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1796 @@ -0,0 +1,1 @@
1796 @@ -0,0 +1,1 @@
1797 +a
1797 +a
1798
1798
1799 Displaying [PATCH 2 of 2 fooFlag] b ...
1799 Displaying [PATCH 2 of 2 fooFlag] b ...
1800 Content-Type: text/plain; charset="us-ascii"
1800 Content-Type: text/plain; charset="us-ascii"
1801 MIME-Version: 1.0
1801 MIME-Version: 1.0
1802 Content-Transfer-Encoding: 7bit
1802 Content-Transfer-Encoding: 7bit
1803 Subject: [PATCH 2 of 2 fooFlag] b
1803 Subject: [PATCH 2 of 2 fooFlag] b
1804 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1804 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1805 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1805 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1806 In-Reply-To: <patchbomb.60@*> (glob)
1806 In-Reply-To: <patchbomb.60@*> (glob)
1807 References: <patchbomb.60@*> (glob)
1807 References: <patchbomb.60@*> (glob)
1808 User-Agent: Mercurial-patchbomb/* (glob)
1808 User-Agent: Mercurial-patchbomb/* (glob)
1809 Date: Thu, 01 Jan 1970 00:01:02 +0000
1809 Date: Thu, 01 Jan 1970 00:01:02 +0000
1810 From: quux
1810 From: quux
1811 To: foo
1811 To: foo
1812 Cc: bar
1812 Cc: bar
1813
1813
1814 # HG changeset patch
1814 # HG changeset patch
1815 # User test
1815 # User test
1816 # Date 2 0
1816 # Date 2 0
1817 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1817 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1818 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1818 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1819 b
1819 b
1820
1820
1821 diff -r 8580ff50825a -r 97d72e5f12c7 b
1821 diff -r 8580ff50825a -r 97d72e5f12c7 b
1822 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1822 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1823 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1823 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1824 @@ -0,0 +1,1 @@
1824 @@ -0,0 +1,1 @@
1825 +b
1825 +b
1826
1826
1827
1827
1828 test mutiple flags for single patch:
1828 test mutiple flags for single patch:
1829 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
1829 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
1830 > -c bar -s test -r 2
1830 > -c bar -s test -r 2
1831 This patch series consists of 1 patches.
1831 This patch series consists of 1 patches.
1832
1832
1833
1833
1834 Displaying [PATCH fooFlag barFlag] test ...
1834 Displaying [PATCH fooFlag barFlag] test ...
1835 Content-Type: text/plain; charset="us-ascii"
1835 Content-Type: text/plain; charset="us-ascii"
1836 MIME-Version: 1.0
1836 MIME-Version: 1.0
1837 Content-Transfer-Encoding: 7bit
1837 Content-Transfer-Encoding: 7bit
1838 Subject: [PATCH fooFlag barFlag] test
1838 Subject: [PATCH fooFlag barFlag] test
1839 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1839 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1840 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1840 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1841 User-Agent: Mercurial-patchbomb/* (glob)
1841 User-Agent: Mercurial-patchbomb/* (glob)
1842 Date: Thu, 01 Jan 1970 00:01:00 +0000
1842 Date: Thu, 01 Jan 1970 00:01:00 +0000
1843 From: quux
1843 From: quux
1844 To: foo
1844 To: foo
1845 Cc: bar
1845 Cc: bar
1846
1846
1847 # HG changeset patch
1847 # HG changeset patch
1848 # User test
1848 # User test
1849 # Date 3 0
1849 # Date 3 0
1850 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1850 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1851 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1851 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1852 c
1852 c
1853
1853
1854 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1854 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1855 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1855 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1856 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1856 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1857 @@ -0,0 +1,1 @@
1857 @@ -0,0 +1,1 @@
1858 +c
1858 +c
1859
1859
1860
1860
1861 test multiple flags for multiple patches:
1861 test multiple flags for multiple patches:
1862 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
1862 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
1863 > -c bar -s test -r 0:1
1863 > -c bar -s test -r 0:1
1864 This patch series consists of 2 patches.
1864 This patch series consists of 2 patches.
1865
1865
1866
1866
1867 Write the introductory message for the patch series.
1867 Write the introductory message for the patch series.
1868
1868
1869
1869
1870 Displaying [PATCH 0 of 2 fooFlag barFlag] test ...
1870 Displaying [PATCH 0 of 2 fooFlag barFlag] test ...
1871 Content-Type: text/plain; charset="us-ascii"
1871 Content-Type: text/plain; charset="us-ascii"
1872 MIME-Version: 1.0
1872 MIME-Version: 1.0
1873 Content-Transfer-Encoding: 7bit
1873 Content-Transfer-Encoding: 7bit
1874 Subject: [PATCH 0 of 2 fooFlag barFlag] test
1874 Subject: [PATCH 0 of 2 fooFlag barFlag] test
1875 Message-Id: <patchbomb.60@*> (glob)
1875 Message-Id: <patchbomb.60@*> (glob)
1876 User-Agent: Mercurial-patchbomb/* (glob)
1876 User-Agent: Mercurial-patchbomb/* (glob)
1877 Date: Thu, 01 Jan 1970 00:01:00 +0000
1877 Date: Thu, 01 Jan 1970 00:01:00 +0000
1878 From: quux
1878 From: quux
1879 To: foo
1879 To: foo
1880 Cc: bar
1880 Cc: bar
1881
1881
1882
1882
1883 Displaying [PATCH 1 of 2 fooFlag barFlag] a ...
1883 Displaying [PATCH 1 of 2 fooFlag barFlag] a ...
1884 Content-Type: text/plain; charset="us-ascii"
1884 Content-Type: text/plain; charset="us-ascii"
1885 MIME-Version: 1.0
1885 MIME-Version: 1.0
1886 Content-Transfer-Encoding: 7bit
1886 Content-Transfer-Encoding: 7bit
1887 Subject: [PATCH 1 of 2 fooFlag barFlag] a
1887 Subject: [PATCH 1 of 2 fooFlag barFlag] a
1888 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1888 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1889 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1889 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1890 In-Reply-To: <patchbomb.60@*> (glob)
1890 In-Reply-To: <patchbomb.60@*> (glob)
1891 References: <patchbomb.60@*> (glob)
1891 References: <patchbomb.60@*> (glob)
1892 User-Agent: Mercurial-patchbomb/* (glob)
1892 User-Agent: Mercurial-patchbomb/* (glob)
1893 Date: Thu, 01 Jan 1970 00:01:01 +0000
1893 Date: Thu, 01 Jan 1970 00:01:01 +0000
1894 From: quux
1894 From: quux
1895 To: foo
1895 To: foo
1896 Cc: bar
1896 Cc: bar
1897
1897
1898 # HG changeset patch
1898 # HG changeset patch
1899 # User test
1899 # User test
1900 # Date 1 0
1900 # Date 1 0
1901 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1901 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1902 # Parent 0000000000000000000000000000000000000000
1902 # Parent 0000000000000000000000000000000000000000
1903 a
1903 a
1904
1904
1905 diff -r 000000000000 -r 8580ff50825a a
1905 diff -r 000000000000 -r 8580ff50825a a
1906 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1906 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1907 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1907 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1908 @@ -0,0 +1,1 @@
1908 @@ -0,0 +1,1 @@
1909 +a
1909 +a
1910
1910
1911 Displaying [PATCH 2 of 2 fooFlag barFlag] b ...
1911 Displaying [PATCH 2 of 2 fooFlag barFlag] b ...
1912 Content-Type: text/plain; charset="us-ascii"
1912 Content-Type: text/plain; charset="us-ascii"
1913 MIME-Version: 1.0
1913 MIME-Version: 1.0
1914 Content-Transfer-Encoding: 7bit
1914 Content-Transfer-Encoding: 7bit
1915 Subject: [PATCH 2 of 2 fooFlag barFlag] b
1915 Subject: [PATCH 2 of 2 fooFlag barFlag] b
1916 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1916 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1917 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1917 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1918 In-Reply-To: <patchbomb.60@*> (glob)
1918 In-Reply-To: <patchbomb.60@*> (glob)
1919 References: <patchbomb.60@*> (glob)
1919 References: <patchbomb.60@*> (glob)
1920 User-Agent: Mercurial-patchbomb/* (glob)
1920 User-Agent: Mercurial-patchbomb/* (glob)
1921 Date: Thu, 01 Jan 1970 00:01:02 +0000
1921 Date: Thu, 01 Jan 1970 00:01:02 +0000
1922 From: quux
1922 From: quux
1923 To: foo
1923 To: foo
1924 Cc: bar
1924 Cc: bar
1925
1925
1926 # HG changeset patch
1926 # HG changeset patch
1927 # User test
1927 # User test
1928 # Date 2 0
1928 # Date 2 0
1929 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1929 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1930 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1930 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1931 b
1931 b
1932
1932
1933 diff -r 8580ff50825a -r 97d72e5f12c7 b
1933 diff -r 8580ff50825a -r 97d72e5f12c7 b
1934 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1934 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1935 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1935 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1936 @@ -0,0 +1,1 @@
1936 @@ -0,0 +1,1 @@
1937 +b
1937 +b
1938
1938
1939
1939
1940 test multi-address parsing:
1940 test multi-address parsing:
1941 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam><eggs>' \
1941 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam><eggs>' \
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 Sending [PATCH] test ...
1947 Sending [PATCH] test ...
1948 $ cat < tmp.mbox
1948 $ cat < tmp.mbox
1949 From quux ... ... .. ..:..:.. .... (re)
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
1955 Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
1955 Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
1956 User-Agent: Mercurial-patchbomb/* (glob)
1956 User-Agent: Mercurial-patchbomb/* (glob)
1957 Date: Tue, 01 Jan 1980 00:01:00 +0000
1957 Date: Tue, 01 Jan 1980 00:01:00 +0000
1958 From: quux
1958 From: quux
1959 To: spam <spam>, eggs, toast
1959 To: spam <spam>, eggs, toast
1960 Cc: foo, bar@example.com, "A, B <>" <a@example.com>
1960 Cc: foo, bar@example.com, "A, B <>" <a@example.com>
1961 Bcc: "Quux, A." <quux>
1961 Bcc: "Quux, A." <quux>
1962
1962
1963 # HG changeset patch
1963 # HG changeset patch
1964 # User test
1964 # User test
1965 # Date 1 0
1965 # Date 1 0
1966 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1966 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1967 # Parent 0000000000000000000000000000000000000000
1967 # Parent 0000000000000000000000000000000000000000
1968 a
1968 a
1969
1969
1970 diff -r 000000000000 -r 8580ff50825a a
1970 diff -r 000000000000 -r 8580ff50825a a
1971 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1971 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1972 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1972 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1973 @@ -0,0 +1,1 @@
1973 @@ -0,0 +1,1 @@
1974 +a
1974 +a
1975
1975
1976
1976
1977
1977
1978 test multi-byte domain parsing:
1978 test multi-byte domain parsing:
1979 $ UUML=`python -c 'import sys; sys.stdout.write("\374")'`
1979 $ UUML=`python -c 'import sys; sys.stdout.write("\374")'`
1980 $ HGENCODING=iso-8859-1
1980 $ HGENCODING=iso-8859-1
1981 $ export HGENCODING
1981 $ export HGENCODING
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 Sending [PATCH] test ...
1987 Sending [PATCH] test ...
1988
1988
1989 $ cat tmp.mbox
1989 $ cat tmp.mbox
1990 From quux ... ... .. ..:..:.. .... (re)
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
1996 Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
1996 Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
1997 User-Agent: Mercurial-patchbomb/* (glob)
1997 User-Agent: Mercurial-patchbomb/* (glob)
1998 Date: Tue, 01 Jan 1980 00:01:00 +0000
1998 Date: Tue, 01 Jan 1980 00:01:00 +0000
1999 From: quux
1999 From: quux
2000 To: bar@xn--nicode-2ya.com
2000 To: bar@xn--nicode-2ya.com
2001
2001
2002 # HG changeset patch
2002 # HG changeset patch
2003 # User test
2003 # User test
2004 # Date 1 0
2004 # Date 1 0
2005 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2005 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2006 # Parent 0000000000000000000000000000000000000000
2006 # Parent 0000000000000000000000000000000000000000
2007 a
2007 a
2008
2008
2009 diff -r 000000000000 -r 8580ff50825a a
2009 diff -r 000000000000 -r 8580ff50825a a
2010 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2010 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2011 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2011 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2012 @@ -0,0 +1,1 @@
2012 @@ -0,0 +1,1 @@
2013 +a
2013 +a
2014
2014
2015
2015
2016
2016
2017 test outgoing:
2017 test outgoing:
2018 $ hg up 1
2018 $ hg up 1
2019 0 files updated, 0 files merged, 6 files removed, 0 files unresolved
2019 0 files updated, 0 files merged, 6 files removed, 0 files unresolved
2020
2020
2021 $ hg branch test
2021 $ hg branch test
2022 marked working directory as branch test
2022 marked working directory as branch test
2023 (branches are permanent and global, did you want a bookmark?)
2023 (branches are permanent and global, did you want a bookmark?)
2024
2024
2025 $ echo d > d
2025 $ echo d > d
2026 $ hg add d
2026 $ hg add d
2027 $ hg ci -md -d '4 0'
2027 $ hg ci -md -d '4 0'
2028 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t
2028 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t
2029 comparing with ../t
2029 comparing with ../t
2030 searching for changes
2030 searching for changes
2031 From [test]: test
2031 From [test]: test
2032 This patch series consists of 8 patches.
2032 This patch series consists of 8 patches.
2033
2033
2034
2034
2035 Write the introductory message for the patch series.
2035 Write the introductory message for the patch series.
2036
2036
2037 Cc:
2037 Cc:
2038
2038
2039 Displaying [PATCH 0 of 8] test ...
2039 Displaying [PATCH 0 of 8] test ...
2040 Content-Type: text/plain; charset="us-ascii"
2040 Content-Type: text/plain; charset="us-ascii"
2041 MIME-Version: 1.0
2041 MIME-Version: 1.0
2042 Content-Transfer-Encoding: 7bit
2042 Content-Transfer-Encoding: 7bit
2043 Subject: [PATCH 0 of 8] test
2043 Subject: [PATCH 0 of 8] test
2044 Message-Id: <patchbomb.315532860@*> (glob)
2044 Message-Id: <patchbomb.315532860@*> (glob)
2045 User-Agent: Mercurial-patchbomb/* (glob)
2045 User-Agent: Mercurial-patchbomb/* (glob)
2046 Date: Tue, 01 Jan 1980 00:01:00 +0000
2046 Date: Tue, 01 Jan 1980 00:01:00 +0000
2047 From: test
2047 From: test
2048 To: foo
2048 To: foo
2049
2049
2050
2050
2051 Displaying [PATCH 1 of 8] c ...
2051 Displaying [PATCH 1 of 8] c ...
2052 Content-Type: text/plain; charset="us-ascii"
2052 Content-Type: text/plain; charset="us-ascii"
2053 MIME-Version: 1.0
2053 MIME-Version: 1.0
2054 Content-Transfer-Encoding: 7bit
2054 Content-Transfer-Encoding: 7bit
2055 Subject: [PATCH 1 of 8] c
2055 Subject: [PATCH 1 of 8] c
2056 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2056 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2057 Message-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2057 Message-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2058 In-Reply-To: <patchbomb.315532860@*> (glob)
2058 In-Reply-To: <patchbomb.315532860@*> (glob)
2059 References: <patchbomb.315532860@*> (glob)
2059 References: <patchbomb.315532860@*> (glob)
2060 User-Agent: Mercurial-patchbomb/* (glob)
2060 User-Agent: Mercurial-patchbomb/* (glob)
2061 Date: Tue, 01 Jan 1980 00:01:01 +0000
2061 Date: Tue, 01 Jan 1980 00:01:01 +0000
2062 From: test
2062 From: test
2063 To: foo
2063 To: foo
2064
2064
2065 # HG changeset patch
2065 # HG changeset patch
2066 # User test
2066 # User test
2067 # Date 3 0
2067 # Date 3 0
2068 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2068 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2069 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2069 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2070 c
2070 c
2071
2071
2072 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2072 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2073 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2073 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2074 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2074 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2075 @@ -0,0 +1,1 @@
2075 @@ -0,0 +1,1 @@
2076 +c
2076 +c
2077
2077
2078 Displaying [PATCH 2 of 8] utf-8 content ...
2078 Displaying [PATCH 2 of 8] utf-8 content ...
2079 Content-Type: text/plain; charset="us-ascii"
2079 Content-Type: text/plain; charset="us-ascii"
2080 MIME-Version: 1.0
2080 MIME-Version: 1.0
2081 Content-Transfer-Encoding: 8bit
2081 Content-Transfer-Encoding: 8bit
2082 Subject: [PATCH 2 of 8] utf-8 content
2082 Subject: [PATCH 2 of 8] utf-8 content
2083 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
2083 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
2084 Message-Id: <909a00e13e9d78b575ae.315532862@*> (glob)
2084 Message-Id: <909a00e13e9d78b575ae.315532862@*> (glob)
2085 In-Reply-To: <patchbomb.315532860@*> (glob)
2085 In-Reply-To: <patchbomb.315532860@*> (glob)
2086 References: <patchbomb.315532860@*> (glob)
2086 References: <patchbomb.315532860@*> (glob)
2087 User-Agent: Mercurial-patchbomb/* (glob)
2087 User-Agent: Mercurial-patchbomb/* (glob)
2088 Date: Tue, 01 Jan 1980 00:01:02 +0000
2088 Date: Tue, 01 Jan 1980 00:01:02 +0000
2089 From: test
2089 From: test
2090 To: foo
2090 To: foo
2091
2091
2092 # HG changeset patch
2092 # HG changeset patch
2093 # User test
2093 # User test
2094 # Date 4 0
2094 # Date 4 0
2095 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
2095 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
2096 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
2096 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
2097 utf-8 content
2097 utf-8 content
2098
2098
2099 diff -r ff2c9fa2018b -r 909a00e13e9d description
2099 diff -r ff2c9fa2018b -r 909a00e13e9d description
2100 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2100 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2101 +++ b/description Thu Jan 01 00:00:04 1970 +0000
2101 +++ b/description Thu Jan 01 00:00:04 1970 +0000
2102 @@ -0,0 +1,3 @@
2102 @@ -0,0 +1,3 @@
2103 +a multiline
2103 +a multiline
2104 +
2104 +
2105 +description
2105 +description
2106 diff -r ff2c9fa2018b -r 909a00e13e9d utf
2106 diff -r ff2c9fa2018b -r 909a00e13e9d utf
2107 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2107 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2108 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
2108 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
2109 @@ -0,0 +1,1 @@
2109 @@ -0,0 +1,1 @@
2110 +h\xc3\xb6mma! (esc)
2110 +h\xc3\xb6mma! (esc)
2111
2111
2112 Displaying [PATCH 3 of 8] long line ...
2112 Displaying [PATCH 3 of 8] long line ...
2113 Content-Type: text/plain; charset="us-ascii"
2113 Content-Type: text/plain; charset="us-ascii"
2114 MIME-Version: 1.0
2114 MIME-Version: 1.0
2115 Content-Transfer-Encoding: quoted-printable
2115 Content-Transfer-Encoding: quoted-printable
2116 Subject: [PATCH 3 of 8] long line
2116 Subject: [PATCH 3 of 8] long line
2117 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2117 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2118 Message-Id: <a2ea8fc83dd8b93cfd86.315532863@*> (glob)
2118 Message-Id: <a2ea8fc83dd8b93cfd86.315532863@*> (glob)
2119 In-Reply-To: <patchbomb.315532860@*> (glob)
2119 In-Reply-To: <patchbomb.315532860@*> (glob)
2120 References: <patchbomb.315532860@*> (glob)
2120 References: <patchbomb.315532860@*> (glob)
2121 User-Agent: Mercurial-patchbomb/* (glob)
2121 User-Agent: Mercurial-patchbomb/* (glob)
2122 Date: Tue, 01 Jan 1980 00:01:03 +0000
2122 Date: Tue, 01 Jan 1980 00:01:03 +0000
2123 From: test
2123 From: test
2124 To: foo
2124 To: foo
2125
2125
2126 # HG changeset patch
2126 # HG changeset patch
2127 # User test
2127 # User test
2128 # Date 4 0
2128 # Date 4 0
2129 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2129 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2130 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
2130 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
2131 long line
2131 long line
2132
2132
2133 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
2133 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
2134 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2134 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2135 +++ b/long Thu Jan 01 00:00:04 1970 +0000
2135 +++ b/long Thu Jan 01 00:00:04 1970 +0000
2136 @@ -0,0 +1,4 @@
2136 @@ -0,0 +1,4 @@
2137 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2137 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2138 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2138 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2139 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2139 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2140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xxxxxxxxxxxx=
2146 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2147 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2147 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2148 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2148 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2149 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2149 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2150 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2150 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2151 +foo
2151 +foo
2152 +
2152 +
2153 +bar
2153 +bar
2154
2154
2155 Displaying [PATCH 4 of 8] isolatin 8-bit encoding ...
2155 Displaying [PATCH 4 of 8] isolatin 8-bit encoding ...
2156 Content-Type: text/plain; charset="us-ascii"
2156 Content-Type: text/plain; charset="us-ascii"
2157 MIME-Version: 1.0
2157 MIME-Version: 1.0
2158 Content-Transfer-Encoding: 8bit
2158 Content-Transfer-Encoding: 8bit
2159 Subject: [PATCH 4 of 8] isolatin 8-bit encoding
2159 Subject: [PATCH 4 of 8] isolatin 8-bit encoding
2160 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2160 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2161 Message-Id: <240fb913fc1b7ff15ddb.315532864@*> (glob)
2161 Message-Id: <240fb913fc1b7ff15ddb.315532864@*> (glob)
2162 In-Reply-To: <patchbomb.315532860@*> (glob)
2162 In-Reply-To: <patchbomb.315532860@*> (glob)
2163 References: <patchbomb.315532860@*> (glob)
2163 References: <patchbomb.315532860@*> (glob)
2164 User-Agent: Mercurial-patchbomb/* (glob)
2164 User-Agent: Mercurial-patchbomb/* (glob)
2165 Date: Tue, 01 Jan 1980 00:01:04 +0000
2165 Date: Tue, 01 Jan 1980 00:01:04 +0000
2166 From: test
2166 From: test
2167 To: foo
2167 To: foo
2168
2168
2169 # HG changeset patch
2169 # HG changeset patch
2170 # User test
2170 # User test
2171 # Date 5 0
2171 # Date 5 0
2172 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2172 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2173 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2173 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2174 isolatin 8-bit encoding
2174 isolatin 8-bit encoding
2175
2175
2176 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
2176 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
2177 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2177 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2178 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
2178 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
2179 @@ -0,0 +1,1 @@
2179 @@ -0,0 +1,1 @@
2180 +h\xf6mma! (esc)
2180 +h\xf6mma! (esc)
2181
2181
2182 Displaying [PATCH 5 of 8] Added tag zero, zero.foo for changeset 8580ff50825a ...
2182 Displaying [PATCH 5 of 8] Added tag zero, zero.foo for changeset 8580ff50825a ...
2183 Content-Type: text/plain; charset="us-ascii"
2183 Content-Type: text/plain; charset="us-ascii"
2184 MIME-Version: 1.0
2184 MIME-Version: 1.0
2185 Content-Transfer-Encoding: 7bit
2185 Content-Transfer-Encoding: 7bit
2186 Subject: [PATCH 5 of 8] Added tag zero, zero.foo for changeset 8580ff50825a
2186 Subject: [PATCH 5 of 8] Added tag zero, zero.foo for changeset 8580ff50825a
2187 X-Mercurial-Node: 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2187 X-Mercurial-Node: 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2188 Message-Id: <5d5ef15dfe5e7bd3a4ee.315532865@*> (glob)
2188 Message-Id: <5d5ef15dfe5e7bd3a4ee.315532865@*> (glob)
2189 In-Reply-To: <patchbomb.315532860@*> (glob)
2189 In-Reply-To: <patchbomb.315532860@*> (glob)
2190 References: <patchbomb.315532860@*> (glob)
2190 References: <patchbomb.315532860@*> (glob)
2191 User-Agent: Mercurial-patchbomb/* (glob)
2191 User-Agent: Mercurial-patchbomb/* (glob)
2192 Date: Tue, 01 Jan 1980 00:01:05 +0000
2192 Date: Tue, 01 Jan 1980 00:01:05 +0000
2193 From: test
2193 From: test
2194 To: foo
2194 To: foo
2195
2195
2196 # HG changeset patch
2196 # HG changeset patch
2197 # User test
2197 # User test
2198 # Date 0 0
2198 # Date 0 0
2199 # Node ID 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2199 # Node ID 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2200 # Parent 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2200 # Parent 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2201 Added tag zero, zero.foo for changeset 8580ff50825a
2201 Added tag zero, zero.foo for changeset 8580ff50825a
2202
2202
2203 diff -r 240fb913fc1b -r 5d5ef15dfe5e .hgtags
2203 diff -r 240fb913fc1b -r 5d5ef15dfe5e .hgtags
2204 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2204 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2205 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2205 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2206 @@ -0,0 +1,2 @@
2206 @@ -0,0 +1,2 @@
2207 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2207 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2208 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2208 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2209
2209
2210 Displaying [PATCH 6 of 8] Added tag one, one.patch for changeset 97d72e5f12c7 ...
2210 Displaying [PATCH 6 of 8] Added tag one, one.patch for changeset 97d72e5f12c7 ...
2211 Content-Type: text/plain; charset="us-ascii"
2211 Content-Type: text/plain; charset="us-ascii"
2212 MIME-Version: 1.0
2212 MIME-Version: 1.0
2213 Content-Transfer-Encoding: 7bit
2213 Content-Transfer-Encoding: 7bit
2214 Subject: [PATCH 6 of 8] Added tag one, one.patch for changeset 97d72e5f12c7
2214 Subject: [PATCH 6 of 8] Added tag one, one.patch for changeset 97d72e5f12c7
2215 X-Mercurial-Node: 045ca29b1ea20e4940411e695e20e521f2f0f98e
2215 X-Mercurial-Node: 045ca29b1ea20e4940411e695e20e521f2f0f98e
2216 Message-Id: <045ca29b1ea20e494041.315532866@*> (glob)
2216 Message-Id: <045ca29b1ea20e494041.315532866@*> (glob)
2217 In-Reply-To: <patchbomb.315532860@*> (glob)
2217 In-Reply-To: <patchbomb.315532860@*> (glob)
2218 References: <patchbomb.315532860@*> (glob)
2218 References: <patchbomb.315532860@*> (glob)
2219 User-Agent: Mercurial-patchbomb/* (glob)
2219 User-Agent: Mercurial-patchbomb/* (glob)
2220 Date: Tue, 01 Jan 1980 00:01:06 +0000
2220 Date: Tue, 01 Jan 1980 00:01:06 +0000
2221 From: test
2221 From: test
2222 To: foo
2222 To: foo
2223
2223
2224 # HG changeset patch
2224 # HG changeset patch
2225 # User test
2225 # User test
2226 # Date 0 0
2226 # Date 0 0
2227 # Node ID 045ca29b1ea20e4940411e695e20e521f2f0f98e
2227 # Node ID 045ca29b1ea20e4940411e695e20e521f2f0f98e
2228 # Parent 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2228 # Parent 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2229 Added tag one, one.patch for changeset 97d72e5f12c7
2229 Added tag one, one.patch for changeset 97d72e5f12c7
2230
2230
2231 diff -r 5d5ef15dfe5e -r 045ca29b1ea2 .hgtags
2231 diff -r 5d5ef15dfe5e -r 045ca29b1ea2 .hgtags
2232 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
2232 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
2233 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2233 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2234 @@ -1,2 +1,4 @@
2234 @@ -1,2 +1,4 @@
2235 8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2235 8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2236 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2236 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2237 +97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
2237 +97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
2238 +97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
2238 +97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
2239
2239
2240 Displaying [PATCH 7 of 8] Added tag two, two.diff for changeset ff2c9fa2018b ...
2240 Displaying [PATCH 7 of 8] Added tag two, two.diff for changeset ff2c9fa2018b ...
2241 Content-Type: text/plain; charset="us-ascii"
2241 Content-Type: text/plain; charset="us-ascii"
2242 MIME-Version: 1.0
2242 MIME-Version: 1.0
2243 Content-Transfer-Encoding: 7bit
2243 Content-Transfer-Encoding: 7bit
2244 Subject: [PATCH 7 of 8] Added tag two, two.diff for changeset ff2c9fa2018b
2244 Subject: [PATCH 7 of 8] Added tag two, two.diff for changeset ff2c9fa2018b
2245 X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
2245 X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
2246 Message-Id: <7aead2484924c445ad8c.315532867@*> (glob)
2246 Message-Id: <7aead2484924c445ad8c.315532867@*> (glob)
2247 In-Reply-To: <patchbomb.315532860@*> (glob)
2247 In-Reply-To: <patchbomb.315532860@*> (glob)
2248 References: <patchbomb.315532860@*> (glob)
2248 References: <patchbomb.315532860@*> (glob)
2249 User-Agent: Mercurial-patchbomb/* (glob)
2249 User-Agent: Mercurial-patchbomb/* (glob)
2250 Date: Tue, 01 Jan 1980 00:01:07 +0000
2250 Date: Tue, 01 Jan 1980 00:01:07 +0000
2251 From: test
2251 From: test
2252 To: foo
2252 To: foo
2253
2253
2254 # HG changeset patch
2254 # HG changeset patch
2255 # User test
2255 # User test
2256 # Date 0 0
2256 # Date 0 0
2257 # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
2257 # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
2258 # Parent 045ca29b1ea20e4940411e695e20e521f2f0f98e
2258 # Parent 045ca29b1ea20e4940411e695e20e521f2f0f98e
2259 Added tag two, two.diff for changeset ff2c9fa2018b
2259 Added tag two, two.diff for changeset ff2c9fa2018b
2260
2260
2261 diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
2261 diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
2262 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
2262 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
2263 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2263 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2264 @@ -2,3 +2,5 @@
2264 @@ -2,3 +2,5 @@
2265 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2265 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2266 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
2266 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
2267 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
2267 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
2268 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
2268 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
2269 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
2269 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
2270
2270
2271 Displaying [PATCH 8 of 8] d ...
2271 Displaying [PATCH 8 of 8] d ...
2272 Content-Type: text/plain; charset="us-ascii"
2272 Content-Type: text/plain; charset="us-ascii"
2273 MIME-Version: 1.0
2273 MIME-Version: 1.0
2274 Content-Transfer-Encoding: 7bit
2274 Content-Transfer-Encoding: 7bit
2275 Subject: [PATCH 8 of 8] d
2275 Subject: [PATCH 8 of 8] d
2276 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2276 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2277 Message-Id: <2f9fa9b998c5fe3ac2bd.315532868@*> (glob)
2277 Message-Id: <2f9fa9b998c5fe3ac2bd.315532868@*> (glob)
2278 In-Reply-To: <patchbomb.315532860@*> (glob)
2278 In-Reply-To: <patchbomb.315532860@*> (glob)
2279 References: <patchbomb.315532860@*> (glob)
2279 References: <patchbomb.315532860@*> (glob)
2280 User-Agent: Mercurial-patchbomb/* (glob)
2280 User-Agent: Mercurial-patchbomb/* (glob)
2281 Date: Tue, 01 Jan 1980 00:01:08 +0000
2281 Date: Tue, 01 Jan 1980 00:01:08 +0000
2282 From: test
2282 From: test
2283 To: foo
2283 To: foo
2284
2284
2285 # HG changeset patch
2285 # HG changeset patch
2286 # User test
2286 # User test
2287 # Date 4 0
2287 # Date 4 0
2288 # Branch test
2288 # Branch test
2289 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2289 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2290 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2290 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2291 d
2291 d
2292
2292
2293 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2293 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2294 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2294 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2295 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2295 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2296 @@ -0,0 +1,1 @@
2296 @@ -0,0 +1,1 @@
2297 +d
2297 +d
2298
2298
2299
2299
2300 dest#branch URIs:
2300 dest#branch URIs:
2301 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
2301 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
2302 comparing with ../t
2302 comparing with ../t
2303 searching for changes
2303 searching for changes
2304 From [test]: test
2304 From [test]: test
2305 This patch series consists of 1 patches.
2305 This patch series consists of 1 patches.
2306
2306
2307 Cc:
2307 Cc:
2308
2308
2309 Displaying [PATCH] test ...
2309 Displaying [PATCH] test ...
2310 Content-Type: text/plain; charset="us-ascii"
2310 Content-Type: text/plain; charset="us-ascii"
2311 MIME-Version: 1.0
2311 MIME-Version: 1.0
2312 Content-Transfer-Encoding: 7bit
2312 Content-Transfer-Encoding: 7bit
2313 Subject: [PATCH] test
2313 Subject: [PATCH] test
2314 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2314 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2315 Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@*> (glob)
2315 Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@*> (glob)
2316 User-Agent: Mercurial-patchbomb/* (glob)
2316 User-Agent: Mercurial-patchbomb/* (glob)
2317 Date: Tue, 01 Jan 1980 00:01:00 +0000
2317 Date: Tue, 01 Jan 1980 00:01:00 +0000
2318 From: test
2318 From: test
2319 To: foo
2319 To: foo
2320
2320
2321 # HG changeset patch
2321 # HG changeset patch
2322 # User test
2322 # User test
2323 # Date 4 0
2323 # Date 4 0
2324 # Branch test
2324 # Branch test
2325 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2325 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2326 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2326 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2327 d
2327 d
2328
2328
2329 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2329 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2330 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2330 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2331 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2331 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2332 @@ -0,0 +1,1 @@
2332 @@ -0,0 +1,1 @@
2333 +d
2333 +d
2334
2334
General Comments 0
You need to be logged in to leave comments. Login now