##// END OF EJS Templates
patchbomb: consistent code style in getaddrs()
Christian Ebert -
r12264:b8146231 default
parent child Browse files
Show More
@@ -394,17 +394,14 b' def patchbomb(ui, repo, *revs, **opts):'
394 394
395 395 if addrs:
396 396 showaddrs.append('%s %s' % (showaddr, ', '.join(addrs)))
397 return mail.addrlistencode(ui, addrs, _charsets,
398 opts.get('test'))
397 return mail.addrlistencode(ui, addrs, _charsets, opts.get('test'))
399 398
400 399 addrs = ui.config('email', opt) or ui.config('patchbomb', opt) or ''
401 400 if not addrs and prpt:
402 401 addrs = prompt(ui, prpt, default)
403 402
404 403 if addrs:
405 showaddr = '%s %s' % (showaddr, addrs)
406 showaddrs.append(showaddr)
407
404 showaddrs.append('%s %s' % (showaddr, addrs))
408 405 return mail.addrlistencode(ui, [addrs], _charsets, opts.get('test'))
409 406
410 407 to = getaddrs('to', 'To')
General Comments 0
You need to be logged in to leave comments. Login now