Mercurial > hg-stable
diff mercurial/mail.py @ 25842:fa3f0301cf91
email: fix config default value inconsistency
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 25 Jun 2015 17:52:20 -0500 |
parents | 328739ea70c3 |
children | ae21d51bdc43 |
line wrap: on
line diff
--- a/mercurial/mail.py Thu Jun 25 17:51:32 2015 -0500 +++ b/mercurial/mail.py Thu Jun 25 17:52:20 2015 -0500 @@ -154,7 +154,7 @@ def _sendmail(ui, sender, recipients, msg): '''send mail using sendmail.''' - program = ui.config('email', 'method') + program = ui.config('email', 'method', 'smtp') cmdline = '%s -f %s %s' % (program, util.email(sender), ' '.join(map(util.email, recipients))) ui.note(_('sending mail: %s\n') % cmdline)