diff hgext/patchbomb.py @ 2292:903ab41ac7eb

allow to send email using sendmail. default is still smtp. update hgrc doc with sendmail info.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Mon, 15 May 2006 10:25:17 -0700
parents f15056b29472
children bd9c39e8f38b
line wrap: on
line diff
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -254,8 +254,6 @@ def patchbomb(ui, repo, *revs, **opts):
         else:
             ui.status('Sending ', m['Subject'], ' ...\n')
             mail.sendmail(sender, to + cc, m.as_string(0))
-    if not opts['test'] and not opts['mbox']:
-        mail.close()
 
 cmdtable = {
     'email':