changeset 33398:69d85abe4cba

configitems: register the 'bugzilla.db' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 07 Jul 2017 10:03:34 +0200
parents f656a4184a99
children bab1f3242140
files hgext/bugzilla.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/bugzilla.py	Fri Jul 07 10:03:31 2017 +0200
+++ b/hgext/bugzilla.py	Fri Jul 07 10:03:34 2017 +0200
@@ -334,6 +334,9 @@
 configitem('bugzilla', 'bzuser',
     default=None,
 )
+configitem('bugzilla', 'db',
+    default='bugs',
+)
 
 class bzaccess(object):
     '''Base class for access to Bugzilla.'''
@@ -412,7 +415,7 @@
         host = self.ui.config('bugzilla', 'host', 'localhost')
         user = self.ui.config('bugzilla', 'user', 'bugs')
         passwd = self.ui.config('bugzilla', 'password')
-        db = self.ui.config('bugzilla', 'db', 'bugs')
+        db = self.ui.config('bugzilla', 'db')
         timeout = int(self.ui.config('bugzilla', 'timeout', 5))
         self.ui.note(_('connecting to %s:%s as %s, password %s\n') %
                      (host, db, user, '*' * len(passwd)))