# HG changeset patch # User Boris Feld # Date 2017-07-07 08:05:40 # Node ID 76ca5097a2b6f3a083f6fe0b471cd786fdb5b190 # Parent bab1f324214094ca89c93c54127cf7db0b8dac53 configitems: register the 'bugzilla.fixresolution' config diff --git a/hgext/bugzilla.py b/hgext/bugzilla.py --- a/hgext/bugzilla.py +++ b/hgext/bugzilla.py @@ -340,6 +340,9 @@ configitem('bugzilla', 'db', configitem('bugzilla', 'fixregexp', default=lambda: bugzilla._default_fix_re, ) +configitem('bugzilla', 'fixresolution', + default='FIXED', +) class bzaccess(object): '''Base class for access to Bugzilla.''' @@ -668,8 +671,7 @@ class bzxmlrpc(bzaccess): passwd = self.ui.config('bugzilla', 'password') self.fixstatus = self.ui.config('bugzilla', 'fixstatus', 'RESOLVED') - self.fixresolution = self.ui.config('bugzilla', 'fixresolution', - 'FIXED') + self.fixresolution = self.ui.config('bugzilla', 'fixresolution') self.bzproxy = xmlrpclib.ServerProxy(bzweb, self.transport(bzweb)) ver = self.bzproxy.Bugzilla.version()['version'].split('.') @@ -827,8 +829,7 @@ class bzrestapi(bzaccess): self.user = self.ui.config('bugzilla', 'user', 'bugs') self.passwd = self.ui.config('bugzilla', 'password') self.fixstatus = self.ui.config('bugzilla', 'fixstatus', 'RESOLVED') - self.fixresolution = self.ui.config('bugzilla', 'fixresolution', - 'FIXED') + self.fixresolution = self.ui.config('bugzilla', 'fixresolution') def apiurl(self, targets, include_fields=None): url = '/'.join([self.bzroot] + [str(t) for t in targets])