[PATCH 11 of 11] patchbomb: specify unit for ui.progress when sending emails
Anton Shestakov
av6 at dwimlabs.net
Fri Mar 11 09:57:43 EST 2016
# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1457706643 -28800
# Fri Mar 11 22:30:43 2016 +0800
# Node ID bb7c085bb67060d90bd750c73d6f992ec09b28f0
# Parent 31d10bad475e0fccaf0198be7b989cd8728c7857
patchbomb: specify unit for ui.progress when sending emails
diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -703,7 +703,8 @@ def email(ui, repo, *revs, **opts):
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']
More information about the Mercurial-devel
mailing list