Show More
@@ -303,6 +303,7 b' from mercurial import (' | |||||
303 | cmdutil, |
|
303 | cmdutil, | |
304 | error, |
|
304 | error, | |
305 | mail, |
|
305 | mail, | |
|
306 | registrar, | |||
306 | url, |
|
307 | url, | |
307 | util, |
|
308 | util, | |
308 | ) |
|
309 | ) | |
@@ -315,6 +316,13 b' xmlrpclib = util.xmlrpclib' | |||||
315 | # leave the attribute unspecified. |
|
316 | # leave the attribute unspecified. | |
316 | testedwith = 'ships-with-hg-core' |
|
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 | class bzaccess(object): |
|
326 | class bzaccess(object): | |
319 | '''Base class for access to Bugzilla.''' |
|
327 | '''Base class for access to Bugzilla.''' | |
320 |
|
328 | |||
@@ -800,7 +808,7 b' class bzrestapi(bzaccess):' | |||||
800 | bz = self.ui.config('bugzilla', 'bzurl', |
|
808 | bz = self.ui.config('bugzilla', 'bzurl', | |
801 | 'http://localhost/bugzilla/') |
|
809 | 'http://localhost/bugzilla/') | |
802 | self.bzroot = '/'.join([bz, 'rest']) |
|
810 | self.bzroot = '/'.join([bz, 'rest']) | |
803 |
self.apikey = self.ui.config('bugzilla', 'apikey' |
|
811 | self.apikey = self.ui.config('bugzilla', 'apikey') | |
804 | self.user = self.ui.config('bugzilla', 'user', 'bugs') |
|
812 | self.user = self.ui.config('bugzilla', 'user', 'bugs') | |
805 | self.passwd = self.ui.config('bugzilla', 'password') |
|
813 | self.passwd = self.ui.config('bugzilla', 'password') | |
806 | self.fixstatus = self.ui.config('bugzilla', 'fixstatus', 'RESOLVED') |
|
814 | self.fixstatus = self.ui.config('bugzilla', 'fixstatus', 'RESOLVED') |
General Comments 0
You need to be logged in to leave comments.
Login now