Show More
@@ -751,6 +751,7 b' def email(ui, repo, *revs, **opts):' | |||
|
751 | 751 | sender = mail.addressencode(ui, sender, _charsets, opts.get('test')) |
|
752 | 752 | sendmail = None |
|
753 | 753 | firstpatch = None |
|
754 | progress = ui.makeprogress(_('sending'), unit=_('emails'), total=len(msgs)) | |
|
754 | 755 | for i, (m, subj, ds) in enumerate(msgs): |
|
755 | 756 | try: |
|
756 | 757 | m['Message-Id'] = genmsgid(m['X-Mercurial-Node']) |
@@ -791,8 +792,7 b' def email(ui, repo, *revs, **opts):' | |||
|
791 | 792 | if not sendmail: |
|
792 | 793 | sendmail = mail.connect(ui, mbox=mbox) |
|
793 | 794 | ui.status(_('sending '), subj, ' ...\n') |
|
794 |
|
|
|
795 | unit=_('emails')) | |
|
795 | progress.update(i, item=subj) | |
|
796 | 796 | if not mbox: |
|
797 | 797 | # Exim does not remove the Bcc field |
|
798 | 798 | del m['Bcc'] |
@@ -801,4 +801,4 b' def email(ui, repo, *revs, **opts):' | |||
|
801 | 801 | generator.flatten(m, 0) |
|
802 | 802 | sendmail(sender_addr, to + bcc + cc, fp.getvalue()) |
|
803 | 803 | |
|
804 | ui.progress(_('sending'), None) | |
|
804 | progress.complete() |
General Comments 0
You need to be logged in to leave comments.
Login now