# HG changeset patch # User Boris Feld # Date 2017-07-07 08:04:15 # Node ID 9443a946efdc4d72ff95341c7b68d56f618bfbec # Parent 9a36b964165ec879d36e1dcdb78f45c97e389740 configitems: register the 'bugzilla.timeout' config diff --git a/hgext/bugzilla.py b/hgext/bugzilla.py --- a/hgext/bugzilla.py +++ b/hgext/bugzilla.py @@ -366,6 +366,9 @@ configitem('bugzilla', 'style', configitem('bugzilla', 'template', default=None, ) +configitem('bugzilla', 'timeout', + default=5, +) class bzaccess(object): '''Base class for access to Bugzilla.''' @@ -445,7 +448,7 @@ class bzmysql(bzaccess): user = self.ui.config('bugzilla', 'user', 'bugs') passwd = self.ui.config('bugzilla', 'password') db = self.ui.config('bugzilla', 'db') - timeout = int(self.ui.config('bugzilla', 'timeout', 5)) + timeout = int(self.ui.config('bugzilla', 'timeout')) self.ui.note(_('connecting to %s:%s as %s, password %s\n') % (host, db, user, '*' * len(passwd))) self.conn = bzmysql._MySQLdb.connect(host=host,