# HG changeset patch # User Boris Feld # Date 1498787021 -7200 # Node ID 97a3bb5aff251d01b3c545c11831fac4440e5f55 # Parent 7e2adac3dd60e9d0a0a88031fe6720085b3ba4b5 configitems: register the 'patchbomb.intro' config diff -r 7e2adac3dd60 -r 97a3bb5aff25 hgext/patchbomb.py --- a/hgext/patchbomb.py Fri Jun 30 03:43:40 2017 +0200 +++ b/hgext/patchbomb.py Fri Jun 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':