Show More
@@ -172,11 +172,13 b' def patchbomb(ui, repo, *revs, **opts):' | |||||
172 | len(patches), |
|
172 | len(patches), | |
173 | opts['subject'] or |
|
173 | opts['subject'] or | |
174 | prompt('Subject:', rest = ' [PATCH 0 of %d] ' % len(patches))) |
|
174 | prompt('Subject:', rest = ' [PATCH 0 of %d] ' % len(patches))) | |
175 | to = opts['to'] or ui.config('patchbomb', 'to') or prompt('To') |
|
175 | ||
176 | to = [t.strip() for t in to.split(',')] |
|
176 | def getaddrs(opt, prpt, default = None): | |
177 |
|
|
177 | addrs = opts[opt] or (ui.config('patchbomb', opt) or | |
178 | prompt('Cc', default = '')) |
|
178 | prompt(prpt, default = default)).split(',') | |
179 | cc = (cc and [c.strip() for c in cc.split(',')]) or [] |
|
179 | return [a.strip() for a in addrs if a.strip()] | |
|
180 | to = getaddrs('to', 'To') | |||
|
181 | cc = getaddrs('cc', 'Cc', '') | |||
180 |
|
182 | |||
181 | ui.write('Finish with ^D or a dot on a line by itself.\n\n') |
|
183 | ui.write('Finish with ^D or a dot on a line by itself.\n\n') | |
182 |
|
184 |
General Comments 0
You need to be logged in to leave comments.
Login now