configitems: register the 'bugzilla.host' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 07 Jul 2017 10:04:01 +0200
changeset 33402 26e4ba058215
parent 33401 960350659fa5
child 33403 1bb209d08a34
configitems: register the 'bugzilla.host' config
hgext/bugzilla.py
--- a/hgext/bugzilla.py	Fri Jul 07 10:03:57 2017 +0200
+++ b/hgext/bugzilla.py	Fri Jul 07 10:04:01 2017 +0200
@@ -346,6 +346,9 @@
 configitem('bugzilla', 'fixstatus',
     default='RESOLVED',
 )
+configitem('bugzilla', 'host',
+    default='localhost',
+)
 
 class bzaccess(object):
     '''Base class for access to Bugzilla.'''
@@ -421,7 +424,7 @@
 
         bzaccess.__init__(self, ui)
 
-        host = self.ui.config('bugzilla', 'host', 'localhost')
+        host = self.ui.config('bugzilla', 'host')
         user = self.ui.config('bugzilla', 'user', 'bugs')
         passwd = self.ui.config('bugzilla', 'password')
         db = self.ui.config('bugzilla', 'db')