Mercurial > hg
comparison hgext/patchbomb.py @ 20790:49f2d5644f04
config: set a 'source' in most cases where config don't come from file but code
Some extensions set configuration settings that showed up in 'hg showconfig
--debug' with 'none' as source. That was confusing.
Instead, they will now tell which extension they come from.
This change tries to be consistent and specify a source everywhere - also where
it perhaps is less relevant.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 19 Mar 2014 02:45:14 +0100 |
parents | c80feeb715d1 |
children | dbff8c119cf6 |
comparison
equal
deleted
inserted
replaced
20789:d19c9bdbbf35 | 20790:49f2d5644f04 |
---|---|
544 fp.close() | 544 fp.close() |
545 else: | 545 else: |
546 if not sendmail: | 546 if not sendmail: |
547 verifycert = ui.config('smtp', 'verifycert') | 547 verifycert = ui.config('smtp', 'verifycert') |
548 if opts.get('insecure'): | 548 if opts.get('insecure'): |
549 ui.setconfig('smtp', 'verifycert', 'loose') | 549 ui.setconfig('smtp', 'verifycert', 'loose', 'patchbomb') |
550 try: | 550 try: |
551 sendmail = mail.connect(ui, mbox=mbox) | 551 sendmail = mail.connect(ui, mbox=mbox) |
552 finally: | 552 finally: |
553 ui.setconfig('smtp', 'verifycert', verifycert) | 553 ui.setconfig('smtp', 'verifycert', verifycert, 'patchbomb') |
554 ui.status(_('sending '), subj, ' ...\n') | 554 ui.status(_('sending '), subj, ' ...\n') |
555 ui.progress(_('sending'), i, item=subj, total=len(msgs)) | 555 ui.progress(_('sending'), i, item=subj, total=len(msgs)) |
556 if not mbox: | 556 if not mbox: |
557 # Exim does not remove the Bcc field | 557 # Exim does not remove the Bcc field |
558 del m['Bcc'] | 558 del m['Bcc'] |