Mercurial > hg
changeset 33396:96d3e5c1fd25
configitems: register the 'bugzilla.bzurl' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 07 Jul 2017 10:03:28 +0200 |
parents | b33d63651693 |
children | f656a4184a99 |
files | hgext/bugzilla.py |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/bugzilla.py Fri Jul 07 10:03:26 2017 +0200 +++ b/hgext/bugzilla.py Fri Jul 07 10:03:28 2017 +0200 @@ -328,6 +328,9 @@ configitem('bugzilla', 'bzemail', default=None, ) +configitem('bugzilla', 'bzurl', + default='http://localhost/bugzilla/', +) class bzaccess(object): '''Base class for access to Bugzilla.''' @@ -649,8 +652,7 @@ def __init__(self, ui): bzaccess.__init__(self, ui) - bzweb = self.ui.config('bugzilla', 'bzurl', - 'http://localhost/bugzilla/') + bzweb = self.ui.config('bugzilla', 'bzurl') bzweb = bzweb.rstrip("/") + "/xmlrpc.cgi" user = self.ui.config('bugzilla', 'user', 'bugs') @@ -810,8 +812,7 @@ """ def __init__(self, ui): bzaccess.__init__(self, ui) - bz = self.ui.config('bugzilla', 'bzurl', - 'http://localhost/bugzilla/') + bz = self.ui.config('bugzilla', 'bzurl') self.bzroot = '/'.join([bz, 'rest']) self.apikey = self.ui.config('bugzilla', 'apikey') self.user = self.ui.config('bugzilla', 'user', 'bugs')