Add --git support to hg email
authorBrendan Cully <brendan@kublai.com>
Wed, 30 Aug 2006 10:17:35 -0700
changeset 3030 5a17423f88d7
parent 3029 d161e6f39557
child 3031 eba7c78c80fe
Add --git support to hg email
hgext/patchbomb.py
--- a/hgext/patchbomb.py	Wed Aug 30 10:08:56 2006 -0700
+++ b/hgext/patchbomb.py	Wed Aug 30 10:17:35 2006 -0700
@@ -205,7 +205,8 @@
 
     commands.export(ui, repo, *revs, **{'output': exportee(patches),
                                         'switch_parent': False,
-                                        'text': None})
+                                        'text': None,
+                                        'git': opts.get('git')})
 
     jumbo = []
     msgs = []
@@ -322,6 +323,7 @@
       ('', 'bcc', [], 'email addresses of blind copy recipients'),
       ('c', 'cc', [], 'email addresses of copy recipients'),
       ('d', 'diffstat', None, 'add diffstat output to messages'),
+      ('g', 'git', None, _('use git extended diff format')),
       ('f', 'from', '', 'email address of sender'),
       ('', 'plain', None, 'omit hg patch header'),
       ('n', 'test', None, 'print messages that would be sent'),