Mercurial > hg
changeset 34115:97a3bb5aff25
configitems: register the 'patchbomb.intro' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:43:41 +0200 |
parents | 7e2adac3dd60 |
children | aeb956e7729f |
files | hgext/patchbomb.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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':