Show More
@@ -278,10 +278,11 b' def makepatch(ui, repo, rev, patchlines,' | |||||
278 | seqno=idx, total=total) |
|
278 | seqno=idx, total=total) | |
279 | else: |
|
279 | else: | |
280 | patchname = cmdutil.makefilename(repo[node], '%b.patch') |
|
280 | patchname = cmdutil.makefilename(repo[node], '%b.patch') | |
281 | disposition = 'inline' |
|
281 | disposition = r'inline' | |
282 | if opts.get('attach'): |
|
282 | if opts.get('attach'): | |
283 | disposition = 'attachment' |
|
283 | disposition = r'attachment' | |
284 |
p['Content-Disposition'] = |
|
284 | p[r'Content-Disposition'] = ( | |
|
285 | disposition + r'; filename=' + encoding.strfromlocal(patchname)) | |||
285 | msg.attach(p) |
|
286 | msg.attach(p) | |
286 | else: |
|
287 | else: | |
287 | msg = mail.mimetextpatch(body, display=opts.get('test')) |
|
288 | msg = mail.mimetextpatch(body, display=opts.get('test')) |
General Comments 0
You need to be logged in to leave comments.
Login now