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

login
register
mail settings
Submitter Boris Feld
Date July 7, 2017, 6:57 p.m.
Message ID <686908f9b45d95c674ed.1499453865@FB>
Download mbox | patch
Permalink /patch/22113/
State Superseded
Headers show

Comments

Boris Feld - July 7, 2017, 6:57 p.m.
# HG changeset patch
# User Octobus <contact@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
Augie Fackler - July 11, 2017, 4:25 p.m.
On Fri, Jul 07, 2017 at 08:57:45PM +0200, Boris Feld wrote:
> # HG changeset patch
> # User Octobus <contact@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

queued, thanks

Patch

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')