hgext/patchbomb.py
changeset 34115 97a3bb5aff25
parent 34114 7e2adac3dd60
child 34116 aeb956e7729f
equal deleted inserted replaced
34114:7e2adac3dd60 34115:97a3bb5aff25
   113     default=None,
   113     default=None,
   114 )
   114 )
   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
   121 # be specifying the version(s) of Mercurial they are tested with, or
   124 # be specifying the version(s) of Mercurial they are tested with, or
   122 # leave the attribute unspecified.
   125 # leave the attribute unspecified.
   149         prompt += ' [%s]' % default
   152         prompt += ' [%s]' % default
   150     return ui.prompt(prompt + rest, default)
   153     return ui.prompt(prompt + rest, default)
   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':
   158         intro = True
   161         intro = True
   159     elif introconfig == 'never':
   162     elif introconfig == 'never':