hgext/patchbomb.py
changeset 8025 1280934dd2dd
parent 7997 8eb9f495e150
child 8076 5ec526c1a32f
--- a/hgext/patchbomb.py	Wed Apr 08 14:20:57 2009 +0200
+++ b/hgext/patchbomb.py	Wed Apr 08 19:32:16 2009 +0200
@@ -384,7 +384,7 @@
 
     ui.write('\n')
 
-    parent = None
+    parent = opts.get('in_reply_to') or None
 
     sender_addr = email.Utils.parseaddr(sender)[1]
     sender = mail.addressencode(ui, sender, _charsets, opts.get('test'))
@@ -458,6 +458,8 @@
            _('write messages to mbox file instead of sending them')),
           ('s', 'subject', '',
            _('subject of first message (intro or single patch)')),
+          ('', 'in-reply-to', '',
+           _('"message identifier to reply to"')),
           ('t', 'to', [], _('email addresses of recipients')),
          ]