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

login
register
mail settings
Submitter Boris Feld
Date July 11, 2017, 3:59 p.m.
Message ID <18c26fe8b1863306f3a9.1499788784@FB>
Download mbox | patch
Permalink /patch/22236/
State Accepted
Headers show

Comments

Boris Feld - July 11, 2017, 3:59 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@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
Augie Fackler - July 11, 2017, 4:49 p.m.
On Tue, Jul 11, 2017 at 05:59:44PM +0200, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld@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
queued, replaced v1 with v2, thanks

>
> 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')
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Patch

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