Show More
@@ -75,6 +75,7 b' from __future__ import absolute_import' | |||||
75 |
|
75 | |||
76 | import email as emailmod |
|
76 | import email as emailmod | |
77 | import email.generator as emailgen |
|
77 | import email.generator as emailgen | |
|
78 | import email.mime.base as emimebase | |||
78 | import email.mime.multipart as emimemultipart |
|
79 | import email.mime.multipart as emimemultipart | |
79 | import email.utils as eutil |
|
80 | import email.utils as eutil | |
80 | import errno |
|
81 | import errno | |
@@ -369,7 +370,7 b' def _getbundlemsgs(repo, sender, bundle,' | |||||
369 | msg = emimemultipart.MIMEMultipart() |
|
370 | msg = emimemultipart.MIMEMultipart() | |
370 | if body: |
|
371 | if body: | |
371 | msg.attach(mail.mimeencode(ui, body, _charsets, opts.get(r'test'))) |
|
372 | msg.attach(mail.mimeencode(ui, body, _charsets, opts.get(r'test'))) | |
372 |
datapart = em |
|
373 | datapart = emimebase.MIMEBase('application', 'x-mercurial-bundle') | |
373 | datapart.set_payload(bundle) |
|
374 | datapart.set_payload(bundle) | |
374 | bundlename = '%s.hg' % opts.get(r'bundlename', 'bundle') |
|
375 | bundlename = '%s.hg' % opts.get(r'bundlename', 'bundle') | |
375 | datapart.add_header('Content-Disposition', 'attachment', |
|
376 | datapart.add_header('Content-Disposition', 'attachment', |
General Comments 0
You need to be logged in to leave comments.
Login now