Show More
@@ -366,6 +366,9 b" configitem('bugzilla', 'style'," | |||||
366 | configitem('bugzilla', 'template', |
|
366 | configitem('bugzilla', 'template', | |
367 | default=None, |
|
367 | default=None, | |
368 | ) |
|
368 | ) | |
|
369 | configitem('bugzilla', 'timeout', | |||
|
370 | default=5, | |||
|
371 | ) | |||
369 |
|
372 | |||
370 | class bzaccess(object): |
|
373 | class bzaccess(object): | |
371 | '''Base class for access to Bugzilla.''' |
|
374 | '''Base class for access to Bugzilla.''' | |
@@ -445,7 +448,7 b' class bzmysql(bzaccess):' | |||||
445 | user = self.ui.config('bugzilla', 'user', 'bugs') |
|
448 | user = self.ui.config('bugzilla', 'user', 'bugs') | |
446 | passwd = self.ui.config('bugzilla', 'password') |
|
449 | passwd = self.ui.config('bugzilla', 'password') | |
447 | db = self.ui.config('bugzilla', 'db') |
|
450 | db = self.ui.config('bugzilla', 'db') | |
448 |
timeout = int(self.ui.config('bugzilla', 'timeout' |
|
451 | timeout = int(self.ui.config('bugzilla', 'timeout')) | |
449 | self.ui.note(_('connecting to %s:%s as %s, password %s\n') % |
|
452 | self.ui.note(_('connecting to %s:%s as %s, password %s\n') % | |
450 | (host, db, user, '*' * len(passwd))) |
|
453 | (host, db, user, '*' * len(passwd))) | |
451 | self.conn = bzmysql._MySQLdb.connect(host=host, |
|
454 | self.conn = bzmysql._MySQLdb.connect(host=host, |
General Comments 0
You need to be logged in to leave comments.
Login now