##// END OF EJS Templates
configitems: register the 'patchbomb.intro' config
Boris Feld -
r34117:97a3bb5a default
parent child Browse files
Show More
@@ -115,6 +115,9 b" configitem('patchbomb', 'flagtemplate',"
115 configitem('patchbomb', 'from',
115 configitem('patchbomb', 'from',
116 default=None,
116 default=None,
117 )
117 )
118 configitem('patchbomb', 'intro',
119 default='auto',
120 )
118
121
119 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
122 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
120 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
123 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
@@ -151,7 +154,7 b' def prompt(ui, prompt, default=None, res'
151
154
152 def introwanted(ui, opts, number):
155 def introwanted(ui, opts, number):
153 '''is an introductory message apparently wanted?'''
156 '''is an introductory message apparently wanted?'''
154 introconfig = ui.config('patchbomb', 'intro', 'auto')
157 introconfig = ui.config('patchbomb', 'intro')
155 if opts.get('intro') or opts.get('desc'):
158 if opts.get('intro') or opts.get('desc'):
156 intro = True
159 intro = True
157 elif introconfig == 'always':
160 elif introconfig == 'always':
General Comments 0
You need to be logged in to leave comments. Login now