344 default='FIXED', |
344 default='FIXED', |
345 ) |
345 ) |
346 configitem('bugzilla', 'fixstatus', |
346 configitem('bugzilla', 'fixstatus', |
347 default='RESOLVED', |
347 default='RESOLVED', |
348 ) |
348 ) |
|
349 configitem('bugzilla', 'host', |
|
350 default='localhost', |
|
351 ) |
349 |
352 |
350 class bzaccess(object): |
353 class bzaccess(object): |
351 '''Base class for access to Bugzilla.''' |
354 '''Base class for access to Bugzilla.''' |
352 |
355 |
353 def __init__(self, ui): |
356 def __init__(self, ui): |
419 except ImportError as err: |
422 except ImportError as err: |
420 raise error.Abort(_('python mysql support not available: %s') % err) |
423 raise error.Abort(_('python mysql support not available: %s') % err) |
421 |
424 |
422 bzaccess.__init__(self, ui) |
425 bzaccess.__init__(self, ui) |
423 |
426 |
424 host = self.ui.config('bugzilla', 'host', 'localhost') |
427 host = self.ui.config('bugzilla', 'host') |
425 user = self.ui.config('bugzilla', 'user', 'bugs') |
428 user = self.ui.config('bugzilla', 'user', 'bugs') |
426 passwd = self.ui.config('bugzilla', 'password') |
429 passwd = self.ui.config('bugzilla', 'password') |
427 db = self.ui.config('bugzilla', 'db') |
430 db = self.ui.config('bugzilla', 'db') |
428 timeout = int(self.ui.config('bugzilla', 'timeout', 5)) |
431 timeout = int(self.ui.config('bugzilla', 'timeout', 5)) |
429 self.ui.note(_('connecting to %s:%s as %s, password %s\n') % |
432 self.ui.note(_('connecting to %s:%s as %s, password %s\n') % |