From patchwork Mon Sep 11 13:31:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [5,of,6] configitems: register the 'patchbomb.intro' config From: Boris Feld X-Patchwork-Id: 23772 Message-Id: <9427d3096d063f598b04.1505136712@FB> To: mercurial-devel@mercurial-scm.org Cc: boris.feld@octobus.net Date: Mon, 11 Sep 2017 15:31:52 +0200 # HG changeset patch # User Boris Feld # Date 1498787021 -7200 # ven. juin 30 03:43:41 2017 +0200 # Node ID 9427d3096d063f598b0494b13db34e6da8d9b80d # Parent 6040b7a8c74c9e3fe037b70cb6f1eefa3cbb6872 # EXP-Topic config.register.patchbomb configitems: register the 'patchbomb.intro' config diff -r 6040b7a8c74c -r 9427d3096d06 hgext/patchbomb.py --- a/hgext/patchbomb.py ven. juin 30 03:43:40 2017 +0200 +++ b/hgext/patchbomb.py ven. juin 30 03:43:41 2017 +0200 @@ -115,6 +115,9 @@ configitem('patchbomb', 'from', default=None, ) +configitem('patchbomb', 'intro', + default='auto', +) # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should @@ -151,7 +154,7 @@ def introwanted(ui, opts, number): '''is an introductory message apparently wanted?''' - introconfig = ui.config('patchbomb', 'intro', 'auto') + introconfig = ui.config('patchbomb', 'intro') if opts.get('intro') or opts.get('desc'): intro = True elif introconfig == 'always':