Show More
@@ -780,6 +780,16 def email(ui, repo, *revs, **opts): | |||||
780 | m['Bcc'] = ', '.join(bcc) |
|
780 | m['Bcc'] = ', '.join(bcc) | |
781 | if replyto: |
|
781 | if replyto: | |
782 | m['Reply-To'] = ', '.join(replyto) |
|
782 | m['Reply-To'] = ', '.join(replyto) | |
|
783 | # Fix up all headers to be native strings. | |||
|
784 | # TODO(durin42): this should probably be cleaned up above in the future. | |||
|
785 | if pycompat.ispy3: | |||
|
786 | for hdr, val in list(m.items()): | |||
|
787 | if isinstance(hdr, bytes): | |||
|
788 | del m[hdr] | |||
|
789 | hdr = pycompat.strurl(hdr) | |||
|
790 | if isinstance(val, bytes): | |||
|
791 | val = pycompat.strurl(val) | |||
|
792 | m[hdr] = val | |||
783 | if opts.get('test'): |
|
793 | if opts.get('test'): | |
784 | ui.status(_('displaying '), subj, ' ...\n') |
|
794 | ui.status(_('displaying '), subj, ' ...\n') | |
785 | ui.pager('email') |
|
795 | ui.pager('email') |
General Comments 0
You need to be logged in to leave comments.
Login now