contrib/patchbomb
changeset 998 c37dd58a444a
parent 997 458b84a96e1c
child 1032 706c590c9060
--- a/contrib/patchbomb
+++ b/contrib/patchbomb
@@ -172,7 +172,7 @@ def patchbomb(ui, repo, *revs, **opts):
     to = [t.strip() for t in to.split(',')]
     cc = (opts['cc'] or ui.config('patchbomb', 'cc') or
           prompt('Cc', default = ''))
-    cc = [c.strip() for c in cc.split(',')]
+    cc = (cc and [c.strip() for c in cc.split(',')]) or []
 
     ui.write('Finish with ^D or a dot on a line by itself.\n\n')