# HG changeset patch # User Bryan O'Sullivan # Date 1124695982 28800 # Node ID c37dd58a444a83b5542edce8cd83f6228f0fc955 # Parent 458b84a96e1c6ab0a9709dba2f3d8995d05c02e9 contrib/patchbomb: Fix buglet with empty cc list. diff --git a/contrib/patchbomb b/contrib/patchbomb --- 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')