Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/patchbomb.py @ 3027:5a17423f88d7
Add --git support to hg email
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Wed, 30 Aug 2006 10:17:35 -0700 |
parents | af71034aac90 |
children | 51b7f792e473 |
comparison
equal
deleted
inserted
replaced
3026:d161e6f39557 | 3027:5a17423f88d7 |
---|---|
203 self.container.append(''.join(self.lines).split('\n')) | 203 self.container.append(''.join(self.lines).split('\n')) |
204 self.lines = [] | 204 self.lines = [] |
205 | 205 |
206 commands.export(ui, repo, *revs, **{'output': exportee(patches), | 206 commands.export(ui, repo, *revs, **{'output': exportee(patches), |
207 'switch_parent': False, | 207 'switch_parent': False, |
208 'text': None}) | 208 'text': None, |
209 'git': opts.get('git')}) | |
209 | 210 |
210 jumbo = [] | 211 jumbo = [] |
211 msgs = [] | 212 msgs = [] |
212 | 213 |
213 ui.write(_('This patch series consists of %d patches.\n\n') % len(patches)) | 214 ui.write(_('This patch series consists of %d patches.\n\n') % len(patches)) |
320 (patchbomb, | 321 (patchbomb, |
321 [('a', 'attach', None, 'send patches as inline attachments'), | 322 [('a', 'attach', None, 'send patches as inline attachments'), |
322 ('', 'bcc', [], 'email addresses of blind copy recipients'), | 323 ('', 'bcc', [], 'email addresses of blind copy recipients'), |
323 ('c', 'cc', [], 'email addresses of copy recipients'), | 324 ('c', 'cc', [], 'email addresses of copy recipients'), |
324 ('d', 'diffstat', None, 'add diffstat output to messages'), | 325 ('d', 'diffstat', None, 'add diffstat output to messages'), |
326 ('g', 'git', None, _('use git extended diff format')), | |
325 ('f', 'from', '', 'email address of sender'), | 327 ('f', 'from', '', 'email address of sender'), |
326 ('', 'plain', None, 'omit hg patch header'), | 328 ('', 'plain', None, 'omit hg patch header'), |
327 ('n', 'test', None, 'print messages that would be sent'), | 329 ('n', 'test', None, 'print messages that would be sent'), |
328 ('m', 'mbox', '', 'write messages to mbox file instead of sending them'), | 330 ('m', 'mbox', '', 'write messages to mbox file instead of sending them'), |
329 ('s', 'subject', '', 'subject of introductory message'), | 331 ('s', 'subject', '', 'subject of introductory message'), |