##// END OF EJS Templates
patchbomb: add --body flag to send patches as inline message body text...
Angel Ezquerra -
r16307:17a9a1f5 default
parent child Browse files
Show More
@@ -1,549 +1,555 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') and not opts.get('body'):
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 addattachment = opts.get('attach') or opts.get('inline')
105 if not addattachment or opts.get('body'):
106 body += '\n'.join(patchlines)
107
108 if addattachment:
105 msg = email.MIMEMultipart.MIMEMultipart()
109 msg = email.MIMEMultipart.MIMEMultipart()
106 if body:
110 if body:
107 msg.attach(mail.mimeencode(ui, body, _charsets, opts.get('test')))
111 msg.attach(mail.mimeencode(ui, body, _charsets, opts.get('test')))
108 p = mail.mimetextpatch('\n'.join(patchlines), 'x-patch', opts.get('test'))
112 p = mail.mimetextpatch('\n'.join(patchlines), 'x-patch', opts.get('test'))
109 binnode = bin(node)
113 binnode = bin(node)
110 # if node is mq patch, it will have the patch file's name as a tag
114 # if node is mq patch, it will have the patch file's name as a tag
111 if not patchname:
115 if not patchname:
112 patchtags = [t for t in repo.nodetags(binnode)
116 patchtags = [t for t in repo.nodetags(binnode)
113 if t.endswith('.patch') or t.endswith('.diff')]
117 if t.endswith('.patch') or t.endswith('.diff')]
114 if patchtags:
118 if patchtags:
115 patchname = patchtags[0]
119 patchname = patchtags[0]
116 elif total > 1:
120 elif total > 1:
117 patchname = cmdutil.makefilename(repo, '%b-%n.patch',
121 patchname = cmdutil.makefilename(repo, '%b-%n.patch',
118 binnode, seqno=idx, total=total)
122 binnode, seqno=idx, total=total)
119 else:
123 else:
120 patchname = cmdutil.makefilename(repo, '%b.patch', binnode)
124 patchname = cmdutil.makefilename(repo, '%b.patch', binnode)
121 disposition = 'inline'
125 disposition = 'inline'
122 if opts.get('attach'):
126 if opts.get('attach'):
123 disposition = 'attachment'
127 disposition = 'attachment'
124 p['Content-Disposition'] = disposition + '; filename=' + patchname
128 p['Content-Disposition'] = disposition + '; filename=' + patchname
125 msg.attach(p)
129 msg.attach(p)
126 else:
130 else:
127 body += '\n'.join(patchlines)
128 msg = mail.mimetextpatch(body, display=opts.get('test'))
131 msg = mail.mimetextpatch(body, display=opts.get('test'))
129
132
130 flag = ' '.join(opts.get('flag'))
133 flag = ' '.join(opts.get('flag'))
131 if flag:
134 if flag:
132 flag = ' ' + flag
135 flag = ' ' + flag
133
136
134 subj = desc[0].strip().rstrip('. ')
137 subj = desc[0].strip().rstrip('. ')
135 if not numbered:
138 if not numbered:
136 subj = '[PATCH%s] %s' % (flag, opts.get('subject') or subj)
139 subj = '[PATCH%s] %s' % (flag, opts.get('subject') or subj)
137 else:
140 else:
138 tlen = len(str(total))
141 tlen = len(str(total))
139 subj = '[PATCH %0*d of %d%s] %s' % (tlen, idx, total, flag, subj)
142 subj = '[PATCH %0*d of %d%s] %s' % (tlen, idx, total, flag, subj)
140 msg['Subject'] = mail.headencode(ui, subj, _charsets, opts.get('test'))
143 msg['Subject'] = mail.headencode(ui, subj, _charsets, opts.get('test'))
141 msg['X-Mercurial-Node'] = node
144 msg['X-Mercurial-Node'] = node
142 return msg, subj, ds
145 return msg, subj, ds
143
146
144 emailopts = [
147 emailopts = [
148 ('', 'body', None, _('send patches as inline message text (default)')),
145 ('a', 'attach', None, _('send patches as attachments')),
149 ('a', 'attach', None, _('send patches as attachments')),
146 ('i', 'inline', None, _('send patches as inline attachments')),
150 ('i', 'inline', None, _('send patches as inline attachments')),
147 ('', 'bcc', [], _('email addresses of blind carbon copy recipients')),
151 ('', 'bcc', [], _('email addresses of blind carbon copy recipients')),
148 ('c', 'cc', [], _('email addresses of copy recipients')),
152 ('c', 'cc', [], _('email addresses of copy recipients')),
149 ('', 'confirm', None, _('ask for confirmation before sending')),
153 ('', 'confirm', None, _('ask for confirmation before sending')),
150 ('d', 'diffstat', None, _('add diffstat output to messages')),
154 ('d', 'diffstat', None, _('add diffstat output to messages')),
151 ('', 'date', '', _('use the given date as the sending date')),
155 ('', 'date', '', _('use the given date as the sending date')),
152 ('', 'desc', '', _('use the given file as the series description')),
156 ('', 'desc', '', _('use the given file as the series description')),
153 ('f', 'from', '', _('email address of sender')),
157 ('f', 'from', '', _('email address of sender')),
154 ('n', 'test', None, _('print messages that would be sent')),
158 ('n', 'test', None, _('print messages that would be sent')),
155 ('m', 'mbox', '', _('write messages to mbox file instead of sending them')),
159 ('m', 'mbox', '', _('write messages to mbox file instead of sending them')),
156 ('', 'reply-to', [], _('email addresses replies should be sent to')),
160 ('', 'reply-to', [], _('email addresses replies should be sent to')),
157 ('s', 'subject', '', _('subject of first message (intro or single patch)')),
161 ('s', 'subject', '', _('subject of first message (intro or single patch)')),
158 ('', 'in-reply-to', '', _('message identifier to reply to')),
162 ('', 'in-reply-to', '', _('message identifier to reply to')),
159 ('', 'flag', [], _('flags to add in subject prefixes')),
163 ('', 'flag', [], _('flags to add in subject prefixes')),
160 ('t', 'to', [], _('email addresses of recipients'))]
164 ('t', 'to', [], _('email addresses of recipients'))]
161
165
162 @command('email',
166 @command('email',
163 [('g', 'git', None, _('use git extended diff format')),
167 [('g', 'git', None, _('use git extended diff format')),
164 ('', 'plain', None, _('omit hg patch header')),
168 ('', 'plain', None, _('omit hg patch header')),
165 ('o', 'outgoing', None,
169 ('o', 'outgoing', None,
166 _('send changes not found in the target repository')),
170 _('send changes not found in the target repository')),
167 ('b', 'bundle', None, _('send changes not in target as a binary bundle')),
171 ('b', 'bundle', None, _('send changes not in target as a binary bundle')),
168 ('', 'bundlename', 'bundle',
172 ('', 'bundlename', 'bundle',
169 _('name of the bundle attachment file'), _('NAME')),
173 _('name of the bundle attachment file'), _('NAME')),
170 ('r', 'rev', [], _('a revision to send'), _('REV')),
174 ('r', 'rev', [], _('a revision to send'), _('REV')),
171 ('', 'force', None, _('run even when remote repository is unrelated '
175 ('', 'force', None, _('run even when remote repository is unrelated '
172 '(with -b/--bundle)')),
176 '(with -b/--bundle)')),
173 ('', 'base', [], _('a base changeset to specify instead of a destination '
177 ('', 'base', [], _('a base changeset to specify instead of a destination '
174 '(with -b/--bundle)'), _('REV')),
178 '(with -b/--bundle)'), _('REV')),
175 ('', 'intro', None, _('send an introduction email for a single patch')),
179 ('', 'intro', None, _('send an introduction email for a single patch')),
176 ] + emailopts + commands.remoteopts,
180 ] + emailopts + commands.remoteopts,
177 _('hg email [OPTION]... [DEST]...'))
181 _('hg email [OPTION]... [DEST]...'))
178 def patchbomb(ui, repo, *revs, **opts):
182 def patchbomb(ui, repo, *revs, **opts):
179 '''send changesets by email
183 '''send changesets by email
180
184
181 By default, diffs are sent in the format generated by
185 By default, diffs are sent in the format generated by
182 :hg:`export`, one per message. The series starts with a "[PATCH 0
186 :hg:`export`, one per message. The series starts with a "[PATCH 0
183 of N]" introduction, which describes the series as a whole.
187 of N]" introduction, which describes the series as a whole.
184
188
185 Each patch email has a Subject line of "[PATCH M of N] ...", using
189 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.
190 the first line of the changeset description as the subject text.
187 The message contains two or three parts. First, the changeset
191 The message contains two or three parts. First, the changeset
188 description.
192 description.
189
193
190 With the -d/--diffstat option, if the diffstat program is
194 With the -d/--diffstat option, if the diffstat program is
191 installed, the result of running diffstat on the patch is inserted.
195 installed, the result of running diffstat on the patch is inserted.
192
196
193 Finally, the patch itself, as generated by :hg:`export`.
197 Finally, the patch itself, as generated by :hg:`export`.
194
198
195 With the -d/--diffstat or -c/--confirm options, you will be presented
199 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
200 with a final summary of all messages and asked for confirmation before
197 the messages are sent.
201 the messages are sent.
198
202
199 By default the patch is included as text in the email body for
203 By default the patch is included as text in the email body for
200 easy reviewing. Using the -a/--attach option will instead create
204 easy reviewing. Using the -a/--attach option will instead create
201 an attachment for the patch. With -i/--inline an inline attachment
205 an attachment for the patch. With -i/--inline an inline attachment
202 will be created.
206 will be created. You can include a patch both as text in the email
207 body and as a regular or an inline attachment by combining the
208 -a/--attach or -i/--inline with the --body option.
203
209
204 With -o/--outgoing, emails will be generated for patches not found
210 With -o/--outgoing, emails will be generated for patches not found
205 in the destination repository (or only those which are ancestors
211 in the destination repository (or only those which are ancestors
206 of the specified revisions if any are provided)
212 of the specified revisions if any are provided)
207
213
208 With -b/--bundle, changesets are selected as for --outgoing, but a
214 With -b/--bundle, changesets are selected as for --outgoing, but a
209 single email containing a binary Mercurial bundle as an attachment
215 single email containing a binary Mercurial bundle as an attachment
210 will be sent.
216 will be sent.
211
217
212 With -m/--mbox, instead of previewing each patchbomb message in a
218 With -m/--mbox, instead of previewing each patchbomb message in a
213 pager or sending the messages directly, it will create a UNIX
219 pager or sending the messages directly, it will create a UNIX
214 mailbox file with the patch emails. This mailbox file can be
220 mailbox file with the patch emails. This mailbox file can be
215 previewed with any mail user agent which supports UNIX mbox
221 previewed with any mail user agent which supports UNIX mbox
216 files.
222 files.
217
223
218 With -n/--test, all steps will run, but mail will not be sent.
224 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
225 You will be prompted for an email recipient address, a subject and
220 an introductory message describing the patches of your patchbomb.
226 an introductory message describing the patches of your patchbomb.
221 Then when all is done, patchbomb messages are displayed. If the
227 Then when all is done, patchbomb messages are displayed. If the
222 PAGER environment variable is set, your pager will be fired up once
228 PAGER environment variable is set, your pager will be fired up once
223 for each patchbomb message, so you can verify everything is alright.
229 for each patchbomb message, so you can verify everything is alright.
224
230
225 In case email sending fails, you will find a backup of your series
231 In case email sending fails, you will find a backup of your series
226 introductory message in ``.hg/last-email.txt``.
232 introductory message in ``.hg/last-email.txt``.
227
233
228 Examples::
234 Examples::
229
235
230 hg email -r 3000 # send patch 3000 only
236 hg email -r 3000 # send patch 3000 only
231 hg email -r 3000 -r 3001 # send patches 3000 and 3001
237 hg email -r 3000 -r 3001 # send patches 3000 and 3001
232 hg email -r 3000:3005 # send patches 3000 through 3005
238 hg email -r 3000:3005 # send patches 3000 through 3005
233 hg email 3000 # send patch 3000 (deprecated)
239 hg email 3000 # send patch 3000 (deprecated)
234
240
235 hg email -o # send all patches not in default
241 hg email -o # send all patches not in default
236 hg email -o DEST # send all patches not in DEST
242 hg email -o DEST # send all patches not in DEST
237 hg email -o -r 3000 # send all ancestors of 3000 not in default
243 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
244 hg email -o -r 3000 DEST # send all ancestors of 3000 not in DEST
239
245
240 hg email -b # send bundle of all patches not in default
246 hg email -b # send bundle of all patches not in default
241 hg email -b DEST # send bundle of all patches not in DEST
247 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
248 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
249 hg email -b -r 3000 DEST # bundle of all ancestors of 3000 not in DEST
244
250
245 hg email -o -m mbox && # generate an mbox file...
251 hg email -o -m mbox && # generate an mbox file...
246 mutt -R -f mbox # ... and view it with mutt
252 mutt -R -f mbox # ... and view it with mutt
247 hg email -o -m mbox && # generate an mbox file ...
253 hg email -o -m mbox && # generate an mbox file ...
248 formail -s sendmail \\ # ... and use formail to send from the mbox
254 formail -s sendmail \\ # ... and use formail to send from the mbox
249 -bm -t < mbox # ... using sendmail
255 -bm -t < mbox # ... using sendmail
250
256
251 Before using this command, you will need to enable email in your
257 Before using this command, you will need to enable email in your
252 hgrc. See the [email] section in hgrc(5) for details.
258 hgrc. See the [email] section in hgrc(5) for details.
253 '''
259 '''
254
260
255 _charsets = mail._charsets(ui)
261 _charsets = mail._charsets(ui)
256
262
257 bundle = opts.get('bundle')
263 bundle = opts.get('bundle')
258 date = opts.get('date')
264 date = opts.get('date')
259 mbox = opts.get('mbox')
265 mbox = opts.get('mbox')
260 outgoing = opts.get('outgoing')
266 outgoing = opts.get('outgoing')
261 rev = opts.get('rev')
267 rev = opts.get('rev')
262 # internal option used by pbranches
268 # internal option used by pbranches
263 patches = opts.get('patches')
269 patches = opts.get('patches')
264
270
265 def getoutgoing(dest, revs):
271 def getoutgoing(dest, revs):
266 '''Return the revisions present locally but not in dest'''
272 '''Return the revisions present locally but not in dest'''
267 dest = ui.expandpath(dest or 'default-push', dest or 'default')
273 dest = ui.expandpath(dest or 'default-push', dest or 'default')
268 dest, branches = hg.parseurl(dest)
274 dest, branches = hg.parseurl(dest)
269 revs, checkout = hg.addbranchrevs(repo, repo, branches, revs)
275 revs, checkout = hg.addbranchrevs(repo, repo, branches, revs)
270 other = hg.peer(repo, opts, dest)
276 other = hg.peer(repo, opts, dest)
271 ui.status(_('comparing with %s\n') % util.hidepassword(dest))
277 ui.status(_('comparing with %s\n') % util.hidepassword(dest))
272 common, _anyinc, _heads = discovery.findcommonincoming(repo, other)
278 common, _anyinc, _heads = discovery.findcommonincoming(repo, other)
273 nodes = revs and map(repo.lookup, revs) or revs
279 nodes = revs and map(repo.lookup, revs) or revs
274 o = repo.changelog.findmissing(common, heads=nodes)
280 o = repo.changelog.findmissing(common, heads=nodes)
275 if not o:
281 if not o:
276 ui.status(_("no changes found\n"))
282 ui.status(_("no changes found\n"))
277 return []
283 return []
278 return [str(repo.changelog.rev(r)) for r in o]
284 return [str(repo.changelog.rev(r)) for r in o]
279
285
280 def getpatches(revs):
286 def getpatches(revs):
281 for r in scmutil.revrange(repo, revs):
287 for r in scmutil.revrange(repo, revs):
282 output = cStringIO.StringIO()
288 output = cStringIO.StringIO()
283 cmdutil.export(repo, [r], fp=output,
289 cmdutil.export(repo, [r], fp=output,
284 opts=patch.diffopts(ui, opts))
290 opts=patch.diffopts(ui, opts))
285 yield output.getvalue().split('\n')
291 yield output.getvalue().split('\n')
286
292
287 def getbundle(dest):
293 def getbundle(dest):
288 tmpdir = tempfile.mkdtemp(prefix='hg-email-bundle-')
294 tmpdir = tempfile.mkdtemp(prefix='hg-email-bundle-')
289 tmpfn = os.path.join(tmpdir, 'bundle')
295 tmpfn = os.path.join(tmpdir, 'bundle')
290 try:
296 try:
291 commands.bundle(ui, repo, tmpfn, dest, **opts)
297 commands.bundle(ui, repo, tmpfn, dest, **opts)
292 fp = open(tmpfn, 'rb')
298 fp = open(tmpfn, 'rb')
293 data = fp.read()
299 data = fp.read()
294 fp.close()
300 fp.close()
295 return data
301 return data
296 finally:
302 finally:
297 try:
303 try:
298 os.unlink(tmpfn)
304 os.unlink(tmpfn)
299 except:
305 except:
300 pass
306 pass
301 os.rmdir(tmpdir)
307 os.rmdir(tmpdir)
302
308
303 if not (opts.get('test') or mbox):
309 if not (opts.get('test') or mbox):
304 # really sending
310 # really sending
305 mail.validateconfig(ui)
311 mail.validateconfig(ui)
306
312
307 if not (revs or rev or outgoing or bundle or patches):
313 if not (revs or rev or outgoing or bundle or patches):
308 raise util.Abort(_('specify at least one changeset with -r or -o'))
314 raise util.Abort(_('specify at least one changeset with -r or -o'))
309
315
310 if outgoing and bundle:
316 if outgoing and bundle:
311 raise util.Abort(_("--outgoing mode always on with --bundle;"
317 raise util.Abort(_("--outgoing mode always on with --bundle;"
312 " do not re-specify --outgoing"))
318 " do not re-specify --outgoing"))
313
319
314 if outgoing or bundle:
320 if outgoing or bundle:
315 if len(revs) > 1:
321 if len(revs) > 1:
316 raise util.Abort(_("too many destinations"))
322 raise util.Abort(_("too many destinations"))
317 dest = revs and revs[0] or None
323 dest = revs and revs[0] or None
318 revs = []
324 revs = []
319
325
320 if rev:
326 if rev:
321 if revs:
327 if revs:
322 raise util.Abort(_('use only one form to specify the revision'))
328 raise util.Abort(_('use only one form to specify the revision'))
323 revs = rev
329 revs = rev
324
330
325 if outgoing:
331 if outgoing:
326 revs = getoutgoing(dest, rev)
332 revs = getoutgoing(dest, rev)
327 if bundle:
333 if bundle:
328 opts['revs'] = revs
334 opts['revs'] = revs
329
335
330 # start
336 # start
331 if date:
337 if date:
332 start_time = util.parsedate(date)
338 start_time = util.parsedate(date)
333 else:
339 else:
334 start_time = util.makedate()
340 start_time = util.makedate()
335
341
336 def genmsgid(id):
342 def genmsgid(id):
337 return '<%s.%s@%s>' % (id[:20], int(start_time[0]), socket.getfqdn())
343 return '<%s.%s@%s>' % (id[:20], int(start_time[0]), socket.getfqdn())
338
344
339 def getdescription(body, sender):
345 def getdescription(body, sender):
340 if opts.get('desc'):
346 if opts.get('desc'):
341 body = open(opts.get('desc')).read()
347 body = open(opts.get('desc')).read()
342 else:
348 else:
343 ui.write(_('\nWrite the introductory message for the '
349 ui.write(_('\nWrite the introductory message for the '
344 'patch series.\n\n'))
350 'patch series.\n\n'))
345 body = ui.edit(body, sender)
351 body = ui.edit(body, sender)
346 # Save series description in case sendmail fails
352 # Save series description in case sendmail fails
347 msgfile = repo.opener('last-email.txt', 'wb')
353 msgfile = repo.opener('last-email.txt', 'wb')
348 msgfile.write(body)
354 msgfile.write(body)
349 msgfile.close()
355 msgfile.close()
350 return body
356 return body
351
357
352 def getpatchmsgs(patches, patchnames=None):
358 def getpatchmsgs(patches, patchnames=None):
353 msgs = []
359 msgs = []
354
360
355 ui.write(_('This patch series consists of %d patches.\n\n')
361 ui.write(_('This patch series consists of %d patches.\n\n')
356 % len(patches))
362 % len(patches))
357
363
358 # build the intro message, or skip it if the user declines
364 # build the intro message, or skip it if the user declines
359 if introwanted(opts, len(patches)):
365 if introwanted(opts, len(patches)):
360 msg = makeintro(patches)
366 msg = makeintro(patches)
361 if msg:
367 if msg:
362 msgs.append(msg)
368 msgs.append(msg)
363
369
364 # are we going to send more than one message?
370 # are we going to send more than one message?
365 numbered = len(msgs) + len(patches) > 1
371 numbered = len(msgs) + len(patches) > 1
366
372
367 # now generate the actual patch messages
373 # now generate the actual patch messages
368 name = None
374 name = None
369 for i, p in enumerate(patches):
375 for i, p in enumerate(patches):
370 if patchnames:
376 if patchnames:
371 name = patchnames[i]
377 name = patchnames[i]
372 msg = makepatch(ui, repo, p, opts, _charsets, i + 1,
378 msg = makepatch(ui, repo, p, opts, _charsets, i + 1,
373 len(patches), numbered, name)
379 len(patches), numbered, name)
374 msgs.append(msg)
380 msgs.append(msg)
375
381
376 return msgs
382 return msgs
377
383
378 def makeintro(patches):
384 def makeintro(patches):
379 tlen = len(str(len(patches)))
385 tlen = len(str(len(patches)))
380
386
381 flag = opts.get('flag') or ''
387 flag = opts.get('flag') or ''
382 if flag:
388 if flag:
383 flag = ' ' + ' '.join(flag)
389 flag = ' ' + ' '.join(flag)
384 prefix = '[PATCH %0*d of %d%s]' % (tlen, 0, len(patches), flag)
390 prefix = '[PATCH %0*d of %d%s]' % (tlen, 0, len(patches), flag)
385
391
386 subj = (opts.get('subject') or
392 subj = (opts.get('subject') or
387 prompt(ui, '(optional) Subject: ', rest=prefix, default=''))
393 prompt(ui, '(optional) Subject: ', rest=prefix, default=''))
388 if not subj:
394 if not subj:
389 return None # skip intro if the user doesn't bother
395 return None # skip intro if the user doesn't bother
390
396
391 subj = prefix + ' ' + subj
397 subj = prefix + ' ' + subj
392
398
393 body = ''
399 body = ''
394 if opts.get('diffstat'):
400 if opts.get('diffstat'):
395 # generate a cumulative diffstat of the whole patch series
401 # generate a cumulative diffstat of the whole patch series
396 diffstat = patch.diffstat(sum(patches, []))
402 diffstat = patch.diffstat(sum(patches, []))
397 body = '\n' + diffstat
403 body = '\n' + diffstat
398 else:
404 else:
399 diffstat = None
405 diffstat = None
400
406
401 body = getdescription(body, sender)
407 body = getdescription(body, sender)
402 msg = mail.mimeencode(ui, body, _charsets, opts.get('test'))
408 msg = mail.mimeencode(ui, body, _charsets, opts.get('test'))
403 msg['Subject'] = mail.headencode(ui, subj, _charsets,
409 msg['Subject'] = mail.headencode(ui, subj, _charsets,
404 opts.get('test'))
410 opts.get('test'))
405 return (msg, subj, diffstat)
411 return (msg, subj, diffstat)
406
412
407 def getbundlemsgs(bundle):
413 def getbundlemsgs(bundle):
408 subj = (opts.get('subject')
414 subj = (opts.get('subject')
409 or prompt(ui, 'Subject:', 'A bundle for your repository'))
415 or prompt(ui, 'Subject:', 'A bundle for your repository'))
410
416
411 body = getdescription('', sender)
417 body = getdescription('', sender)
412 msg = email.MIMEMultipart.MIMEMultipart()
418 msg = email.MIMEMultipart.MIMEMultipart()
413 if body:
419 if body:
414 msg.attach(mail.mimeencode(ui, body, _charsets, opts.get('test')))
420 msg.attach(mail.mimeencode(ui, body, _charsets, opts.get('test')))
415 datapart = email.MIMEBase.MIMEBase('application', 'x-mercurial-bundle')
421 datapart = email.MIMEBase.MIMEBase('application', 'x-mercurial-bundle')
416 datapart.set_payload(bundle)
422 datapart.set_payload(bundle)
417 bundlename = '%s.hg' % opts.get('bundlename', 'bundle')
423 bundlename = '%s.hg' % opts.get('bundlename', 'bundle')
418 datapart.add_header('Content-Disposition', 'attachment',
424 datapart.add_header('Content-Disposition', 'attachment',
419 filename=bundlename)
425 filename=bundlename)
420 email.Encoders.encode_base64(datapart)
426 email.Encoders.encode_base64(datapart)
421 msg.attach(datapart)
427 msg.attach(datapart)
422 msg['Subject'] = mail.headencode(ui, subj, _charsets, opts.get('test'))
428 msg['Subject'] = mail.headencode(ui, subj, _charsets, opts.get('test'))
423 return [(msg, subj, None)]
429 return [(msg, subj, None)]
424
430
425 sender = (opts.get('from') or ui.config('email', 'from') or
431 sender = (opts.get('from') or ui.config('email', 'from') or
426 ui.config('patchbomb', 'from') or
432 ui.config('patchbomb', 'from') or
427 prompt(ui, 'From', ui.username()))
433 prompt(ui, 'From', ui.username()))
428
434
429 if patches:
435 if patches:
430 msgs = getpatchmsgs(patches, opts.get('patchnames'))
436 msgs = getpatchmsgs(patches, opts.get('patchnames'))
431 elif bundle:
437 elif bundle:
432 msgs = getbundlemsgs(getbundle(dest))
438 msgs = getbundlemsgs(getbundle(dest))
433 else:
439 else:
434 msgs = getpatchmsgs(list(getpatches(revs)))
440 msgs = getpatchmsgs(list(getpatches(revs)))
435
441
436 showaddrs = []
442 showaddrs = []
437
443
438 def getaddrs(header, ask=False, default=None):
444 def getaddrs(header, ask=False, default=None):
439 configkey = header.lower()
445 configkey = header.lower()
440 opt = header.replace('-', '_').lower()
446 opt = header.replace('-', '_').lower()
441 addrs = opts.get(opt)
447 addrs = opts.get(opt)
442 if addrs:
448 if addrs:
443 showaddrs.append('%s: %s' % (header, ', '.join(addrs)))
449 showaddrs.append('%s: %s' % (header, ', '.join(addrs)))
444 return mail.addrlistencode(ui, addrs, _charsets, opts.get('test'))
450 return mail.addrlistencode(ui, addrs, _charsets, opts.get('test'))
445
451
446 # not on the command line: fallback to config and then maybe ask
452 # not on the command line: fallback to config and then maybe ask
447 addr = (ui.config('email', configkey) or
453 addr = (ui.config('email', configkey) or
448 ui.config('patchbomb', configkey) or
454 ui.config('patchbomb', configkey) or
449 '')
455 '')
450 if not addr and ask:
456 if not addr and ask:
451 addr = prompt(ui, header, default=default)
457 addr = prompt(ui, header, default=default)
452 if addr:
458 if addr:
453 showaddrs.append('%s: %s' % (header, addr))
459 showaddrs.append('%s: %s' % (header, addr))
454 return mail.addrlistencode(ui, [addr], _charsets, opts.get('test'))
460 return mail.addrlistencode(ui, [addr], _charsets, opts.get('test'))
455 else:
461 else:
456 return default
462 return default
457
463
458 to = getaddrs('To', ask=True)
464 to = getaddrs('To', ask=True)
459 if not to:
465 if not to:
460 # we can get here in non-interactive mode
466 # we can get here in non-interactive mode
461 raise util.Abort(_('no recipient addresses provided'))
467 raise util.Abort(_('no recipient addresses provided'))
462 cc = getaddrs('Cc', ask=True, default='') or []
468 cc = getaddrs('Cc', ask=True, default='') or []
463 bcc = getaddrs('Bcc') or []
469 bcc = getaddrs('Bcc') or []
464 replyto = getaddrs('Reply-To')
470 replyto = getaddrs('Reply-To')
465
471
466 if opts.get('diffstat') or opts.get('confirm'):
472 if opts.get('diffstat') or opts.get('confirm'):
467 ui.write(_('\nFinal summary:\n\n'))
473 ui.write(_('\nFinal summary:\n\n'))
468 ui.write('From: %s\n' % sender)
474 ui.write('From: %s\n' % sender)
469 for addr in showaddrs:
475 for addr in showaddrs:
470 ui.write('%s\n' % addr)
476 ui.write('%s\n' % addr)
471 for m, subj, ds in msgs:
477 for m, subj, ds in msgs:
472 ui.write('Subject: %s\n' % subj)
478 ui.write('Subject: %s\n' % subj)
473 if ds:
479 if ds:
474 ui.write(ds)
480 ui.write(ds)
475 ui.write('\n')
481 ui.write('\n')
476 if ui.promptchoice(_('are you sure you want to send (yn)?'),
482 if ui.promptchoice(_('are you sure you want to send (yn)?'),
477 (_('&Yes'), _('&No'))):
483 (_('&Yes'), _('&No'))):
478 raise util.Abort(_('patchbomb canceled'))
484 raise util.Abort(_('patchbomb canceled'))
479
485
480 ui.write('\n')
486 ui.write('\n')
481
487
482 parent = opts.get('in_reply_to') or None
488 parent = opts.get('in_reply_to') or None
483 # angle brackets may be omitted, they're not semantically part of the msg-id
489 # angle brackets may be omitted, they're not semantically part of the msg-id
484 if parent is not None:
490 if parent is not None:
485 if not parent.startswith('<'):
491 if not parent.startswith('<'):
486 parent = '<' + parent
492 parent = '<' + parent
487 if not parent.endswith('>'):
493 if not parent.endswith('>'):
488 parent += '>'
494 parent += '>'
489
495
490 first = True
496 first = True
491
497
492 sender_addr = email.Utils.parseaddr(sender)[1]
498 sender_addr = email.Utils.parseaddr(sender)[1]
493 sender = mail.addressencode(ui, sender, _charsets, opts.get('test'))
499 sender = mail.addressencode(ui, sender, _charsets, opts.get('test'))
494 sendmail = None
500 sendmail = None
495 for i, (m, subj, ds) in enumerate(msgs):
501 for i, (m, subj, ds) in enumerate(msgs):
496 try:
502 try:
497 m['Message-Id'] = genmsgid(m['X-Mercurial-Node'])
503 m['Message-Id'] = genmsgid(m['X-Mercurial-Node'])
498 except TypeError:
504 except TypeError:
499 m['Message-Id'] = genmsgid('patchbomb')
505 m['Message-Id'] = genmsgid('patchbomb')
500 if parent:
506 if parent:
501 m['In-Reply-To'] = parent
507 m['In-Reply-To'] = parent
502 m['References'] = parent
508 m['References'] = parent
503 if first:
509 if first:
504 parent = m['Message-Id']
510 parent = m['Message-Id']
505 first = False
511 first = False
506
512
507 m['User-Agent'] = 'Mercurial-patchbomb/%s' % util.version()
513 m['User-Agent'] = 'Mercurial-patchbomb/%s' % util.version()
508 m['Date'] = email.Utils.formatdate(start_time[0], localtime=True)
514 m['Date'] = email.Utils.formatdate(start_time[0], localtime=True)
509
515
510 start_time = (start_time[0] + 1, start_time[1])
516 start_time = (start_time[0] + 1, start_time[1])
511 m['From'] = sender
517 m['From'] = sender
512 m['To'] = ', '.join(to)
518 m['To'] = ', '.join(to)
513 if cc:
519 if cc:
514 m['Cc'] = ', '.join(cc)
520 m['Cc'] = ', '.join(cc)
515 if bcc:
521 if bcc:
516 m['Bcc'] = ', '.join(bcc)
522 m['Bcc'] = ', '.join(bcc)
517 if replyto:
523 if replyto:
518 m['Reply-To'] = ', '.join(replyto)
524 m['Reply-To'] = ', '.join(replyto)
519 if opts.get('test'):
525 if opts.get('test'):
520 ui.status(_('Displaying '), subj, ' ...\n')
526 ui.status(_('Displaying '), subj, ' ...\n')
521 ui.flush()
527 ui.flush()
522 if 'PAGER' in os.environ and not ui.plain():
528 if 'PAGER' in os.environ and not ui.plain():
523 fp = util.popen(os.environ['PAGER'], 'w')
529 fp = util.popen(os.environ['PAGER'], 'w')
524 else:
530 else:
525 fp = ui
531 fp = ui
526 generator = email.Generator.Generator(fp, mangle_from_=False)
532 generator = email.Generator.Generator(fp, mangle_from_=False)
527 try:
533 try:
528 generator.flatten(m, 0)
534 generator.flatten(m, 0)
529 fp.write('\n')
535 fp.write('\n')
530 except IOError, inst:
536 except IOError, inst:
531 if inst.errno != errno.EPIPE:
537 if inst.errno != errno.EPIPE:
532 raise
538 raise
533 if fp is not ui:
539 if fp is not ui:
534 fp.close()
540 fp.close()
535 else:
541 else:
536 if not sendmail:
542 if not sendmail:
537 sendmail = mail.connect(ui, mbox=mbox)
543 sendmail = mail.connect(ui, mbox=mbox)
538 ui.status(_('Sending '), subj, ' ...\n')
544 ui.status(_('Sending '), subj, ' ...\n')
539 ui.progress(_('sending'), i, item=subj, total=len(msgs))
545 ui.progress(_('sending'), i, item=subj, total=len(msgs))
540 if not mbox:
546 if not mbox:
541 # Exim does not remove the Bcc field
547 # Exim does not remove the Bcc field
542 del m['Bcc']
548 del m['Bcc']
543 fp = cStringIO.StringIO()
549 fp = cStringIO.StringIO()
544 generator = email.Generator.Generator(fp, mangle_from_=False)
550 generator = email.Generator.Generator(fp, mangle_from_=False)
545 generator.flatten(m, 0)
551 generator.flatten(m, 0)
546 sendmail(sender_addr, to + bcc + cc, fp.getvalue())
552 sendmail(sender_addr, to + bcc + cc, fp.getvalue())
547
553
548 ui.progress(_('writing'), None)
554 ui.progress(_('writing'), None)
549 ui.progress(_('sending'), None)
555 ui.progress(_('sending'), None)
@@ -1,2334 +1,2390 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 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
372 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
372 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
373 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
373 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
374 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
374 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
375 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
375 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
376 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
376 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
377 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
377 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
378 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
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
419 @@ -0,0 +1,4 @@
419 @@ -0,0 +1,4 @@
420 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
420 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
421 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
421 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
422 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
422 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
423 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
423 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
424 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
424 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
425 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
425 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
426 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
426 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
427 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
427 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
428 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
428 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
429 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
429 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
430 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
430 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
431 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
431 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
432 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
432 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
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 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
713 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
713 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
714 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
714 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
715 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
715 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
716 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
716 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
717 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
717 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
718 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
718 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
719 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
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 Jan 01 00:00:04 1970 +0000
851 @@ -0,0 +1,4 @@
851 @@ -0,0 +1,4 @@
852 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
852 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
853 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
853 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
854 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
854 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
855 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
855 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
856 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
856 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
857 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
857 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
858 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
858 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
859 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
859 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
860 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
860 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
861 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
861 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
862 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
862 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
863 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
863 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
864 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
864 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
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 +1,4 @@
961 @@ -0,0 +1,4 @@
962 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
962 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
963 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
963 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
964 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
964 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
965 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
965 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
966 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
966 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
967 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
967 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
968 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
968 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
969 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
969 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
970 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
970 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
971 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
971 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
972 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
972 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
973 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
973 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
974 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
974 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
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 and body for single patch:
983 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a --body -r 2
984 This patch series consists of 1 patches.
985
986
987 Displaying [PATCH] test ...
988 Content-Type: multipart/mixed; boundary="===*" (glob)
989 MIME-Version: 1.0
990 Subject: [PATCH] test
991 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
992 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
993 User-Agent: Mercurial-patchbomb/* (glob)
994 Date: Thu, 01 Jan 1970 00:01:00 +0000
995 From: quux
996 To: foo
997 Cc: bar
998
999 --===* (glob)
1000 Content-Type: text/plain; charset="us-ascii"
1001 MIME-Version: 1.0
1002 Content-Transfer-Encoding: 7bit
1003
1004 # HG changeset patch
1005 # User test
1006 # Date 3 0
1007 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1008 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1009 c
1010
1011 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1012 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1013 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1014 @@ -0,0 +1,1 @@
1015 +c
1016
1017 --===* (glob)
1018 Content-Type: text/x-patch; charset="us-ascii"
1019 MIME-Version: 1.0
1020 Content-Transfer-Encoding: 7bit
1021 Content-Disposition: attachment; filename=t2.patch
1022
1023 # HG changeset patch
1024 # User test
1025 # Date 3 0
1026 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1027 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1028 c
1029
1030 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1031 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1032 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1033 @@ -0,0 +1,1 @@
1034 +c
1035
1036 --===*-- (glob)
1037
982 test attach for multiple patches:
1038 test attach for multiple patches:
983 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
1039 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -a \
984 > -r 0:1 -r 4
1040 > -r 0:1 -r 4
985 This patch series consists of 3 patches.
1041 This patch series consists of 3 patches.
986
1042
987
1043
988 Write the introductory message for the patch series.
1044 Write the introductory message for the patch series.
989
1045
990
1046
991 Displaying [PATCH 0 of 3] test ...
1047 Displaying [PATCH 0 of 3] test ...
992 Content-Type: text/plain; charset="us-ascii"
1048 Content-Type: text/plain; charset="us-ascii"
993 MIME-Version: 1.0
1049 MIME-Version: 1.0
994 Content-Transfer-Encoding: 7bit
1050 Content-Transfer-Encoding: 7bit
995 Subject: [PATCH 0 of 3] test
1051 Subject: [PATCH 0 of 3] test
996 Message-Id: <patchbomb.60@*> (glob)
1052 Message-Id: <patchbomb.60@*> (glob)
997 User-Agent: Mercurial-patchbomb/* (glob)
1053 User-Agent: Mercurial-patchbomb/* (glob)
998 Date: Thu, 01 Jan 1970 00:01:00 +0000
1054 Date: Thu, 01 Jan 1970 00:01:00 +0000
999 From: quux
1055 From: quux
1000 To: foo
1056 To: foo
1001 Cc: bar
1057 Cc: bar
1002
1058
1003
1059
1004 Displaying [PATCH 1 of 3] a ...
1060 Displaying [PATCH 1 of 3] a ...
1005 Content-Type: multipart/mixed; boundary="===*" (glob)
1061 Content-Type: multipart/mixed; boundary="===*" (glob)
1006 MIME-Version: 1.0
1062 MIME-Version: 1.0
1007 Subject: [PATCH 1 of 3] a
1063 Subject: [PATCH 1 of 3] a
1008 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1064 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1009 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1065 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1010 In-Reply-To: <patchbomb.60@*> (glob)
1066 In-Reply-To: <patchbomb.60@*> (glob)
1011 References: <patchbomb.60@*> (glob)
1067 References: <patchbomb.60@*> (glob)
1012 User-Agent: Mercurial-patchbomb/* (glob)
1068 User-Agent: Mercurial-patchbomb/* (glob)
1013 Date: Thu, 01 Jan 1970 00:01:01 +0000
1069 Date: Thu, 01 Jan 1970 00:01:01 +0000
1014 From: quux
1070 From: quux
1015 To: foo
1071 To: foo
1016 Cc: bar
1072 Cc: bar
1017
1073
1018 --===* (glob)
1074 --===* (glob)
1019 Content-Type: text/plain; charset="us-ascii"
1075 Content-Type: text/plain; charset="us-ascii"
1020 MIME-Version: 1.0
1076 MIME-Version: 1.0
1021 Content-Transfer-Encoding: 7bit
1077 Content-Transfer-Encoding: 7bit
1022
1078
1023 Patch subject is complete summary.
1079 Patch subject is complete summary.
1024
1080
1025
1081
1026
1082
1027 --===* (glob)
1083 --===* (glob)
1028 Content-Type: text/x-patch; charset="us-ascii"
1084 Content-Type: text/x-patch; charset="us-ascii"
1029 MIME-Version: 1.0
1085 MIME-Version: 1.0
1030 Content-Transfer-Encoding: 7bit
1086 Content-Transfer-Encoding: 7bit
1031 Content-Disposition: attachment; filename=t2-1.patch
1087 Content-Disposition: attachment; filename=t2-1.patch
1032
1088
1033 # HG changeset patch
1089 # HG changeset patch
1034 # User test
1090 # User test
1035 # Date 1 0
1091 # Date 1 0
1036 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1092 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1037 # Parent 0000000000000000000000000000000000000000
1093 # Parent 0000000000000000000000000000000000000000
1038 a
1094 a
1039
1095
1040 diff -r 000000000000 -r 8580ff50825a a
1096 diff -r 000000000000 -r 8580ff50825a a
1041 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1097 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1042 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1098 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1043 @@ -0,0 +1,1 @@
1099 @@ -0,0 +1,1 @@
1044 +a
1100 +a
1045
1101
1046 --===*-- (glob)
1102 --===*-- (glob)
1047 Displaying [PATCH 2 of 3] b ...
1103 Displaying [PATCH 2 of 3] b ...
1048 Content-Type: multipart/mixed; boundary="===*" (glob)
1104 Content-Type: multipart/mixed; boundary="===*" (glob)
1049 MIME-Version: 1.0
1105 MIME-Version: 1.0
1050 Subject: [PATCH 2 of 3] b
1106 Subject: [PATCH 2 of 3] b
1051 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1107 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1052 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1108 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1053 In-Reply-To: <patchbomb.60@*> (glob)
1109 In-Reply-To: <patchbomb.60@*> (glob)
1054 References: <patchbomb.60@*> (glob)
1110 References: <patchbomb.60@*> (glob)
1055 User-Agent: Mercurial-patchbomb/* (glob)
1111 User-Agent: Mercurial-patchbomb/* (glob)
1056 Date: Thu, 01 Jan 1970 00:01:02 +0000
1112 Date: Thu, 01 Jan 1970 00:01:02 +0000
1057 From: quux
1113 From: quux
1058 To: foo
1114 To: foo
1059 Cc: bar
1115 Cc: bar
1060
1116
1061 --===* (glob)
1117 --===* (glob)
1062 Content-Type: text/plain; charset="us-ascii"
1118 Content-Type: text/plain; charset="us-ascii"
1063 MIME-Version: 1.0
1119 MIME-Version: 1.0
1064 Content-Transfer-Encoding: 7bit
1120 Content-Transfer-Encoding: 7bit
1065
1121
1066 Patch subject is complete summary.
1122 Patch subject is complete summary.
1067
1123
1068
1124
1069
1125
1070 --===* (glob)
1126 --===* (glob)
1071 Content-Type: text/x-patch; charset="us-ascii"
1127 Content-Type: text/x-patch; charset="us-ascii"
1072 MIME-Version: 1.0
1128 MIME-Version: 1.0
1073 Content-Transfer-Encoding: 7bit
1129 Content-Transfer-Encoding: 7bit
1074 Content-Disposition: attachment; filename=t2-2.patch
1130 Content-Disposition: attachment; filename=t2-2.patch
1075
1131
1076 # HG changeset patch
1132 # HG changeset patch
1077 # User test
1133 # User test
1078 # Date 2 0
1134 # Date 2 0
1079 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1135 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1080 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1136 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1081 b
1137 b
1082
1138
1083 diff -r 8580ff50825a -r 97d72e5f12c7 b
1139 diff -r 8580ff50825a -r 97d72e5f12c7 b
1084 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1140 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1085 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1141 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1086 @@ -0,0 +1,1 @@
1142 @@ -0,0 +1,1 @@
1087 +b
1143 +b
1088
1144
1089 --===*-- (glob)
1145 --===*-- (glob)
1090 Displaying [PATCH 3 of 3] long line ...
1146 Displaying [PATCH 3 of 3] long line ...
1091 Content-Type: multipart/mixed; boundary="===*" (glob)
1147 Content-Type: multipart/mixed; boundary="===*" (glob)
1092 MIME-Version: 1.0
1148 MIME-Version: 1.0
1093 Subject: [PATCH 3 of 3] long line
1149 Subject: [PATCH 3 of 3] long line
1094 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1150 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1095 Message-Id: <a2ea8fc83dd8b93cfd86.63@*> (glob)
1151 Message-Id: <a2ea8fc83dd8b93cfd86.63@*> (glob)
1096 In-Reply-To: <patchbomb.60@*> (glob)
1152 In-Reply-To: <patchbomb.60@*> (glob)
1097 References: <patchbomb.60@*> (glob)
1153 References: <patchbomb.60@*> (glob)
1098 User-Agent: Mercurial-patchbomb/* (glob)
1154 User-Agent: Mercurial-patchbomb/* (glob)
1099 Date: Thu, 01 Jan 1970 00:01:03 +0000
1155 Date: Thu, 01 Jan 1970 00:01:03 +0000
1100 From: quux
1156 From: quux
1101 To: foo
1157 To: foo
1102 Cc: bar
1158 Cc: bar
1103
1159
1104 --===* (glob)
1160 --===* (glob)
1105 Content-Type: text/plain; charset="us-ascii"
1161 Content-Type: text/plain; charset="us-ascii"
1106 MIME-Version: 1.0
1162 MIME-Version: 1.0
1107 Content-Transfer-Encoding: 7bit
1163 Content-Transfer-Encoding: 7bit
1108
1164
1109 Patch subject is complete summary.
1165 Patch subject is complete summary.
1110
1166
1111
1167
1112
1168
1113 --===* (glob)
1169 --===* (glob)
1114 Content-Type: text/x-patch; charset="us-ascii"
1170 Content-Type: text/x-patch; charset="us-ascii"
1115 MIME-Version: 1.0
1171 MIME-Version: 1.0
1116 Content-Transfer-Encoding: quoted-printable
1172 Content-Transfer-Encoding: quoted-printable
1117 Content-Disposition: attachment; filename=t2-3.patch
1173 Content-Disposition: attachment; filename=t2-3.patch
1118
1174
1119 # HG changeset patch
1175 # HG changeset patch
1120 # User test
1176 # User test
1121 # Date 4 0
1177 # Date 4 0
1122 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1178 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
1123 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1179 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
1124 long line
1180 long line
1125
1181
1126 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1182 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
1127 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1183 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1128 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1184 +++ b/long Thu Jan 01 00:00:04 1970 +0000
1129 @@ -0,0 +1,4 @@
1185 @@ -0,0 +1,4 @@
1130 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1186 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1131 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1187 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1132 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1188 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1133 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1189 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1134 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1190 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1135 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1191 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1136 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1192 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1137 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1193 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1138 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1194 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1139 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1195 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1140 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1196 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1141 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1197 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1142 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1198 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
1143 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1199 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1144 +foo
1200 +foo
1145 +
1201 +
1146 +bar
1202 +bar
1147
1203
1148 --===*-- (glob)
1204 --===*-- (glob)
1149
1205
1150 test intro for single patch:
1206 test intro for single patch:
1151 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1207 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1152 > -r 2
1208 > -r 2
1153 This patch series consists of 1 patches.
1209 This patch series consists of 1 patches.
1154
1210
1155
1211
1156 Write the introductory message for the patch series.
1212 Write the introductory message for the patch series.
1157
1213
1158
1214
1159 Displaying [PATCH 0 of 1] test ...
1215 Displaying [PATCH 0 of 1] test ...
1160 Content-Type: text/plain; charset="us-ascii"
1216 Content-Type: text/plain; charset="us-ascii"
1161 MIME-Version: 1.0
1217 MIME-Version: 1.0
1162 Content-Transfer-Encoding: 7bit
1218 Content-Transfer-Encoding: 7bit
1163 Subject: [PATCH 0 of 1] test
1219 Subject: [PATCH 0 of 1] test
1164 Message-Id: <patchbomb.60@*> (glob)
1220 Message-Id: <patchbomb.60@*> (glob)
1165 User-Agent: Mercurial-patchbomb/* (glob)
1221 User-Agent: Mercurial-patchbomb/* (glob)
1166 Date: Thu, 01 Jan 1970 00:01:00 +0000
1222 Date: Thu, 01 Jan 1970 00:01:00 +0000
1167 From: quux
1223 From: quux
1168 To: foo
1224 To: foo
1169 Cc: bar
1225 Cc: bar
1170
1226
1171
1227
1172 Displaying [PATCH 1 of 1] c ...
1228 Displaying [PATCH 1 of 1] c ...
1173 Content-Type: text/plain; charset="us-ascii"
1229 Content-Type: text/plain; charset="us-ascii"
1174 MIME-Version: 1.0
1230 MIME-Version: 1.0
1175 Content-Transfer-Encoding: 7bit
1231 Content-Transfer-Encoding: 7bit
1176 Subject: [PATCH 1 of 1] c
1232 Subject: [PATCH 1 of 1] c
1177 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1233 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1178 Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1234 Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1179 In-Reply-To: <patchbomb.60@*> (glob)
1235 In-Reply-To: <patchbomb.60@*> (glob)
1180 References: <patchbomb.60@*> (glob)
1236 References: <patchbomb.60@*> (glob)
1181 User-Agent: Mercurial-patchbomb/* (glob)
1237 User-Agent: Mercurial-patchbomb/* (glob)
1182 Date: Thu, 01 Jan 1970 00:01:01 +0000
1238 Date: Thu, 01 Jan 1970 00:01:01 +0000
1183 From: quux
1239 From: quux
1184 To: foo
1240 To: foo
1185 Cc: bar
1241 Cc: bar
1186
1242
1187 # HG changeset patch
1243 # HG changeset patch
1188 # User test
1244 # User test
1189 # Date 3 0
1245 # Date 3 0
1190 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1246 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1191 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1247 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1192 c
1248 c
1193
1249
1194 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1250 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1195 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1251 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1196 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1252 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1197 @@ -0,0 +1,1 @@
1253 @@ -0,0 +1,1 @@
1198 +c
1254 +c
1199
1255
1200
1256
1201 test --desc without --intro for a single patch:
1257 test --desc without --intro for a single patch:
1202 $ echo foo > intro.text
1258 $ echo foo > intro.text
1203 $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \
1259 $ hg email --date '1970-1-1 0:1' -n --desc intro.text -f quux -t foo -c bar \
1204 > -s test -r 2
1260 > -s test -r 2
1205 This patch series consists of 1 patches.
1261 This patch series consists of 1 patches.
1206
1262
1207
1263
1208 Displaying [PATCH 0 of 1] test ...
1264 Displaying [PATCH 0 of 1] test ...
1209 Content-Type: text/plain; charset="us-ascii"
1265 Content-Type: text/plain; charset="us-ascii"
1210 MIME-Version: 1.0
1266 MIME-Version: 1.0
1211 Content-Transfer-Encoding: 7bit
1267 Content-Transfer-Encoding: 7bit
1212 Subject: [PATCH 0 of 1] test
1268 Subject: [PATCH 0 of 1] test
1213 Message-Id: <patchbomb.60@*> (glob)
1269 Message-Id: <patchbomb.60@*> (glob)
1214 User-Agent: Mercurial-patchbomb/* (glob)
1270 User-Agent: Mercurial-patchbomb/* (glob)
1215 Date: Thu, 01 Jan 1970 00:01:00 +0000
1271 Date: Thu, 01 Jan 1970 00:01:00 +0000
1216 From: quux
1272 From: quux
1217 To: foo
1273 To: foo
1218 Cc: bar
1274 Cc: bar
1219
1275
1220 foo
1276 foo
1221
1277
1222 Displaying [PATCH 1 of 1] c ...
1278 Displaying [PATCH 1 of 1] c ...
1223 Content-Type: text/plain; charset="us-ascii"
1279 Content-Type: text/plain; charset="us-ascii"
1224 MIME-Version: 1.0
1280 MIME-Version: 1.0
1225 Content-Transfer-Encoding: 7bit
1281 Content-Transfer-Encoding: 7bit
1226 Subject: [PATCH 1 of 1] c
1282 Subject: [PATCH 1 of 1] c
1227 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1283 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1228 Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1284 Message-Id: <ff2c9fa2018b15fa74b3.61@*> (glob)
1229 In-Reply-To: <patchbomb.60@*> (glob)
1285 In-Reply-To: <patchbomb.60@*> (glob)
1230 References: <patchbomb.60@*> (glob)
1286 References: <patchbomb.60@*> (glob)
1231 User-Agent: Mercurial-patchbomb/* (glob)
1287 User-Agent: Mercurial-patchbomb/* (glob)
1232 Date: Thu, 01 Jan 1970 00:01:01 +0000
1288 Date: Thu, 01 Jan 1970 00:01:01 +0000
1233 From: quux
1289 From: quux
1234 To: foo
1290 To: foo
1235 Cc: bar
1291 Cc: bar
1236
1292
1237 # HG changeset patch
1293 # HG changeset patch
1238 # User test
1294 # User test
1239 # Date 3 0
1295 # Date 3 0
1240 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1296 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1241 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1297 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1242 c
1298 c
1243
1299
1244 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1300 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1245 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1301 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1246 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1302 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1247 @@ -0,0 +1,1 @@
1303 @@ -0,0 +1,1 @@
1248 +c
1304 +c
1249
1305
1250
1306
1251 test intro for multiple patches:
1307 test intro for multiple patches:
1252 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1308 $ hg email --date '1970-1-1 0:1' -n --intro -f quux -t foo -c bar -s test \
1253 > -r 0:1
1309 > -r 0:1
1254 This patch series consists of 2 patches.
1310 This patch series consists of 2 patches.
1255
1311
1256
1312
1257 Write the introductory message for the patch series.
1313 Write the introductory message for the patch series.
1258
1314
1259
1315
1260 Displaying [PATCH 0 of 2] test ...
1316 Displaying [PATCH 0 of 2] test ...
1261 Content-Type: text/plain; charset="us-ascii"
1317 Content-Type: text/plain; charset="us-ascii"
1262 MIME-Version: 1.0
1318 MIME-Version: 1.0
1263 Content-Transfer-Encoding: 7bit
1319 Content-Transfer-Encoding: 7bit
1264 Subject: [PATCH 0 of 2] test
1320 Subject: [PATCH 0 of 2] test
1265 Message-Id: <patchbomb.60@*> (glob)
1321 Message-Id: <patchbomb.60@*> (glob)
1266 User-Agent: Mercurial-patchbomb/* (glob)
1322 User-Agent: Mercurial-patchbomb/* (glob)
1267 Date: Thu, 01 Jan 1970 00:01:00 +0000
1323 Date: Thu, 01 Jan 1970 00:01:00 +0000
1268 From: quux
1324 From: quux
1269 To: foo
1325 To: foo
1270 Cc: bar
1326 Cc: bar
1271
1327
1272
1328
1273 Displaying [PATCH 1 of 2] a ...
1329 Displaying [PATCH 1 of 2] a ...
1274 Content-Type: text/plain; charset="us-ascii"
1330 Content-Type: text/plain; charset="us-ascii"
1275 MIME-Version: 1.0
1331 MIME-Version: 1.0
1276 Content-Transfer-Encoding: 7bit
1332 Content-Transfer-Encoding: 7bit
1277 Subject: [PATCH 1 of 2] a
1333 Subject: [PATCH 1 of 2] a
1278 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1334 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1279 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1335 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1280 In-Reply-To: <patchbomb.60@*> (glob)
1336 In-Reply-To: <patchbomb.60@*> (glob)
1281 References: <patchbomb.60@*> (glob)
1337 References: <patchbomb.60@*> (glob)
1282 User-Agent: Mercurial-patchbomb/* (glob)
1338 User-Agent: Mercurial-patchbomb/* (glob)
1283 Date: Thu, 01 Jan 1970 00:01:01 +0000
1339 Date: Thu, 01 Jan 1970 00:01:01 +0000
1284 From: quux
1340 From: quux
1285 To: foo
1341 To: foo
1286 Cc: bar
1342 Cc: bar
1287
1343
1288 # HG changeset patch
1344 # HG changeset patch
1289 # User test
1345 # User test
1290 # Date 1 0
1346 # Date 1 0
1291 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1347 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1292 # Parent 0000000000000000000000000000000000000000
1348 # Parent 0000000000000000000000000000000000000000
1293 a
1349 a
1294
1350
1295 diff -r 000000000000 -r 8580ff50825a a
1351 diff -r 000000000000 -r 8580ff50825a a
1296 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1352 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1297 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1353 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1298 @@ -0,0 +1,1 @@
1354 @@ -0,0 +1,1 @@
1299 +a
1355 +a
1300
1356
1301 Displaying [PATCH 2 of 2] b ...
1357 Displaying [PATCH 2 of 2] b ...
1302 Content-Type: text/plain; charset="us-ascii"
1358 Content-Type: text/plain; charset="us-ascii"
1303 MIME-Version: 1.0
1359 MIME-Version: 1.0
1304 Content-Transfer-Encoding: 7bit
1360 Content-Transfer-Encoding: 7bit
1305 Subject: [PATCH 2 of 2] b
1361 Subject: [PATCH 2 of 2] b
1306 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1362 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1307 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1363 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1308 In-Reply-To: <patchbomb.60@*> (glob)
1364 In-Reply-To: <patchbomb.60@*> (glob)
1309 References: <patchbomb.60@*> (glob)
1365 References: <patchbomb.60@*> (glob)
1310 User-Agent: Mercurial-patchbomb/* (glob)
1366 User-Agent: Mercurial-patchbomb/* (glob)
1311 Date: Thu, 01 Jan 1970 00:01:02 +0000
1367 Date: Thu, 01 Jan 1970 00:01:02 +0000
1312 From: quux
1368 From: quux
1313 To: foo
1369 To: foo
1314 Cc: bar
1370 Cc: bar
1315
1371
1316 # HG changeset patch
1372 # HG changeset patch
1317 # User test
1373 # User test
1318 # Date 2 0
1374 # Date 2 0
1319 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1375 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1320 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1376 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1321 b
1377 b
1322
1378
1323 diff -r 8580ff50825a -r 97d72e5f12c7 b
1379 diff -r 8580ff50825a -r 97d72e5f12c7 b
1324 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1380 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1325 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1381 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1326 @@ -0,0 +1,1 @@
1382 @@ -0,0 +1,1 @@
1327 +b
1383 +b
1328
1384
1329
1385
1330 test reply-to via config:
1386 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 \
1387 $ 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'
1388 > --config patchbomb.reply-to='baz@example.com'
1333 This patch series consists of 1 patches.
1389 This patch series consists of 1 patches.
1334
1390
1335
1391
1336 Displaying [PATCH] test ...
1392 Displaying [PATCH] test ...
1337 Content-Type: text/plain; charset="us-ascii"
1393 Content-Type: text/plain; charset="us-ascii"
1338 MIME-Version: 1.0
1394 MIME-Version: 1.0
1339 Content-Transfer-Encoding: 7bit
1395 Content-Transfer-Encoding: 7bit
1340 Subject: [PATCH] test
1396 Subject: [PATCH] test
1341 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1397 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1342 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1398 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1343 User-Agent: Mercurial-patchbomb/* (glob)
1399 User-Agent: Mercurial-patchbomb/* (glob)
1344 Date: Thu, 01 Jan 1970 00:01:00 +0000
1400 Date: Thu, 01 Jan 1970 00:01:00 +0000
1345 From: quux
1401 From: quux
1346 To: foo
1402 To: foo
1347 Cc: bar
1403 Cc: bar
1348 Reply-To: baz@example.com
1404 Reply-To: baz@example.com
1349
1405
1350 # HG changeset patch
1406 # HG changeset patch
1351 # User test
1407 # User test
1352 # Date 3 0
1408 # Date 3 0
1353 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1409 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1354 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1410 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1355 c
1411 c
1356
1412
1357 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1413 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1358 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1414 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1359 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1415 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1360 @@ -0,0 +1,1 @@
1416 @@ -0,0 +1,1 @@
1361 +c
1417 +c
1362
1418
1363
1419
1364 test reply-to via command line:
1420 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 \
1421 $ 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
1422 > --reply-to baz --reply-to fred
1367 This patch series consists of 1 patches.
1423 This patch series consists of 1 patches.
1368
1424
1369
1425
1370 Displaying [PATCH] test ...
1426 Displaying [PATCH] test ...
1371 Content-Type: text/plain; charset="us-ascii"
1427 Content-Type: text/plain; charset="us-ascii"
1372 MIME-Version: 1.0
1428 MIME-Version: 1.0
1373 Content-Transfer-Encoding: 7bit
1429 Content-Transfer-Encoding: 7bit
1374 Subject: [PATCH] test
1430 Subject: [PATCH] test
1375 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1431 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1376 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1432 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1377 User-Agent: Mercurial-patchbomb/* (glob)
1433 User-Agent: Mercurial-patchbomb/* (glob)
1378 Date: Thu, 01 Jan 1970 00:01:00 +0000
1434 Date: Thu, 01 Jan 1970 00:01:00 +0000
1379 From: quux
1435 From: quux
1380 To: foo
1436 To: foo
1381 Cc: bar
1437 Cc: bar
1382 Reply-To: baz, fred
1438 Reply-To: baz, fred
1383
1439
1384 # HG changeset patch
1440 # HG changeset patch
1385 # User test
1441 # User test
1386 # Date 3 0
1442 # Date 3 0
1387 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1443 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1388 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1444 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1389 c
1445 c
1390
1446
1391 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1447 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1392 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1448 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1393 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1449 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1394 @@ -0,0 +1,1 @@
1450 @@ -0,0 +1,1 @@
1395 +c
1451 +c
1396
1452
1397
1453
1398 tagging csets:
1454 tagging csets:
1399 $ hg tag -r0 zero zero.foo
1455 $ hg tag -r0 zero zero.foo
1400 $ hg tag -r1 one one.patch
1456 $ hg tag -r1 one one.patch
1401 $ hg tag -r2 two two.diff
1457 $ hg tag -r2 two two.diff
1402
1458
1403 test inline for single named patch:
1459 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
1460 $ 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.
1461 This patch series consists of 1 patches.
1406
1462
1407
1463
1408 Displaying [PATCH] test ...
1464 Displaying [PATCH] test ...
1409 Content-Type: multipart/mixed; boundary="===*" (glob)
1465 Content-Type: multipart/mixed; boundary="===*" (glob)
1410 MIME-Version: 1.0
1466 MIME-Version: 1.0
1411 Subject: [PATCH] test
1467 Subject: [PATCH] test
1412 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1468 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1413 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1469 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1414 User-Agent: Mercurial-patchbomb/* (glob)
1470 User-Agent: Mercurial-patchbomb/* (glob)
1415 Date: Thu, 01 Jan 1970 00:01:00 +0000
1471 Date: Thu, 01 Jan 1970 00:01:00 +0000
1416 From: quux
1472 From: quux
1417 To: foo
1473 To: foo
1418 Cc: bar
1474 Cc: bar
1419
1475
1420 --===* (glob)
1476 --===* (glob)
1421 Content-Type: text/x-patch; charset="us-ascii"
1477 Content-Type: text/x-patch; charset="us-ascii"
1422 MIME-Version: 1.0
1478 MIME-Version: 1.0
1423 Content-Transfer-Encoding: 7bit
1479 Content-Transfer-Encoding: 7bit
1424 Content-Disposition: inline; filename=two.diff
1480 Content-Disposition: inline; filename=two.diff
1425
1481
1426 # HG changeset patch
1482 # HG changeset patch
1427 # User test
1483 # User test
1428 # Date 3 0
1484 # Date 3 0
1429 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1485 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1430 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1486 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1431 c
1487 c
1432
1488
1433 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1489 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1434 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1490 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1435 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1491 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1436 @@ -0,0 +1,1 @@
1492 @@ -0,0 +1,1 @@
1437 +c
1493 +c
1438
1494
1439 --===*-- (glob)
1495 --===*-- (glob)
1440
1496
1441 test inline for multiple named/unnamed patches:
1497 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
1498 $ 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.
1499 This patch series consists of 2 patches.
1444
1500
1445
1501
1446 Write the introductory message for the patch series.
1502 Write the introductory message for the patch series.
1447
1503
1448
1504
1449 Displaying [PATCH 0 of 2] test ...
1505 Displaying [PATCH 0 of 2] test ...
1450 Content-Type: text/plain; charset="us-ascii"
1506 Content-Type: text/plain; charset="us-ascii"
1451 MIME-Version: 1.0
1507 MIME-Version: 1.0
1452 Content-Transfer-Encoding: 7bit
1508 Content-Transfer-Encoding: 7bit
1453 Subject: [PATCH 0 of 2] test
1509 Subject: [PATCH 0 of 2] test
1454 Message-Id: <patchbomb.60@*> (glob)
1510 Message-Id: <patchbomb.60@*> (glob)
1455 User-Agent: Mercurial-patchbomb/* (glob)
1511 User-Agent: Mercurial-patchbomb/* (glob)
1456 Date: Thu, 01 Jan 1970 00:01:00 +0000
1512 Date: Thu, 01 Jan 1970 00:01:00 +0000
1457 From: quux
1513 From: quux
1458 To: foo
1514 To: foo
1459 Cc: bar
1515 Cc: bar
1460
1516
1461
1517
1462 Displaying [PATCH 1 of 2] a ...
1518 Displaying [PATCH 1 of 2] a ...
1463 Content-Type: multipart/mixed; boundary="===*" (glob)
1519 Content-Type: multipart/mixed; boundary="===*" (glob)
1464 MIME-Version: 1.0
1520 MIME-Version: 1.0
1465 Subject: [PATCH 1 of 2] a
1521 Subject: [PATCH 1 of 2] a
1466 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1522 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1467 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1523 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1468 In-Reply-To: <patchbomb.60@*> (glob)
1524 In-Reply-To: <patchbomb.60@*> (glob)
1469 References: <patchbomb.60@*> (glob)
1525 References: <patchbomb.60@*> (glob)
1470 User-Agent: Mercurial-patchbomb/* (glob)
1526 User-Agent: Mercurial-patchbomb/* (glob)
1471 Date: Thu, 01 Jan 1970 00:01:01 +0000
1527 Date: Thu, 01 Jan 1970 00:01:01 +0000
1472 From: quux
1528 From: quux
1473 To: foo
1529 To: foo
1474 Cc: bar
1530 Cc: bar
1475
1531
1476 --===* (glob)
1532 --===* (glob)
1477 Content-Type: text/x-patch; charset="us-ascii"
1533 Content-Type: text/x-patch; charset="us-ascii"
1478 MIME-Version: 1.0
1534 MIME-Version: 1.0
1479 Content-Transfer-Encoding: 7bit
1535 Content-Transfer-Encoding: 7bit
1480 Content-Disposition: inline; filename=t2-1.patch
1536 Content-Disposition: inline; filename=t2-1.patch
1481
1537
1482 # HG changeset patch
1538 # HG changeset patch
1483 # User test
1539 # User test
1484 # Date 1 0
1540 # Date 1 0
1485 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1541 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1486 # Parent 0000000000000000000000000000000000000000
1542 # Parent 0000000000000000000000000000000000000000
1487 a
1543 a
1488
1544
1489 diff -r 000000000000 -r 8580ff50825a a
1545 diff -r 000000000000 -r 8580ff50825a a
1490 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1546 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1491 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1547 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1492 @@ -0,0 +1,1 @@
1548 @@ -0,0 +1,1 @@
1493 +a
1549 +a
1494
1550
1495 --===*-- (glob)
1551 --===*-- (glob)
1496 Displaying [PATCH 2 of 2] b ...
1552 Displaying [PATCH 2 of 2] b ...
1497 Content-Type: multipart/mixed; boundary="===*" (glob)
1553 Content-Type: multipart/mixed; boundary="===*" (glob)
1498 MIME-Version: 1.0
1554 MIME-Version: 1.0
1499 Subject: [PATCH 2 of 2] b
1555 Subject: [PATCH 2 of 2] b
1500 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1556 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1501 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1557 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1502 In-Reply-To: <patchbomb.60@*> (glob)
1558 In-Reply-To: <patchbomb.60@*> (glob)
1503 References: <patchbomb.60@*> (glob)
1559 References: <patchbomb.60@*> (glob)
1504 User-Agent: Mercurial-patchbomb/* (glob)
1560 User-Agent: Mercurial-patchbomb/* (glob)
1505 Date: Thu, 01 Jan 1970 00:01:02 +0000
1561 Date: Thu, 01 Jan 1970 00:01:02 +0000
1506 From: quux
1562 From: quux
1507 To: foo
1563 To: foo
1508 Cc: bar
1564 Cc: bar
1509
1565
1510 --===* (glob)
1566 --===* (glob)
1511 Content-Type: text/x-patch; charset="us-ascii"
1567 Content-Type: text/x-patch; charset="us-ascii"
1512 MIME-Version: 1.0
1568 MIME-Version: 1.0
1513 Content-Transfer-Encoding: 7bit
1569 Content-Transfer-Encoding: 7bit
1514 Content-Disposition: inline; filename=one.patch
1570 Content-Disposition: inline; filename=one.patch
1515
1571
1516 # HG changeset patch
1572 # HG changeset patch
1517 # User test
1573 # User test
1518 # Date 2 0
1574 # Date 2 0
1519 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1575 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1520 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1576 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1521 b
1577 b
1522
1578
1523 diff -r 8580ff50825a -r 97d72e5f12c7 b
1579 diff -r 8580ff50825a -r 97d72e5f12c7 b
1524 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1580 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1525 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1581 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1526 @@ -0,0 +1,1 @@
1582 @@ -0,0 +1,1 @@
1527 +b
1583 +b
1528
1584
1529 --===*-- (glob)
1585 --===*-- (glob)
1530
1586
1531
1587
1532 test inreplyto:
1588 test inreplyto:
1533 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1589 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1534 > -r tip
1590 > -r tip
1535 This patch series consists of 1 patches.
1591 This patch series consists of 1 patches.
1536
1592
1537
1593
1538 Displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
1594 Displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
1539 Content-Type: text/plain; charset="us-ascii"
1595 Content-Type: text/plain; charset="us-ascii"
1540 MIME-Version: 1.0
1596 MIME-Version: 1.0
1541 Content-Transfer-Encoding: 7bit
1597 Content-Transfer-Encoding: 7bit
1542 Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
1598 Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
1543 X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
1599 X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
1544 Message-Id: <7aead2484924c445ad8c.60@*> (glob)
1600 Message-Id: <7aead2484924c445ad8c.60@*> (glob)
1545 In-Reply-To: <baz>
1601 In-Reply-To: <baz>
1546 References: <baz>
1602 References: <baz>
1547 User-Agent: Mercurial-patchbomb/* (glob)
1603 User-Agent: Mercurial-patchbomb/* (glob)
1548 Date: Thu, 01 Jan 1970 00:01:00 +0000
1604 Date: Thu, 01 Jan 1970 00:01:00 +0000
1549 From: quux
1605 From: quux
1550 To: foo
1606 To: foo
1551 Cc: bar
1607 Cc: bar
1552
1608
1553 # HG changeset patch
1609 # HG changeset patch
1554 # User test
1610 # User test
1555 # Date 0 0
1611 # Date 0 0
1556 # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
1612 # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
1557 # Parent 045ca29b1ea20e4940411e695e20e521f2f0f98e
1613 # Parent 045ca29b1ea20e4940411e695e20e521f2f0f98e
1558 Added tag two, two.diff for changeset ff2c9fa2018b
1614 Added tag two, two.diff for changeset ff2c9fa2018b
1559
1615
1560 diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
1616 diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
1561 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
1617 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
1562 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
1618 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
1563 @@ -2,3 +2,5 @@
1619 @@ -2,3 +2,5 @@
1564 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
1620 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
1565 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
1621 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
1566 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
1622 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
1567 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
1623 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
1568 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
1624 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
1569
1625
1570 no intro message in non-interactive mode
1626 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 \
1627 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1572 > -r 0:1
1628 > -r 0:1
1573 This patch series consists of 2 patches.
1629 This patch series consists of 2 patches.
1574
1630
1575 (optional) Subject: [PATCH 0 of 2]
1631 (optional) Subject: [PATCH 0 of 2]
1576
1632
1577 Displaying [PATCH 1 of 2] a ...
1633 Displaying [PATCH 1 of 2] a ...
1578 Content-Type: text/plain; charset="us-ascii"
1634 Content-Type: text/plain; charset="us-ascii"
1579 MIME-Version: 1.0
1635 MIME-Version: 1.0
1580 Content-Transfer-Encoding: 7bit
1636 Content-Transfer-Encoding: 7bit
1581 Subject: [PATCH 1 of 2] a
1637 Subject: [PATCH 1 of 2] a
1582 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1638 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1583 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
1639 Message-Id: <8580ff50825a50c8f716.60@*> (glob)
1584 In-Reply-To: <baz>
1640 In-Reply-To: <baz>
1585 References: <baz>
1641 References: <baz>
1586 User-Agent: Mercurial-patchbomb/* (glob)
1642 User-Agent: Mercurial-patchbomb/* (glob)
1587 Date: Thu, 01 Jan 1970 00:01:00 +0000
1643 Date: Thu, 01 Jan 1970 00:01:00 +0000
1588 From: quux
1644 From: quux
1589 To: foo
1645 To: foo
1590 Cc: bar
1646 Cc: bar
1591
1647
1592 # HG changeset patch
1648 # HG changeset patch
1593 # User test
1649 # User test
1594 # Date 1 0
1650 # Date 1 0
1595 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1651 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1596 # Parent 0000000000000000000000000000000000000000
1652 # Parent 0000000000000000000000000000000000000000
1597 a
1653 a
1598
1654
1599 diff -r 000000000000 -r 8580ff50825a a
1655 diff -r 000000000000 -r 8580ff50825a a
1600 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1656 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1601 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1657 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1602 @@ -0,0 +1,1 @@
1658 @@ -0,0 +1,1 @@
1603 +a
1659 +a
1604
1660
1605 Displaying [PATCH 2 of 2] b ...
1661 Displaying [PATCH 2 of 2] b ...
1606 Content-Type: text/plain; charset="us-ascii"
1662 Content-Type: text/plain; charset="us-ascii"
1607 MIME-Version: 1.0
1663 MIME-Version: 1.0
1608 Content-Transfer-Encoding: 7bit
1664 Content-Transfer-Encoding: 7bit
1609 Subject: [PATCH 2 of 2] b
1665 Subject: [PATCH 2 of 2] b
1610 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1666 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1611 Message-Id: <97d72e5f12c7e84f8506.61@*> (glob)
1667 Message-Id: <97d72e5f12c7e84f8506.61@*> (glob)
1612 In-Reply-To: <8580ff50825a50c8f716.60@*> (glob)
1668 In-Reply-To: <8580ff50825a50c8f716.60@*> (glob)
1613 References: <8580ff50825a50c8f716.60@*> (glob)
1669 References: <8580ff50825a50c8f716.60@*> (glob)
1614 User-Agent: Mercurial-patchbomb/* (glob)
1670 User-Agent: Mercurial-patchbomb/* (glob)
1615 Date: Thu, 01 Jan 1970 00:01:01 +0000
1671 Date: Thu, 01 Jan 1970 00:01:01 +0000
1616 From: quux
1672 From: quux
1617 To: foo
1673 To: foo
1618 Cc: bar
1674 Cc: bar
1619
1675
1620 # HG changeset patch
1676 # HG changeset patch
1621 # User test
1677 # User test
1622 # Date 2 0
1678 # Date 2 0
1623 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1679 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1624 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1680 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1625 b
1681 b
1626
1682
1627 diff -r 8580ff50825a -r 97d72e5f12c7 b
1683 diff -r 8580ff50825a -r 97d72e5f12c7 b
1628 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1684 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1629 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1685 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1630 @@ -0,0 +1,1 @@
1686 @@ -0,0 +1,1 @@
1631 +b
1687 +b
1632
1688
1633
1689
1634
1690
1635
1691
1636 $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
1692 $ 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
1693 > -s test -r 0:1
1638 This patch series consists of 2 patches.
1694 This patch series consists of 2 patches.
1639
1695
1640
1696
1641 Write the introductory message for the patch series.
1697 Write the introductory message for the patch series.
1642
1698
1643
1699
1644 Displaying [PATCH 0 of 2] test ...
1700 Displaying [PATCH 0 of 2] test ...
1645 Content-Type: text/plain; charset="us-ascii"
1701 Content-Type: text/plain; charset="us-ascii"
1646 MIME-Version: 1.0
1702 MIME-Version: 1.0
1647 Content-Transfer-Encoding: 7bit
1703 Content-Transfer-Encoding: 7bit
1648 Subject: [PATCH 0 of 2] test
1704 Subject: [PATCH 0 of 2] test
1649 Message-Id: <patchbomb.60@*> (glob)
1705 Message-Id: <patchbomb.60@*> (glob)
1650 In-Reply-To: <baz>
1706 In-Reply-To: <baz>
1651 References: <baz>
1707 References: <baz>
1652 User-Agent: Mercurial-patchbomb/* (glob)
1708 User-Agent: Mercurial-patchbomb/* (glob)
1653 Date: Thu, 01 Jan 1970 00:01:00 +0000
1709 Date: Thu, 01 Jan 1970 00:01:00 +0000
1654 From: quux
1710 From: quux
1655 To: foo
1711 To: foo
1656 Cc: bar
1712 Cc: bar
1657
1713
1658
1714
1659 Displaying [PATCH 1 of 2] a ...
1715 Displaying [PATCH 1 of 2] a ...
1660 Content-Type: text/plain; charset="us-ascii"
1716 Content-Type: text/plain; charset="us-ascii"
1661 MIME-Version: 1.0
1717 MIME-Version: 1.0
1662 Content-Transfer-Encoding: 7bit
1718 Content-Transfer-Encoding: 7bit
1663 Subject: [PATCH 1 of 2] a
1719 Subject: [PATCH 1 of 2] a
1664 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1720 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1665 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1721 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1666 In-Reply-To: <patchbomb.60@*> (glob)
1722 In-Reply-To: <patchbomb.60@*> (glob)
1667 References: <patchbomb.60@*> (glob)
1723 References: <patchbomb.60@*> (glob)
1668 User-Agent: Mercurial-patchbomb/* (glob)
1724 User-Agent: Mercurial-patchbomb/* (glob)
1669 Date: Thu, 01 Jan 1970 00:01:01 +0000
1725 Date: Thu, 01 Jan 1970 00:01:01 +0000
1670 From: quux
1726 From: quux
1671 To: foo
1727 To: foo
1672 Cc: bar
1728 Cc: bar
1673
1729
1674 # HG changeset patch
1730 # HG changeset patch
1675 # User test
1731 # User test
1676 # Date 1 0
1732 # Date 1 0
1677 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1733 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1678 # Parent 0000000000000000000000000000000000000000
1734 # Parent 0000000000000000000000000000000000000000
1679 a
1735 a
1680
1736
1681 diff -r 000000000000 -r 8580ff50825a a
1737 diff -r 000000000000 -r 8580ff50825a a
1682 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1738 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1683 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1739 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1684 @@ -0,0 +1,1 @@
1740 @@ -0,0 +1,1 @@
1685 +a
1741 +a
1686
1742
1687 Displaying [PATCH 2 of 2] b ...
1743 Displaying [PATCH 2 of 2] b ...
1688 Content-Type: text/plain; charset="us-ascii"
1744 Content-Type: text/plain; charset="us-ascii"
1689 MIME-Version: 1.0
1745 MIME-Version: 1.0
1690 Content-Transfer-Encoding: 7bit
1746 Content-Transfer-Encoding: 7bit
1691 Subject: [PATCH 2 of 2] b
1747 Subject: [PATCH 2 of 2] b
1692 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1748 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1693 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1749 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1694 In-Reply-To: <patchbomb.60@*> (glob)
1750 In-Reply-To: <patchbomb.60@*> (glob)
1695 References: <patchbomb.60@*> (glob)
1751 References: <patchbomb.60@*> (glob)
1696 User-Agent: Mercurial-patchbomb/* (glob)
1752 User-Agent: Mercurial-patchbomb/* (glob)
1697 Date: Thu, 01 Jan 1970 00:01:02 +0000
1753 Date: Thu, 01 Jan 1970 00:01:02 +0000
1698 From: quux
1754 From: quux
1699 To: foo
1755 To: foo
1700 Cc: bar
1756 Cc: bar
1701
1757
1702 # HG changeset patch
1758 # HG changeset patch
1703 # User test
1759 # User test
1704 # Date 2 0
1760 # Date 2 0
1705 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1761 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1706 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1762 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1707 b
1763 b
1708
1764
1709 diff -r 8580ff50825a -r 97d72e5f12c7 b
1765 diff -r 8580ff50825a -r 97d72e5f12c7 b
1710 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1766 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1711 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1767 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1712 @@ -0,0 +1,1 @@
1768 @@ -0,0 +1,1 @@
1713 +b
1769 +b
1714
1770
1715
1771
1716 test single flag for single patch:
1772 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 \
1773 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
1718 > -r 2
1774 > -r 2
1719 This patch series consists of 1 patches.
1775 This patch series consists of 1 patches.
1720
1776
1721
1777
1722 Displaying [PATCH fooFlag] test ...
1778 Displaying [PATCH fooFlag] test ...
1723 Content-Type: text/plain; charset="us-ascii"
1779 Content-Type: text/plain; charset="us-ascii"
1724 MIME-Version: 1.0
1780 MIME-Version: 1.0
1725 Content-Transfer-Encoding: 7bit
1781 Content-Transfer-Encoding: 7bit
1726 Subject: [PATCH fooFlag] test
1782 Subject: [PATCH fooFlag] test
1727 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1783 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1728 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1784 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1729 User-Agent: Mercurial-patchbomb/* (glob)
1785 User-Agent: Mercurial-patchbomb/* (glob)
1730 Date: Thu, 01 Jan 1970 00:01:00 +0000
1786 Date: Thu, 01 Jan 1970 00:01:00 +0000
1731 From: quux
1787 From: quux
1732 To: foo
1788 To: foo
1733 Cc: bar
1789 Cc: bar
1734
1790
1735 # HG changeset patch
1791 # HG changeset patch
1736 # User test
1792 # User test
1737 # Date 3 0
1793 # Date 3 0
1738 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1794 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1739 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1795 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1740 c
1796 c
1741
1797
1742 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1798 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1743 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1799 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1744 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1800 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1745 @@ -0,0 +1,1 @@
1801 @@ -0,0 +1,1 @@
1746 +c
1802 +c
1747
1803
1748
1804
1749 test single flag for multiple patches:
1805 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 \
1806 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag -f quux -t foo -c bar -s test \
1751 > -r 0:1
1807 > -r 0:1
1752 This patch series consists of 2 patches.
1808 This patch series consists of 2 patches.
1753
1809
1754
1810
1755 Write the introductory message for the patch series.
1811 Write the introductory message for the patch series.
1756
1812
1757
1813
1758 Displaying [PATCH 0 of 2 fooFlag] test ...
1814 Displaying [PATCH 0 of 2 fooFlag] test ...
1759 Content-Type: text/plain; charset="us-ascii"
1815 Content-Type: text/plain; charset="us-ascii"
1760 MIME-Version: 1.0
1816 MIME-Version: 1.0
1761 Content-Transfer-Encoding: 7bit
1817 Content-Transfer-Encoding: 7bit
1762 Subject: [PATCH 0 of 2 fooFlag] test
1818 Subject: [PATCH 0 of 2 fooFlag] test
1763 Message-Id: <patchbomb.60@*> (glob)
1819 Message-Id: <patchbomb.60@*> (glob)
1764 User-Agent: Mercurial-patchbomb/* (glob)
1820 User-Agent: Mercurial-patchbomb/* (glob)
1765 Date: Thu, 01 Jan 1970 00:01:00 +0000
1821 Date: Thu, 01 Jan 1970 00:01:00 +0000
1766 From: quux
1822 From: quux
1767 To: foo
1823 To: foo
1768 Cc: bar
1824 Cc: bar
1769
1825
1770
1826
1771 Displaying [PATCH 1 of 2 fooFlag] a ...
1827 Displaying [PATCH 1 of 2 fooFlag] a ...
1772 Content-Type: text/plain; charset="us-ascii"
1828 Content-Type: text/plain; charset="us-ascii"
1773 MIME-Version: 1.0
1829 MIME-Version: 1.0
1774 Content-Transfer-Encoding: 7bit
1830 Content-Transfer-Encoding: 7bit
1775 Subject: [PATCH 1 of 2 fooFlag] a
1831 Subject: [PATCH 1 of 2 fooFlag] a
1776 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1832 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1777 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1833 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1778 In-Reply-To: <patchbomb.60@*> (glob)
1834 In-Reply-To: <patchbomb.60@*> (glob)
1779 References: <patchbomb.60@*> (glob)
1835 References: <patchbomb.60@*> (glob)
1780 User-Agent: Mercurial-patchbomb/* (glob)
1836 User-Agent: Mercurial-patchbomb/* (glob)
1781 Date: Thu, 01 Jan 1970 00:01:01 +0000
1837 Date: Thu, 01 Jan 1970 00:01:01 +0000
1782 From: quux
1838 From: quux
1783 To: foo
1839 To: foo
1784 Cc: bar
1840 Cc: bar
1785
1841
1786 # HG changeset patch
1842 # HG changeset patch
1787 # User test
1843 # User test
1788 # Date 1 0
1844 # Date 1 0
1789 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1845 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1790 # Parent 0000000000000000000000000000000000000000
1846 # Parent 0000000000000000000000000000000000000000
1791 a
1847 a
1792
1848
1793 diff -r 000000000000 -r 8580ff50825a a
1849 diff -r 000000000000 -r 8580ff50825a a
1794 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1850 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1795 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1851 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1796 @@ -0,0 +1,1 @@
1852 @@ -0,0 +1,1 @@
1797 +a
1853 +a
1798
1854
1799 Displaying [PATCH 2 of 2 fooFlag] b ...
1855 Displaying [PATCH 2 of 2 fooFlag] b ...
1800 Content-Type: text/plain; charset="us-ascii"
1856 Content-Type: text/plain; charset="us-ascii"
1801 MIME-Version: 1.0
1857 MIME-Version: 1.0
1802 Content-Transfer-Encoding: 7bit
1858 Content-Transfer-Encoding: 7bit
1803 Subject: [PATCH 2 of 2 fooFlag] b
1859 Subject: [PATCH 2 of 2 fooFlag] b
1804 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1860 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1805 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1861 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1806 In-Reply-To: <patchbomb.60@*> (glob)
1862 In-Reply-To: <patchbomb.60@*> (glob)
1807 References: <patchbomb.60@*> (glob)
1863 References: <patchbomb.60@*> (glob)
1808 User-Agent: Mercurial-patchbomb/* (glob)
1864 User-Agent: Mercurial-patchbomb/* (glob)
1809 Date: Thu, 01 Jan 1970 00:01:02 +0000
1865 Date: Thu, 01 Jan 1970 00:01:02 +0000
1810 From: quux
1866 From: quux
1811 To: foo
1867 To: foo
1812 Cc: bar
1868 Cc: bar
1813
1869
1814 # HG changeset patch
1870 # HG changeset patch
1815 # User test
1871 # User test
1816 # Date 2 0
1872 # Date 2 0
1817 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1873 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1818 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1874 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1819 b
1875 b
1820
1876
1821 diff -r 8580ff50825a -r 97d72e5f12c7 b
1877 diff -r 8580ff50825a -r 97d72e5f12c7 b
1822 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1878 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1823 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1879 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1824 @@ -0,0 +1,1 @@
1880 @@ -0,0 +1,1 @@
1825 +b
1881 +b
1826
1882
1827
1883
1828 test mutiple flags for single patch:
1884 test mutiple flags for single patch:
1829 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
1885 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
1830 > -c bar -s test -r 2
1886 > -c bar -s test -r 2
1831 This patch series consists of 1 patches.
1887 This patch series consists of 1 patches.
1832
1888
1833
1889
1834 Displaying [PATCH fooFlag barFlag] test ...
1890 Displaying [PATCH fooFlag barFlag] test ...
1835 Content-Type: text/plain; charset="us-ascii"
1891 Content-Type: text/plain; charset="us-ascii"
1836 MIME-Version: 1.0
1892 MIME-Version: 1.0
1837 Content-Transfer-Encoding: 7bit
1893 Content-Transfer-Encoding: 7bit
1838 Subject: [PATCH fooFlag barFlag] test
1894 Subject: [PATCH fooFlag barFlag] test
1839 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1895 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
1840 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1896 Message-Id: <ff2c9fa2018b15fa74b3.60@*> (glob)
1841 User-Agent: Mercurial-patchbomb/* (glob)
1897 User-Agent: Mercurial-patchbomb/* (glob)
1842 Date: Thu, 01 Jan 1970 00:01:00 +0000
1898 Date: Thu, 01 Jan 1970 00:01:00 +0000
1843 From: quux
1899 From: quux
1844 To: foo
1900 To: foo
1845 Cc: bar
1901 Cc: bar
1846
1902
1847 # HG changeset patch
1903 # HG changeset patch
1848 # User test
1904 # User test
1849 # Date 3 0
1905 # Date 3 0
1850 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1906 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
1851 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1907 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1852 c
1908 c
1853
1909
1854 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1910 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
1855 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1911 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1856 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1912 +++ b/c Thu Jan 01 00:00:03 1970 +0000
1857 @@ -0,0 +1,1 @@
1913 @@ -0,0 +1,1 @@
1858 +c
1914 +c
1859
1915
1860
1916
1861 test multiple flags for multiple patches:
1917 test multiple flags for multiple patches:
1862 $ hg email --date '1970-1-1 0:1' -n --flag fooFlag --flag barFlag -f quux -t foo \
1918 $ 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
1919 > -c bar -s test -r 0:1
1864 This patch series consists of 2 patches.
1920 This patch series consists of 2 patches.
1865
1921
1866
1922
1867 Write the introductory message for the patch series.
1923 Write the introductory message for the patch series.
1868
1924
1869
1925
1870 Displaying [PATCH 0 of 2 fooFlag barFlag] test ...
1926 Displaying [PATCH 0 of 2 fooFlag barFlag] test ...
1871 Content-Type: text/plain; charset="us-ascii"
1927 Content-Type: text/plain; charset="us-ascii"
1872 MIME-Version: 1.0
1928 MIME-Version: 1.0
1873 Content-Transfer-Encoding: 7bit
1929 Content-Transfer-Encoding: 7bit
1874 Subject: [PATCH 0 of 2 fooFlag barFlag] test
1930 Subject: [PATCH 0 of 2 fooFlag barFlag] test
1875 Message-Id: <patchbomb.60@*> (glob)
1931 Message-Id: <patchbomb.60@*> (glob)
1876 User-Agent: Mercurial-patchbomb/* (glob)
1932 User-Agent: Mercurial-patchbomb/* (glob)
1877 Date: Thu, 01 Jan 1970 00:01:00 +0000
1933 Date: Thu, 01 Jan 1970 00:01:00 +0000
1878 From: quux
1934 From: quux
1879 To: foo
1935 To: foo
1880 Cc: bar
1936 Cc: bar
1881
1937
1882
1938
1883 Displaying [PATCH 1 of 2 fooFlag barFlag] a ...
1939 Displaying [PATCH 1 of 2 fooFlag barFlag] a ...
1884 Content-Type: text/plain; charset="us-ascii"
1940 Content-Type: text/plain; charset="us-ascii"
1885 MIME-Version: 1.0
1941 MIME-Version: 1.0
1886 Content-Transfer-Encoding: 7bit
1942 Content-Transfer-Encoding: 7bit
1887 Subject: [PATCH 1 of 2 fooFlag barFlag] a
1943 Subject: [PATCH 1 of 2 fooFlag barFlag] a
1888 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1944 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1889 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1945 Message-Id: <8580ff50825a50c8f716.61@*> (glob)
1890 In-Reply-To: <patchbomb.60@*> (glob)
1946 In-Reply-To: <patchbomb.60@*> (glob)
1891 References: <patchbomb.60@*> (glob)
1947 References: <patchbomb.60@*> (glob)
1892 User-Agent: Mercurial-patchbomb/* (glob)
1948 User-Agent: Mercurial-patchbomb/* (glob)
1893 Date: Thu, 01 Jan 1970 00:01:01 +0000
1949 Date: Thu, 01 Jan 1970 00:01:01 +0000
1894 From: quux
1950 From: quux
1895 To: foo
1951 To: foo
1896 Cc: bar
1952 Cc: bar
1897
1953
1898 # HG changeset patch
1954 # HG changeset patch
1899 # User test
1955 # User test
1900 # Date 1 0
1956 # Date 1 0
1901 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1957 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1902 # Parent 0000000000000000000000000000000000000000
1958 # Parent 0000000000000000000000000000000000000000
1903 a
1959 a
1904
1960
1905 diff -r 000000000000 -r 8580ff50825a a
1961 diff -r 000000000000 -r 8580ff50825a a
1906 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1962 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1907 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1963 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1908 @@ -0,0 +1,1 @@
1964 @@ -0,0 +1,1 @@
1909 +a
1965 +a
1910
1966
1911 Displaying [PATCH 2 of 2 fooFlag barFlag] b ...
1967 Displaying [PATCH 2 of 2 fooFlag barFlag] b ...
1912 Content-Type: text/plain; charset="us-ascii"
1968 Content-Type: text/plain; charset="us-ascii"
1913 MIME-Version: 1.0
1969 MIME-Version: 1.0
1914 Content-Transfer-Encoding: 7bit
1970 Content-Transfer-Encoding: 7bit
1915 Subject: [PATCH 2 of 2 fooFlag barFlag] b
1971 Subject: [PATCH 2 of 2 fooFlag barFlag] b
1916 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1972 X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1917 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1973 Message-Id: <97d72e5f12c7e84f8506.62@*> (glob)
1918 In-Reply-To: <patchbomb.60@*> (glob)
1974 In-Reply-To: <patchbomb.60@*> (glob)
1919 References: <patchbomb.60@*> (glob)
1975 References: <patchbomb.60@*> (glob)
1920 User-Agent: Mercurial-patchbomb/* (glob)
1976 User-Agent: Mercurial-patchbomb/* (glob)
1921 Date: Thu, 01 Jan 1970 00:01:02 +0000
1977 Date: Thu, 01 Jan 1970 00:01:02 +0000
1922 From: quux
1978 From: quux
1923 To: foo
1979 To: foo
1924 Cc: bar
1980 Cc: bar
1925
1981
1926 # HG changeset patch
1982 # HG changeset patch
1927 # User test
1983 # User test
1928 # Date 2 0
1984 # Date 2 0
1929 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1985 # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
1930 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1986 # Parent 8580ff50825a50c8f716709acdf8de0deddcd6ab
1931 b
1987 b
1932
1988
1933 diff -r 8580ff50825a -r 97d72e5f12c7 b
1989 diff -r 8580ff50825a -r 97d72e5f12c7 b
1934 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1990 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1935 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1991 +++ b/b Thu Jan 01 00:00:02 1970 +0000
1936 @@ -0,0 +1,1 @@
1992 @@ -0,0 +1,1 @@
1937 +b
1993 +b
1938
1994
1939
1995
1940 test multi-address parsing:
1996 test multi-address parsing:
1941 $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t 'spam<spam><eggs>' \
1997 $ 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 \
1998 > -t toast -c 'foo,bar@example.com' -c '"A, B <>" <a@example.com>' -s test -r 0 \
1943 > --config email.bcc='"Quux, A." <quux>'
1999 > --config email.bcc='"Quux, A." <quux>'
1944 This patch series consists of 1 patches.
2000 This patch series consists of 1 patches.
1945
2001
1946
2002
1947 Sending [PATCH] test ...
2003 Sending [PATCH] test ...
1948 $ cat < tmp.mbox
2004 $ cat < tmp.mbox
1949 From quux ... ... .. ..:..:.. .... (re)
2005 From quux ... ... .. ..:..:.. .... (re)
1950 Content-Type: text/plain; charset="us-ascii"
2006 Content-Type: text/plain; charset="us-ascii"
1951 MIME-Version: 1.0
2007 MIME-Version: 1.0
1952 Content-Transfer-Encoding: 7bit
2008 Content-Transfer-Encoding: 7bit
1953 Subject: [PATCH] test
2009 Subject: [PATCH] test
1954 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2010 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1955 Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
2011 Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
1956 User-Agent: Mercurial-patchbomb/* (glob)
2012 User-Agent: Mercurial-patchbomb/* (glob)
1957 Date: Tue, 01 Jan 1980 00:01:00 +0000
2013 Date: Tue, 01 Jan 1980 00:01:00 +0000
1958 From: quux
2014 From: quux
1959 To: spam <spam>, eggs, toast
2015 To: spam <spam>, eggs, toast
1960 Cc: foo, bar@example.com, "A, B <>" <a@example.com>
2016 Cc: foo, bar@example.com, "A, B <>" <a@example.com>
1961 Bcc: "Quux, A." <quux>
2017 Bcc: "Quux, A." <quux>
1962
2018
1963 # HG changeset patch
2019 # HG changeset patch
1964 # User test
2020 # User test
1965 # Date 1 0
2021 # Date 1 0
1966 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2022 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
1967 # Parent 0000000000000000000000000000000000000000
2023 # Parent 0000000000000000000000000000000000000000
1968 a
2024 a
1969
2025
1970 diff -r 000000000000 -r 8580ff50825a a
2026 diff -r 000000000000 -r 8580ff50825a a
1971 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2027 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1972 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2028 +++ b/a Thu Jan 01 00:00:01 1970 +0000
1973 @@ -0,0 +1,1 @@
2029 @@ -0,0 +1,1 @@
1974 +a
2030 +a
1975
2031
1976
2032
1977
2033
1978 test multi-byte domain parsing:
2034 test multi-byte domain parsing:
1979 $ UUML=`python -c 'import sys; sys.stdout.write("\374")'`
2035 $ UUML=`python -c 'import sys; sys.stdout.write("\374")'`
1980 $ HGENCODING=iso-8859-1
2036 $ HGENCODING=iso-8859-1
1981 $ export HGENCODING
2037 $ 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
2038 $ 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.
2039 This patch series consists of 1 patches.
1984
2040
1985 Cc:
2041 Cc:
1986
2042
1987 Sending [PATCH] test ...
2043 Sending [PATCH] test ...
1988
2044
1989 $ cat tmp.mbox
2045 $ cat tmp.mbox
1990 From quux ... ... .. ..:..:.. .... (re)
2046 From quux ... ... .. ..:..:.. .... (re)
1991 Content-Type: text/plain; charset="us-ascii"
2047 Content-Type: text/plain; charset="us-ascii"
1992 MIME-Version: 1.0
2048 MIME-Version: 1.0
1993 Content-Transfer-Encoding: 7bit
2049 Content-Transfer-Encoding: 7bit
1994 Subject: [PATCH] test
2050 Subject: [PATCH] test
1995 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
2051 X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
1996 Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
2052 Message-Id: <8580ff50825a50c8f716.315532860@*> (glob)
1997 User-Agent: Mercurial-patchbomb/* (glob)
2053 User-Agent: Mercurial-patchbomb/* (glob)
1998 Date: Tue, 01 Jan 1980 00:01:00 +0000
2054 Date: Tue, 01 Jan 1980 00:01:00 +0000
1999 From: quux
2055 From: quux
2000 To: bar@xn--nicode-2ya.com
2056 To: bar@xn--nicode-2ya.com
2001
2057
2002 # HG changeset patch
2058 # HG changeset patch
2003 # User test
2059 # User test
2004 # Date 1 0
2060 # Date 1 0
2005 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2061 # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
2006 # Parent 0000000000000000000000000000000000000000
2062 # Parent 0000000000000000000000000000000000000000
2007 a
2063 a
2008
2064
2009 diff -r 000000000000 -r 8580ff50825a a
2065 diff -r 000000000000 -r 8580ff50825a a
2010 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2066 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2011 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2067 +++ b/a Thu Jan 01 00:00:01 1970 +0000
2012 @@ -0,0 +1,1 @@
2068 @@ -0,0 +1,1 @@
2013 +a
2069 +a
2014
2070
2015
2071
2016
2072
2017 test outgoing:
2073 test outgoing:
2018 $ hg up 1
2074 $ hg up 1
2019 0 files updated, 0 files merged, 6 files removed, 0 files unresolved
2075 0 files updated, 0 files merged, 6 files removed, 0 files unresolved
2020
2076
2021 $ hg branch test
2077 $ hg branch test
2022 marked working directory as branch test
2078 marked working directory as branch test
2023 (branches are permanent and global, did you want a bookmark?)
2079 (branches are permanent and global, did you want a bookmark?)
2024
2080
2025 $ echo d > d
2081 $ echo d > d
2026 $ hg add d
2082 $ hg add d
2027 $ hg ci -md -d '4 0'
2083 $ hg ci -md -d '4 0'
2028 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t
2084 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t
2029 comparing with ../t
2085 comparing with ../t
2030 searching for changes
2086 searching for changes
2031 From [test]: test
2087 From [test]: test
2032 This patch series consists of 8 patches.
2088 This patch series consists of 8 patches.
2033
2089
2034
2090
2035 Write the introductory message for the patch series.
2091 Write the introductory message for the patch series.
2036
2092
2037 Cc:
2093 Cc:
2038
2094
2039 Displaying [PATCH 0 of 8] test ...
2095 Displaying [PATCH 0 of 8] test ...
2040 Content-Type: text/plain; charset="us-ascii"
2096 Content-Type: text/plain; charset="us-ascii"
2041 MIME-Version: 1.0
2097 MIME-Version: 1.0
2042 Content-Transfer-Encoding: 7bit
2098 Content-Transfer-Encoding: 7bit
2043 Subject: [PATCH 0 of 8] test
2099 Subject: [PATCH 0 of 8] test
2044 Message-Id: <patchbomb.315532860@*> (glob)
2100 Message-Id: <patchbomb.315532860@*> (glob)
2045 User-Agent: Mercurial-patchbomb/* (glob)
2101 User-Agent: Mercurial-patchbomb/* (glob)
2046 Date: Tue, 01 Jan 1980 00:01:00 +0000
2102 Date: Tue, 01 Jan 1980 00:01:00 +0000
2047 From: test
2103 From: test
2048 To: foo
2104 To: foo
2049
2105
2050
2106
2051 Displaying [PATCH 1 of 8] c ...
2107 Displaying [PATCH 1 of 8] c ...
2052 Content-Type: text/plain; charset="us-ascii"
2108 Content-Type: text/plain; charset="us-ascii"
2053 MIME-Version: 1.0
2109 MIME-Version: 1.0
2054 Content-Transfer-Encoding: 7bit
2110 Content-Transfer-Encoding: 7bit
2055 Subject: [PATCH 1 of 8] c
2111 Subject: [PATCH 1 of 8] c
2056 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2112 X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f
2057 Message-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2113 Message-Id: <ff2c9fa2018b15fa74b3.315532861@*> (glob)
2058 In-Reply-To: <patchbomb.315532860@*> (glob)
2114 In-Reply-To: <patchbomb.315532860@*> (glob)
2059 References: <patchbomb.315532860@*> (glob)
2115 References: <patchbomb.315532860@*> (glob)
2060 User-Agent: Mercurial-patchbomb/* (glob)
2116 User-Agent: Mercurial-patchbomb/* (glob)
2061 Date: Tue, 01 Jan 1980 00:01:01 +0000
2117 Date: Tue, 01 Jan 1980 00:01:01 +0000
2062 From: test
2118 From: test
2063 To: foo
2119 To: foo
2064
2120
2065 # HG changeset patch
2121 # HG changeset patch
2066 # User test
2122 # User test
2067 # Date 3 0
2123 # Date 3 0
2068 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2124 # Node ID ff2c9fa2018b15fa74b33363bda9527323e2a99f
2069 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2125 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2070 c
2126 c
2071
2127
2072 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2128 diff -r 97d72e5f12c7 -r ff2c9fa2018b c
2073 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2129 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2074 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2130 +++ b/c Thu Jan 01 00:00:03 1970 +0000
2075 @@ -0,0 +1,1 @@
2131 @@ -0,0 +1,1 @@
2076 +c
2132 +c
2077
2133
2078 Displaying [PATCH 2 of 8] utf-8 content ...
2134 Displaying [PATCH 2 of 8] utf-8 content ...
2079 Content-Type: text/plain; charset="us-ascii"
2135 Content-Type: text/plain; charset="us-ascii"
2080 MIME-Version: 1.0
2136 MIME-Version: 1.0
2081 Content-Transfer-Encoding: 8bit
2137 Content-Transfer-Encoding: 8bit
2082 Subject: [PATCH 2 of 8] utf-8 content
2138 Subject: [PATCH 2 of 8] utf-8 content
2083 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
2139 X-Mercurial-Node: 909a00e13e9d78b575aeee23dddbada46d5a143f
2084 Message-Id: <909a00e13e9d78b575ae.315532862@*> (glob)
2140 Message-Id: <909a00e13e9d78b575ae.315532862@*> (glob)
2085 In-Reply-To: <patchbomb.315532860@*> (glob)
2141 In-Reply-To: <patchbomb.315532860@*> (glob)
2086 References: <patchbomb.315532860@*> (glob)
2142 References: <patchbomb.315532860@*> (glob)
2087 User-Agent: Mercurial-patchbomb/* (glob)
2143 User-Agent: Mercurial-patchbomb/* (glob)
2088 Date: Tue, 01 Jan 1980 00:01:02 +0000
2144 Date: Tue, 01 Jan 1980 00:01:02 +0000
2089 From: test
2145 From: test
2090 To: foo
2146 To: foo
2091
2147
2092 # HG changeset patch
2148 # HG changeset patch
2093 # User test
2149 # User test
2094 # Date 4 0
2150 # Date 4 0
2095 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
2151 # Node ID 909a00e13e9d78b575aeee23dddbada46d5a143f
2096 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
2152 # Parent ff2c9fa2018b15fa74b33363bda9527323e2a99f
2097 utf-8 content
2153 utf-8 content
2098
2154
2099 diff -r ff2c9fa2018b -r 909a00e13e9d description
2155 diff -r ff2c9fa2018b -r 909a00e13e9d description
2100 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2156 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2101 +++ b/description Thu Jan 01 00:00:04 1970 +0000
2157 +++ b/description Thu Jan 01 00:00:04 1970 +0000
2102 @@ -0,0 +1,3 @@
2158 @@ -0,0 +1,3 @@
2103 +a multiline
2159 +a multiline
2104 +
2160 +
2105 +description
2161 +description
2106 diff -r ff2c9fa2018b -r 909a00e13e9d utf
2162 diff -r ff2c9fa2018b -r 909a00e13e9d utf
2107 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2163 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2108 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
2164 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
2109 @@ -0,0 +1,1 @@
2165 @@ -0,0 +1,1 @@
2110 +h\xc3\xb6mma! (esc)
2166 +h\xc3\xb6mma! (esc)
2111
2167
2112 Displaying [PATCH 3 of 8] long line ...
2168 Displaying [PATCH 3 of 8] long line ...
2113 Content-Type: text/plain; charset="us-ascii"
2169 Content-Type: text/plain; charset="us-ascii"
2114 MIME-Version: 1.0
2170 MIME-Version: 1.0
2115 Content-Transfer-Encoding: quoted-printable
2171 Content-Transfer-Encoding: quoted-printable
2116 Subject: [PATCH 3 of 8] long line
2172 Subject: [PATCH 3 of 8] long line
2117 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2173 X-Mercurial-Node: a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2118 Message-Id: <a2ea8fc83dd8b93cfd86.315532863@*> (glob)
2174 Message-Id: <a2ea8fc83dd8b93cfd86.315532863@*> (glob)
2119 In-Reply-To: <patchbomb.315532860@*> (glob)
2175 In-Reply-To: <patchbomb.315532860@*> (glob)
2120 References: <patchbomb.315532860@*> (glob)
2176 References: <patchbomb.315532860@*> (glob)
2121 User-Agent: Mercurial-patchbomb/* (glob)
2177 User-Agent: Mercurial-patchbomb/* (glob)
2122 Date: Tue, 01 Jan 1980 00:01:03 +0000
2178 Date: Tue, 01 Jan 1980 00:01:03 +0000
2123 From: test
2179 From: test
2124 To: foo
2180 To: foo
2125
2181
2126 # HG changeset patch
2182 # HG changeset patch
2127 # User test
2183 # User test
2128 # Date 4 0
2184 # Date 4 0
2129 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2185 # Node ID a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2130 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
2186 # Parent 909a00e13e9d78b575aeee23dddbada46d5a143f
2131 long line
2187 long line
2132
2188
2133 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
2189 diff -r 909a00e13e9d -r a2ea8fc83dd8 long
2134 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2190 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2135 +++ b/long Thu Jan 01 00:00:04 1970 +0000
2191 +++ b/long Thu Jan 01 00:00:04 1970 +0000
2136 @@ -0,0 +1,4 @@
2192 @@ -0,0 +1,4 @@
2137 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2193 +xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2138 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2194 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2139 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2195 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2140 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2196 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2141 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2197 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2142 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2198 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2143 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2199 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2144 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2200 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2145 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2201 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2146 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2202 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2147 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2203 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2148 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2204 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2149 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2205 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2150 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2206 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2151 +foo
2207 +foo
2152 +
2208 +
2153 +bar
2209 +bar
2154
2210
2155 Displaying [PATCH 4 of 8] isolatin 8-bit encoding ...
2211 Displaying [PATCH 4 of 8] isolatin 8-bit encoding ...
2156 Content-Type: text/plain; charset="us-ascii"
2212 Content-Type: text/plain; charset="us-ascii"
2157 MIME-Version: 1.0
2213 MIME-Version: 1.0
2158 Content-Transfer-Encoding: 8bit
2214 Content-Transfer-Encoding: 8bit
2159 Subject: [PATCH 4 of 8] isolatin 8-bit encoding
2215 Subject: [PATCH 4 of 8] isolatin 8-bit encoding
2160 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2216 X-Mercurial-Node: 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2161 Message-Id: <240fb913fc1b7ff15ddb.315532864@*> (glob)
2217 Message-Id: <240fb913fc1b7ff15ddb.315532864@*> (glob)
2162 In-Reply-To: <patchbomb.315532860@*> (glob)
2218 In-Reply-To: <patchbomb.315532860@*> (glob)
2163 References: <patchbomb.315532860@*> (glob)
2219 References: <patchbomb.315532860@*> (glob)
2164 User-Agent: Mercurial-patchbomb/* (glob)
2220 User-Agent: Mercurial-patchbomb/* (glob)
2165 Date: Tue, 01 Jan 1980 00:01:04 +0000
2221 Date: Tue, 01 Jan 1980 00:01:04 +0000
2166 From: test
2222 From: test
2167 To: foo
2223 To: foo
2168
2224
2169 # HG changeset patch
2225 # HG changeset patch
2170 # User test
2226 # User test
2171 # Date 5 0
2227 # Date 5 0
2172 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2228 # Node ID 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2173 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2229 # Parent a2ea8fc83dd8b93cfd86ac97b28287204ab806e1
2174 isolatin 8-bit encoding
2230 isolatin 8-bit encoding
2175
2231
2176 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
2232 diff -r a2ea8fc83dd8 -r 240fb913fc1b isolatin
2177 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2233 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2178 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
2234 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
2179 @@ -0,0 +1,1 @@
2235 @@ -0,0 +1,1 @@
2180 +h\xf6mma! (esc)
2236 +h\xf6mma! (esc)
2181
2237
2182 Displaying [PATCH 5 of 8] Added tag zero, zero.foo for changeset 8580ff50825a ...
2238 Displaying [PATCH 5 of 8] Added tag zero, zero.foo for changeset 8580ff50825a ...
2183 Content-Type: text/plain; charset="us-ascii"
2239 Content-Type: text/plain; charset="us-ascii"
2184 MIME-Version: 1.0
2240 MIME-Version: 1.0
2185 Content-Transfer-Encoding: 7bit
2241 Content-Transfer-Encoding: 7bit
2186 Subject: [PATCH 5 of 8] Added tag zero, zero.foo for changeset 8580ff50825a
2242 Subject: [PATCH 5 of 8] Added tag zero, zero.foo for changeset 8580ff50825a
2187 X-Mercurial-Node: 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2243 X-Mercurial-Node: 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2188 Message-Id: <5d5ef15dfe5e7bd3a4ee.315532865@*> (glob)
2244 Message-Id: <5d5ef15dfe5e7bd3a4ee.315532865@*> (glob)
2189 In-Reply-To: <patchbomb.315532860@*> (glob)
2245 In-Reply-To: <patchbomb.315532860@*> (glob)
2190 References: <patchbomb.315532860@*> (glob)
2246 References: <patchbomb.315532860@*> (glob)
2191 User-Agent: Mercurial-patchbomb/* (glob)
2247 User-Agent: Mercurial-patchbomb/* (glob)
2192 Date: Tue, 01 Jan 1980 00:01:05 +0000
2248 Date: Tue, 01 Jan 1980 00:01:05 +0000
2193 From: test
2249 From: test
2194 To: foo
2250 To: foo
2195
2251
2196 # HG changeset patch
2252 # HG changeset patch
2197 # User test
2253 # User test
2198 # Date 0 0
2254 # Date 0 0
2199 # Node ID 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2255 # Node ID 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2200 # Parent 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2256 # Parent 240fb913fc1b7ff15ddb9f33e73d82bf5277c720
2201 Added tag zero, zero.foo for changeset 8580ff50825a
2257 Added tag zero, zero.foo for changeset 8580ff50825a
2202
2258
2203 diff -r 240fb913fc1b -r 5d5ef15dfe5e .hgtags
2259 diff -r 240fb913fc1b -r 5d5ef15dfe5e .hgtags
2204 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2260 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2205 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2261 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2206 @@ -0,0 +1,2 @@
2262 @@ -0,0 +1,2 @@
2207 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2263 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2208 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2264 +8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2209
2265
2210 Displaying [PATCH 6 of 8] Added tag one, one.patch for changeset 97d72e5f12c7 ...
2266 Displaying [PATCH 6 of 8] Added tag one, one.patch for changeset 97d72e5f12c7 ...
2211 Content-Type: text/plain; charset="us-ascii"
2267 Content-Type: text/plain; charset="us-ascii"
2212 MIME-Version: 1.0
2268 MIME-Version: 1.0
2213 Content-Transfer-Encoding: 7bit
2269 Content-Transfer-Encoding: 7bit
2214 Subject: [PATCH 6 of 8] Added tag one, one.patch for changeset 97d72e5f12c7
2270 Subject: [PATCH 6 of 8] Added tag one, one.patch for changeset 97d72e5f12c7
2215 X-Mercurial-Node: 045ca29b1ea20e4940411e695e20e521f2f0f98e
2271 X-Mercurial-Node: 045ca29b1ea20e4940411e695e20e521f2f0f98e
2216 Message-Id: <045ca29b1ea20e494041.315532866@*> (glob)
2272 Message-Id: <045ca29b1ea20e494041.315532866@*> (glob)
2217 In-Reply-To: <patchbomb.315532860@*> (glob)
2273 In-Reply-To: <patchbomb.315532860@*> (glob)
2218 References: <patchbomb.315532860@*> (glob)
2274 References: <patchbomb.315532860@*> (glob)
2219 User-Agent: Mercurial-patchbomb/* (glob)
2275 User-Agent: Mercurial-patchbomb/* (glob)
2220 Date: Tue, 01 Jan 1980 00:01:06 +0000
2276 Date: Tue, 01 Jan 1980 00:01:06 +0000
2221 From: test
2277 From: test
2222 To: foo
2278 To: foo
2223
2279
2224 # HG changeset patch
2280 # HG changeset patch
2225 # User test
2281 # User test
2226 # Date 0 0
2282 # Date 0 0
2227 # Node ID 045ca29b1ea20e4940411e695e20e521f2f0f98e
2283 # Node ID 045ca29b1ea20e4940411e695e20e521f2f0f98e
2228 # Parent 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2284 # Parent 5d5ef15dfe5e7bd3a4ee154b5fff76c7945ec433
2229 Added tag one, one.patch for changeset 97d72e5f12c7
2285 Added tag one, one.patch for changeset 97d72e5f12c7
2230
2286
2231 diff -r 5d5ef15dfe5e -r 045ca29b1ea2 .hgtags
2287 diff -r 5d5ef15dfe5e -r 045ca29b1ea2 .hgtags
2232 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
2288 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
2233 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2289 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2234 @@ -1,2 +1,4 @@
2290 @@ -1,2 +1,4 @@
2235 8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2291 8580ff50825a50c8f716709acdf8de0deddcd6ab zero
2236 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2292 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2237 +97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
2293 +97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
2238 +97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
2294 +97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
2239
2295
2240 Displaying [PATCH 7 of 8] Added tag two, two.diff for changeset ff2c9fa2018b ...
2296 Displaying [PATCH 7 of 8] Added tag two, two.diff for changeset ff2c9fa2018b ...
2241 Content-Type: text/plain; charset="us-ascii"
2297 Content-Type: text/plain; charset="us-ascii"
2242 MIME-Version: 1.0
2298 MIME-Version: 1.0
2243 Content-Transfer-Encoding: 7bit
2299 Content-Transfer-Encoding: 7bit
2244 Subject: [PATCH 7 of 8] Added tag two, two.diff for changeset ff2c9fa2018b
2300 Subject: [PATCH 7 of 8] Added tag two, two.diff for changeset ff2c9fa2018b
2245 X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
2301 X-Mercurial-Node: 7aead2484924c445ad8ce2613df91f52f9e502ed
2246 Message-Id: <7aead2484924c445ad8c.315532867@*> (glob)
2302 Message-Id: <7aead2484924c445ad8c.315532867@*> (glob)
2247 In-Reply-To: <patchbomb.315532860@*> (glob)
2303 In-Reply-To: <patchbomb.315532860@*> (glob)
2248 References: <patchbomb.315532860@*> (glob)
2304 References: <patchbomb.315532860@*> (glob)
2249 User-Agent: Mercurial-patchbomb/* (glob)
2305 User-Agent: Mercurial-patchbomb/* (glob)
2250 Date: Tue, 01 Jan 1980 00:01:07 +0000
2306 Date: Tue, 01 Jan 1980 00:01:07 +0000
2251 From: test
2307 From: test
2252 To: foo
2308 To: foo
2253
2309
2254 # HG changeset patch
2310 # HG changeset patch
2255 # User test
2311 # User test
2256 # Date 0 0
2312 # Date 0 0
2257 # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
2313 # Node ID 7aead2484924c445ad8ce2613df91f52f9e502ed
2258 # Parent 045ca29b1ea20e4940411e695e20e521f2f0f98e
2314 # Parent 045ca29b1ea20e4940411e695e20e521f2f0f98e
2259 Added tag two, two.diff for changeset ff2c9fa2018b
2315 Added tag two, two.diff for changeset ff2c9fa2018b
2260
2316
2261 diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
2317 diff -r 045ca29b1ea2 -r 7aead2484924 .hgtags
2262 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
2318 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
2263 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2319 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
2264 @@ -2,3 +2,5 @@
2320 @@ -2,3 +2,5 @@
2265 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2321 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
2266 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
2322 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
2267 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
2323 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
2268 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
2324 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
2269 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
2325 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
2270
2326
2271 Displaying [PATCH 8 of 8] d ...
2327 Displaying [PATCH 8 of 8] d ...
2272 Content-Type: text/plain; charset="us-ascii"
2328 Content-Type: text/plain; charset="us-ascii"
2273 MIME-Version: 1.0
2329 MIME-Version: 1.0
2274 Content-Transfer-Encoding: 7bit
2330 Content-Transfer-Encoding: 7bit
2275 Subject: [PATCH 8 of 8] d
2331 Subject: [PATCH 8 of 8] d
2276 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2332 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2277 Message-Id: <2f9fa9b998c5fe3ac2bd.315532868@*> (glob)
2333 Message-Id: <2f9fa9b998c5fe3ac2bd.315532868@*> (glob)
2278 In-Reply-To: <patchbomb.315532860@*> (glob)
2334 In-Reply-To: <patchbomb.315532860@*> (glob)
2279 References: <patchbomb.315532860@*> (glob)
2335 References: <patchbomb.315532860@*> (glob)
2280 User-Agent: Mercurial-patchbomb/* (glob)
2336 User-Agent: Mercurial-patchbomb/* (glob)
2281 Date: Tue, 01 Jan 1980 00:01:08 +0000
2337 Date: Tue, 01 Jan 1980 00:01:08 +0000
2282 From: test
2338 From: test
2283 To: foo
2339 To: foo
2284
2340
2285 # HG changeset patch
2341 # HG changeset patch
2286 # User test
2342 # User test
2287 # Date 4 0
2343 # Date 4 0
2288 # Branch test
2344 # Branch test
2289 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2345 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2290 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2346 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2291 d
2347 d
2292
2348
2293 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2349 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2294 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2350 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2295 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2351 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2296 @@ -0,0 +1,1 @@
2352 @@ -0,0 +1,1 @@
2297 +d
2353 +d
2298
2354
2299
2355
2300 dest#branch URIs:
2356 dest#branch URIs:
2301 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
2357 $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
2302 comparing with ../t
2358 comparing with ../t
2303 searching for changes
2359 searching for changes
2304 From [test]: test
2360 From [test]: test
2305 This patch series consists of 1 patches.
2361 This patch series consists of 1 patches.
2306
2362
2307 Cc:
2363 Cc:
2308
2364
2309 Displaying [PATCH] test ...
2365 Displaying [PATCH] test ...
2310 Content-Type: text/plain; charset="us-ascii"
2366 Content-Type: text/plain; charset="us-ascii"
2311 MIME-Version: 1.0
2367 MIME-Version: 1.0
2312 Content-Transfer-Encoding: 7bit
2368 Content-Transfer-Encoding: 7bit
2313 Subject: [PATCH] test
2369 Subject: [PATCH] test
2314 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2370 X-Mercurial-Node: 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2315 Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@*> (glob)
2371 Message-Id: <2f9fa9b998c5fe3ac2bd.315532860@*> (glob)
2316 User-Agent: Mercurial-patchbomb/* (glob)
2372 User-Agent: Mercurial-patchbomb/* (glob)
2317 Date: Tue, 01 Jan 1980 00:01:00 +0000
2373 Date: Tue, 01 Jan 1980 00:01:00 +0000
2318 From: test
2374 From: test
2319 To: foo
2375 To: foo
2320
2376
2321 # HG changeset patch
2377 # HG changeset patch
2322 # User test
2378 # User test
2323 # Date 4 0
2379 # Date 4 0
2324 # Branch test
2380 # Branch test
2325 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2381 # Node ID 2f9fa9b998c5fe3ac2bd9a2b14bfcbeecbc7c268
2326 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2382 # Parent 97d72e5f12c7e84f85064aa72e5a297142c36ed9
2327 d
2383 d
2328
2384
2329 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2385 diff -r 97d72e5f12c7 -r 2f9fa9b998c5 d
2330 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2386 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2331 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2387 +++ b/d Thu Jan 01 00:00:04 1970 +0000
2332 @@ -0,0 +1,1 @@
2388 @@ -0,0 +1,1 @@
2333 +d
2389 +d
2334
2390
General Comments 0
You need to be logged in to leave comments. Login now