Mercurial > hg
comparison hgext/patchbomb.py @ 28474:00e6e0d0bfeb
patchbomb: specify unit for ui.progress when sending emails
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 11 Mar 2016 22:30:43 +0800 |
parents | 21524ae331b7 |
children | 86db5cb55d46 |
comparison
equal
deleted
inserted
replaced
28473:61d1a3cc6e1c | 28474:00e6e0d0bfeb |
---|---|
714 try: | 714 try: |
715 sendmail = mail.connect(ui, mbox=mbox) | 715 sendmail = mail.connect(ui, mbox=mbox) |
716 finally: | 716 finally: |
717 ui.setconfig('smtp', 'verifycert', verifycert, 'patchbomb') | 717 ui.setconfig('smtp', 'verifycert', verifycert, 'patchbomb') |
718 ui.status(_('sending '), subj, ' ...\n') | 718 ui.status(_('sending '), subj, ' ...\n') |
719 ui.progress(_('sending'), i, item=subj, total=len(msgs)) | 719 ui.progress(_('sending'), i, item=subj, total=len(msgs), |
720 unit=_('emails')) | |
720 if not mbox: | 721 if not mbox: |
721 # Exim does not remove the Bcc field | 722 # Exim does not remove the Bcc field |
722 del m['Bcc'] | 723 del m['Bcc'] |
723 fp = cStringIO.StringIO() | 724 fp = cStringIO.StringIO() |
724 generator = emailmod.Generator.Generator(fp, mangle_from_=False) | 725 generator = emailmod.Generator.Generator(fp, mangle_from_=False) |