# HG changeset patch
# User Bryan O'Sullivan <bos@serpentine.com>
# Date 1124694194 28800
# Node ID 458b84a96e1c6ab0a9709dba2f3d8995d05c02e9
# Parent  5ed5665744866d42ec6c2cbb63abb89b81f74f32
Fix handling of addresses in hgrc.


diff --git a/contrib/patchbomb b/contrib/patchbomb
--- a/contrib/patchbomb
+++ b/contrib/patchbomb
@@ -168,10 +168,11 @@
         len(patches),
         opts['subject'] or
         prompt('Subject:', rest = ' [PATCH 0 of %d] ' % len(patches)))
-    to = (opts['to'] or ui.config('patchbomb', 'to') or
-          [s.strip() for s in prompt('To').split(',')])
+    to = opts['to'] or ui.config('patchbomb', 'to') or prompt('To')
+    to = [t.strip() for t in to.split(',')]
     cc = (opts['cc'] or ui.config('patchbomb', 'cc') or
-          [s.strip() for s in prompt('Cc', default = '').split(',')])
+          prompt('Cc', default = ''))
+    cc = [c.strip() for c in cc.split(',')]
 
     ui.write('Finish with ^D or a dot on a line by itself.\n\n')