##// END OF EJS Templates
configitems: register the 'bugzilla.apikey' config
Boris Feld -
r33393:01a90fed default
parent child Browse files
Show More
@@ -303,6 +303,7 b' from mercurial import ('
303 303 cmdutil,
304 304 error,
305 305 mail,
306 registrar,
306 307 url,
307 308 util,
308 309 )
@@ -315,6 +316,13 b' xmlrpclib = util.xmlrpclib'
315 316 # leave the attribute unspecified.
316 317 testedwith = 'ships-with-hg-core'
317 318
319 configtable = {}
320 configitem = registrar.configitem(configtable)
321
322 configitem('bugzilla', 'apikey',
323 default='',
324 )
325
318 326 class bzaccess(object):
319 327 '''Base class for access to Bugzilla.'''
320 328
@@ -800,7 +808,7 b' class bzrestapi(bzaccess):'
800 808 bz = self.ui.config('bugzilla', 'bzurl',
801 809 'http://localhost/bugzilla/')
802 810 self.bzroot = '/'.join([bz, 'rest'])
803 self.apikey = self.ui.config('bugzilla', 'apikey', '')
811 self.apikey = self.ui.config('bugzilla', 'apikey')
804 812 self.user = self.ui.config('bugzilla', 'user', 'bugs')
805 813 self.passwd = self.ui.config('bugzilla', 'password')
806 814 self.fixstatus = self.ui.config('bugzilla', 'fixstatus', 'RESOLVED')
General Comments 0
You need to be logged in to leave comments. Login now