[PATCH 06 of 10] configitems: register the 'bugzilla.db' config

Boris Feld boris.feld at octobus.net
Fri Jul 7 14:57:41 EDT 2017


# HG changeset patch
# User Octobus <contact at octobus.net>
# Date 1499414614 -7200
#      Fri Jul 07 10:03:34 2017 +0200
# Node ID dcec97037a786b460a7705b00cb2821568bb5842
# Parent  2a7fec2040efcbb15afa77caf58e2023755be38a
# EXP-Topic config.register.bugzilla
configitems: register the 'bugzilla.db' config

diff -r 2a7fec2040ef -r dcec97037a78 hgext/bugzilla.py
--- 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)))


More information about the Mercurial-devel mailing list