# HG changeset patch # User Vadim Gelfer # Date 2006-05-04 19:00:45 # Node ID 564034552f7f83bc0c9bde24f45976088fb24797 # Parent 5de8b44f0446b7a37f8332f6e5be3f3c54e7ccee rename [patchbomb] section to [email] section in hgrc. old name still ok. diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py --- a/hgext/patchbomb.py +++ b/hgext/patchbomb.py @@ -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 @@ def patchbomb(ui, repo, *revs, **opts): 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')