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

2017-07-11 Thread Augie Fackler
On Tue, Jul 11, 2017 at 05:59:44PM +0200, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld 
> # 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
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


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

2017-07-11 Thread Boris Feld
# HG changeset patch
# User Boris Feld 
# 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')
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel