Patchwork [06,of,10,V2] configitems: register the 'bugzilla.db' config

login
register
mail settings
Submitter Boris Feld
Date July 11, 2017, 3:59 p.m.
Message ID <cdef7e9e6b3cd6785755.1499788780@FB>
Download mbox | patch
Permalink /patch/22233/
State Accepted
Headers show

Comments

Boris Feld - July 11, 2017, 3:59 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1499414614 -7200
#      Fri Jul 07 10:03:34 2017 +0200
# Node ID cdef7e9e6b3cd6785755edb3cb1be3cb9cec2799
# Parent  3d09ecfeedc7f19db069bd2cac8e269c7e561b05
# EXP-Topic config.register.bugzilla
configitems: register the 'bugzilla.db' config

Patch

diff -r 3d09ecfeedc7 -r cdef7e9e6b3c 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)))