changeset 4485:6d2d1dcd5f74

patchbomb: Hoist sender config higher.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun, 27 May 2007 14:53:46 -0700
parents c927c568a5ad
children c15955bde7dd
files hgext/patchbomb.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -325,15 +325,15 @@ def patchbomb(ui, repo, *revs, **opts):
         msg['Subject'] = subj
         return [msg]
 
+    sender = (opts['from'] or ui.config('email', 'from') or
+              ui.config('patchbomb', 'from') or
+              prompt('From', ui.username()))
+
     if opts.get('bundle'):
         msgs = getbundlemsgs(getbundle(dest))
     else:
         msgs = getexportmsgs()
 
-    sender = (opts['from'] or ui.config('email', 'from') or
-              ui.config('patchbomb', 'from') or
-              prompt('From', ui.username()))
-
     def getaddrs(opt, prpt, default = None):
         addrs = opts[opt] or (ui.config('email', opt) or
                               ui.config('patchbomb', opt) or