##// END OF EJS Templates
patchbomb: Support initial in-reply-to header...
Henrik Stuart <henrik.stuart at edlund.dk> -
r8025:1280934d default
parent child Browse files
Show More
@@ -384,7 +384,7 b' def patchbomb(ui, repo, *revs, **opts):'
384
384
385 ui.write('\n')
385 ui.write('\n')
386
386
387 parent = None
387 parent = opts.get('in_reply_to') or None
388
388
389 sender_addr = email.Utils.parseaddr(sender)[1]
389 sender_addr = email.Utils.parseaddr(sender)[1]
390 sender = mail.addressencode(ui, sender, _charsets, opts.get('test'))
390 sender = mail.addressencode(ui, sender, _charsets, opts.get('test'))
@@ -458,6 +458,8 b' emailopts = ['
458 _('write messages to mbox file instead of sending them')),
458 _('write messages to mbox file instead of sending them')),
459 ('s', 'subject', '',
459 ('s', 'subject', '',
460 _('subject of first message (intro or single patch)')),
460 _('subject of first message (intro or single patch)')),
461 ('', 'in-reply-to', '',
462 _('"message identifier to reply to"')),
461 ('t', 'to', [], _('email addresses of recipients')),
463 ('t', 'to', [], _('email addresses of recipients')),
462 ]
464 ]
463
465
@@ -117,3 +117,6 b' echo "% test inline for multiple named/u'
117 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i 0:1 | \
117 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar -s test -i 0:1 | \
118 fixheaders
118 fixheaders
119
119
120 echo "% test inreplyto"
121 hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz tip | \
122 fixheaders
@@ -837,3 +837,38 b' diff -r 8580ff50825a -r 97d72e5f12c7 b'
837 +b
837 +b
838
838
839 --===
839 --===
840 % test inreplyto
841 This patch series consists of 1 patches.
842
843
844 Displaying [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b ...
845 Content-Type: text/plain; charset="us-ascii"
846 MIME-Version: 1.0
847 Content-Transfer-Encoding: 7bit
848 Subject: [PATCH] Added tag two, two.diff for changeset ff2c9fa2018b
849 X-Mercurial-Node: 2c502b2db30e1ddd5e4ecabd68d9002f6c77a5a3
850 Message-Id: <2c502b2db30e1ddd5e4e.60@
851 In-Reply-To: baz
852 References: baz
853 Date: Thu, 01 Jan 1970 00:01:00 +0000
854 From: quux
855 To: foo
856 Cc: bar
857
858 # HG changeset patch
859 # User test
860 # Date 0 0
861 # Node ID 2c502b2db30e1ddd5e4ecabd68d9002f6c77a5a3
862 # Parent 91c0d1bdb4bc9cfd3b38a53a5ec53e9ae412a275
863 Added tag two, two.diff for changeset ff2c9fa2018b
864
865 diff -r 91c0d1bdb4bc -r 2c502b2db30e .hgtags
866 --- a/.hgtags Thu Jan 01 00:00:00 1970 +0000
867 +++ b/.hgtags Thu Jan 01 00:00:00 1970 +0000
868 @@ -2,3 +2,5 @@
869 8580ff50825a50c8f716709acdf8de0deddcd6ab zero.foo
870 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
871 97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
872 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
873 +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
874
General Comments 0
You need to be logged in to leave comments. Login now