# HG changeset patch # User Vadim Gelfer # Date 1146769245 25200 # Node ID 564034552f7f83bc0c9bde24f45976088fb24797 # Parent 5de8b44f0446b7a37f8332f6e5be3f3c54e7ccee rename [patchbomb] section to [email] section in hgrc. old name still ok. diff -r 5de8b44f0446 -r 564034552f7f hgext/patchbomb.py --- a/hgext/patchbomb.py Thu May 04 11:32:00 2006 -0700 +++ b/hgext/patchbomb.py Thu May 04 12:00:45 2006 -0700 @@ -44,7 +44,7 @@ # To configure other defaults, add a section like this to your hgrc # file: # -# [patchbomb] +# [email] # from = My Name # to = recipient1, recipient2, ... # cc = cc1, cc2, ... @@ -183,11 +183,13 @@ jumbo.extend(p) msgs.append(makepatch(p, i + 1, len(patches))) - sender = (opts['from'] or ui.config('patchbomb', 'from') or + sender = (opts['from'] or ui.config('email', 'from') or + ui.config('patchbomb', 'from') or prompt('From', ui.username())) def getaddrs(opt, prpt, default = None): - addrs = opts[opt] or (ui.config('patchbomb', opt) or + addrs = opts[opt] or (ui.config('email', opt) or + ui.config('patchbomb', opt) or prompt(prpt, default = default)).split(',') return [a.strip() for a in addrs if a.strip()] to = getaddrs('to', 'To')