comparison contrib/patchbomb @ 997:458b84a96e1c

Fix handling of addresses in hgrc.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun, 21 Aug 2005 23:03:14 -0800
parents 01215ad04283
children c37dd58a444a
comparison
equal deleted inserted replaced
996:5ed566574486 997:458b84a96e1c
166 msg = MIMEMultipart() 166 msg = MIMEMultipart()
167 msg['Subject'] = '[PATCH 0 of %d] %s' % ( 167 msg['Subject'] = '[PATCH 0 of %d] %s' % (
168 len(patches), 168 len(patches),
169 opts['subject'] or 169 opts['subject'] or
170 prompt('Subject:', rest = ' [PATCH 0 of %d] ' % len(patches))) 170 prompt('Subject:', rest = ' [PATCH 0 of %d] ' % len(patches)))
171 to = (opts['to'] or ui.config('patchbomb', 'to') or 171 to = opts['to'] or ui.config('patchbomb', 'to') or prompt('To')
172 [s.strip() for s in prompt('To').split(',')]) 172 to = [t.strip() for t in to.split(',')]
173 cc = (opts['cc'] or ui.config('patchbomb', 'cc') or 173 cc = (opts['cc'] or ui.config('patchbomb', 'cc') or
174 [s.strip() for s in prompt('Cc', default = '').split(',')]) 174 prompt('Cc', default = ''))
175 cc = [c.strip() for c in cc.split(',')]
175 176
176 ui.write('Finish with ^D or a dot on a line by itself.\n\n') 177 ui.write('Finish with ^D or a dot on a line by itself.\n\n')
177 178
178 body = [] 179 body = []
179 180