diff hgext/patchbomb.py @ 4483:a11e13d50645

patchbomb: Validate email config before we start prompting for info.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun, 27 May 2007 14:40:14 -0700
parents 6b84c8d2f66f
children 6d2d1dcd5f74
line wrap: on
line diff
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -223,6 +223,9 @@ def patchbomb(ui, repo, *revs, **opts):
                 pass
             os.rmdir(tmpdir)
 
+    if not opts['test']:
+        mail.validateconfig(ui)
+
     # option handling
     commands.setremoteconfig(ui, opts)
     if opts.get('outgoint') and opts.get('bundle'):