changeset 33402:26e4ba058215

configitems: register the 'bugzilla.host' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 07 Jul 2017 10:04:01 +0200
parents 960350659fa5
children 1bb209d08a34
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: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')