patchbomb: specify unit for ui.progress when sending emails
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 11 Mar 2016 22:30:43 +0800
changeset 28474 00e6e0d0bfeb
parent 28473 61d1a3cc6e1c
child 28475 ae522fb493d4
patchbomb: specify unit for ui.progress when sending emails
hgext/patchbomb.py
--- a/hgext/patchbomb.py	Fri Mar 11 22:28:27 2016 +0800
+++ b/hgext/patchbomb.py	Fri Mar 11 22:30:43 2016 +0800
@@ -716,7 +716,8 @@
                 finally:
                     ui.setconfig('smtp', 'verifycert', verifycert, 'patchbomb')
             ui.status(_('sending '), subj, ' ...\n')
-            ui.progress(_('sending'), i, item=subj, total=len(msgs))
+            ui.progress(_('sending'), i, item=subj, total=len(msgs),
+                        unit=_('emails'))
             if not mbox:
                 # Exim does not remove the Bcc field
                 del m['Bcc']