Patchwork [5,of,6] configitems: register the 'patchbomb.intro' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 11, 2017, 1:31 p.m.
Message ID <9427d3096d063f598b04.1505136712@FB>
Download mbox | patch
Permalink /patch/23772/
State Accepted
Headers show

Comments

Boris Feld - Sept. 11, 2017, 1:31 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# 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

Patch

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':