[PATCH 2 of 3] Patchbomb: Allow user to specify In-Reply-To for the first email

Hollis Blanchard hollisb at us.ibm.com
Thu Nov 1 18:03:12 CDT 2007


# HG changeset patch
# User Hollis Blanchard <hollisb at us.ibm.com>
# Date 1193958006 18000
# Node ID 59b6acb184bbdb5985922aa5143815e03a13aa42
# Parent  6b06bbc007a19c6076e0052c6bca79f6bde969a5

Signed-off-by: Hollis Blanchard <hollisb at us.ibm.com>
---
Changes from v1: Don't output empty In-Reply-To headers.

1 file changed, 3 insertions(+)
hgext/patchbomb.py |    3 +++


diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -375,6 +375,8 @@ def patchbomb(ui, repo, *revs, **opts):
         if parent:
             m['In-Reply-To'] = parent
         else:
+            if opts['replyto']:
+                m['In-Reply-To'] = opts['replyto']
             parent = m['Message-Id']
         m['Date'] = util.datestr(date=start_time,
                 format="%a, %d %b %Y %H:%M:%S", timezone=True)
@@ -434,6 +436,7 @@ cmdtable = {
           ('b', 'bundle', None,
            _('send changes not in target as a binary bundle')),
           ('r', 'rev', [], _('a revision to send')),
+          ('', 'replyto', '', _('send emails in reply to this Message-ID')),
           ('s', 'subject', '',
            _('subject of first message (intro or single patch)')),
           ('t', 'to', [], _('email addresses of recipients')),


More information about the Mercurial-devel mailing list