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

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


# HG changeset patch
# User Octobus <contact at octobus.net>
# Date 1499414641 -7200
#      Fri Jul 07 10:04:01 2017 +0200
# Node ID 686908f9b45d95c674edccd189f3c6f4814dbfb4
# Parent  f1eb434550a89f9705be8835409e1e0e6ff7a035
# EXP-Topic config.register.bugzilla
configitems: register the 'bugzilla.host' config

diff -r f1eb434550a8 -r 686908f9b45d 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')


More information about the Mercurial-devel mailing list