configitems: register the 'patchbomb.intro' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:43:41 +0200
changeset 34115 97a3bb5aff25
parent 34114 7e2adac3dd60
child 34116 aeb956e7729f
configitems: register the 'patchbomb.intro' config
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':