Mercurial > hg
comparison hgext/patchbomb.py @ 8761:0289f384e1e5
Generally replace "file name" with "filename" in help and comments.
author | timeless <timeless@gmail.com> |
---|---|
date | Tue, 09 Jun 2009 09:25:17 -0400 |
parents | 8c7f1afad064 |
children | 2aff285b902f |
comparison
equal
deleted
inserted
replaced
8760:bf17aeafb869 | 8761:0289f384e1e5 |
---|---|
146 msg = email.MIMEMultipart.MIMEMultipart() | 146 msg = email.MIMEMultipart.MIMEMultipart() |
147 if body: | 147 if body: |
148 msg.attach(mail.mimeencode(ui, body, _charsets, opts.get('test'))) | 148 msg.attach(mail.mimeencode(ui, body, _charsets, opts.get('test'))) |
149 p = mail.mimetextpatch('\n'.join(patch), 'x-patch', opts.get('test')) | 149 p = mail.mimetextpatch('\n'.join(patch), 'x-patch', opts.get('test')) |
150 binnode = bin(node) | 150 binnode = bin(node) |
151 # if node is mq patch, it will have patch file name as tag | 151 # if node is mq patch, it will have the patch file's name as a tag |
152 if not patchname: | 152 if not patchname: |
153 patchtags = [t for t in repo.nodetags(binnode) | 153 patchtags = [t for t in repo.nodetags(binnode) |
154 if t.endswith('.patch') or t.endswith('.diff')] | 154 if t.endswith('.patch') or t.endswith('.diff')] |
155 if patchtags: | 155 if patchtags: |
156 patchname = patchtags[0] | 156 patchname = patchtags[0] |
488 ('o', 'outgoing', None, | 488 ('o', 'outgoing', None, |
489 _('send changes not found in the target repository')), | 489 _('send changes not found in the target repository')), |
490 ('b', 'bundle', None, | 490 ('b', 'bundle', None, |
491 _('send changes not in target as a binary bundle')), | 491 _('send changes not in target as a binary bundle')), |
492 ('', 'bundlename', 'bundle', | 492 ('', 'bundlename', 'bundle', |
493 _('file name of the bundle attachment')), | 493 _('name of the bundle attachment file')), |
494 ('r', 'rev', [], _('a revision to send')), | 494 ('r', 'rev', [], _('a revision to send')), |
495 ('', 'force', None, | 495 ('', 'force', None, |
496 _('run even when remote repository is unrelated ' | 496 _('run even when remote repository is unrelated ' |
497 '(with -b/--bundle)')), | 497 '(with -b/--bundle)')), |
498 ('', 'base', [], | 498 ('', 'base', [], |