configitems: register the 'bugzilla.fixstatus' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 07 Jul 2017 10:03:57 +0200
changeset 33401 960350659fa5
parent 33400 76ca5097a2b6
child 33402 26e4ba058215
configitems: register the 'bugzilla.fixstatus' config
hgext/bugzilla.py
--- a/hgext/bugzilla.py	Fri Jul 07 10:05:40 2017 +0200
+++ b/hgext/bugzilla.py	Fri Jul 07 10:03:57 2017 +0200
@@ -343,6 +343,9 @@
 configitem('bugzilla', 'fixresolution',
     default='FIXED',
 )
+configitem('bugzilla', 'fixstatus',
+    default='RESOLVED',
+)
 
 class bzaccess(object):
     '''Base class for access to Bugzilla.'''
@@ -670,7 +673,7 @@
         user = self.ui.config('bugzilla', 'user', 'bugs')
         passwd = self.ui.config('bugzilla', 'password')
 
-        self.fixstatus = self.ui.config('bugzilla', 'fixstatus', 'RESOLVED')
+        self.fixstatus = self.ui.config('bugzilla', 'fixstatus')
         self.fixresolution = self.ui.config('bugzilla', 'fixresolution')
 
         self.bzproxy = xmlrpclib.ServerProxy(bzweb, self.transport(bzweb))
@@ -828,7 +831,7 @@
         self.apikey = self.ui.config('bugzilla', 'apikey')
         self.user = self.ui.config('bugzilla', 'user', 'bugs')
         self.passwd = self.ui.config('bugzilla', 'password')
-        self.fixstatus = self.ui.config('bugzilla', 'fixstatus', 'RESOLVED')
+        self.fixstatus = self.ui.config('bugzilla', 'fixstatus')
         self.fixresolution = self.ui.config('bugzilla', 'fixresolution')
 
     def apiurl(self, targets, include_fields=None):