##// END OF EJS Templates
patchbomb: use native strings when determining attachment disposition...
Augie Fackler -
r39073:2161faf0 default
parent child Browse files
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'] = disposition + '; filename=' + patchname
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