Mercurial > hg
comparison hgext/patchbomb.py @ 4491:6d2d1dcd5f74
patchbomb: Hoist sender config higher.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Sun, 27 May 2007 14:53:46 -0700 |
parents | a11e13d50645 |
children | c15955bde7dd |
comparison
equal
deleted
inserted
replaced
4490:c927c568a5ad | 4491:6d2d1dcd5f74 |
---|---|
323 email.Encoders.encode_base64(datapart) | 323 email.Encoders.encode_base64(datapart) |
324 msg.attach(datapart) | 324 msg.attach(datapart) |
325 msg['Subject'] = subj | 325 msg['Subject'] = subj |
326 return [msg] | 326 return [msg] |
327 | 327 |
328 sender = (opts['from'] or ui.config('email', 'from') or | |
329 ui.config('patchbomb', 'from') or | |
330 prompt('From', ui.username())) | |
331 | |
328 if opts.get('bundle'): | 332 if opts.get('bundle'): |
329 msgs = getbundlemsgs(getbundle(dest)) | 333 msgs = getbundlemsgs(getbundle(dest)) |
330 else: | 334 else: |
331 msgs = getexportmsgs() | 335 msgs = getexportmsgs() |
332 | |
333 sender = (opts['from'] or ui.config('email', 'from') or | |
334 ui.config('patchbomb', 'from') or | |
335 prompt('From', ui.username())) | |
336 | 336 |
337 def getaddrs(opt, prpt, default = None): | 337 def getaddrs(opt, prpt, default = None): |
338 addrs = opts[opt] or (ui.config('email', opt) or | 338 addrs = opts[opt] or (ui.config('email', opt) or |
339 ui.config('patchbomb', opt) or | 339 ui.config('patchbomb', opt) or |
340 prompt(prpt, default = default)).split(',') | 340 prompt(prpt, default = default)).split(',') |