Mercurial > hg > mercurial-crew-with-dirclash
comparison 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 |
comparison
equal
deleted
inserted
replaced
4482:62019c4427e3 | 4483:a11e13d50645 |
---|---|
220 try: | 220 try: |
221 os.unlink(tmpfn) | 221 os.unlink(tmpfn) |
222 except: | 222 except: |
223 pass | 223 pass |
224 os.rmdir(tmpdir) | 224 os.rmdir(tmpdir) |
225 | |
226 if not opts['test']: | |
227 mail.validateconfig(ui) | |
225 | 228 |
226 # option handling | 229 # option handling |
227 commands.setremoteconfig(ui, opts) | 230 commands.setremoteconfig(ui, opts) |
228 if opts.get('outgoint') and opts.get('bundle'): | 231 if opts.get('outgoint') and opts.get('bundle'): |
229 raise util.Abort(_("--outgoing mode always on with --bundle; do not re-specify --outgoing")) | 232 raise util.Abort(_("--outgoing mode always on with --bundle; do not re-specify --outgoing")) |