# HG changeset patch # User Boris Feld <boris.f...@octobus.net> # Date 1499414608 -7200 # Fri Jul 07 10:03:28 2017 +0200 # Node ID b98505c496cf15809cd90e5bdab5165d4731dbd8 # Parent 97aa2edd521c6999219991836ba66abb0aeb2bd9 # EXP-Topic config.register.bugzilla configitems: register the 'bugzilla.bzurl' config
diff -r 97aa2edd521c -r b98505c496cf hgext/bugzilla.py --- 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') _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel