Show More
@@ -332,6 +332,8 b' def patchbomb(ui, repo, *revs, **opts):' | |||||
332 | msg.attach(email.MIMEText.MIMEText(body, 'plain')) |
|
332 | msg.attach(email.MIMEText.MIMEText(body, 'plain')) | |
333 | datapart = email.MIMEBase.MIMEBase('application', 'x-mercurial-bundle') |
|
333 | datapart = email.MIMEBase.MIMEBase('application', 'x-mercurial-bundle') | |
334 | datapart.set_payload(bundle) |
|
334 | datapart.set_payload(bundle) | |
|
335 | datapart.add_header('Content-Disposition', 'attachment', | |||
|
336 | filename='bundle.hg') | |||
335 | email.Encoders.encode_base64(datapart) |
|
337 | email.Encoders.encode_base64(datapart) | |
336 | msg.attach(datapart) |
|
338 | msg.attach(datapart) | |
337 | msg['Subject'] = subj |
|
339 | msg['Subject'] = subj |
General Comments 0
You need to be logged in to leave comments.
Login now