[PATCH 10 of 10 V2] configitems: register the 'bugzilla.host' config
Boris Feld
boris.feld at octobus.net
Tue Jul 11 15:59:44 UTC 2017
# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1499414641 -7200
# Fri Jul 07 10:04:01 2017 +0200
# Node ID 18c26fe8b1863306f3a9ef9b585e69517ba957e3
# Parent b065c6b0905ff4304d5f049e4b56ed55247339c0
# EXP-Topic config.register.bugzilla
configitems: register the 'bugzilla.host' config
diff -r b065c6b0905f -r 18c26fe8b186 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