Patchwork [09,of,10,V2] configitems: register the 'bugzilla.fixstatus' config

login
register
mail settings
Submitter Boris Feld
Date July 11, 2017, 3:59 p.m.
Message ID <b065c6b0905ff4304d5f.1499788783@FB>
Download mbox | patch
Permalink /patch/22234/
State Accepted
Headers show

Comments

Boris Feld - July 11, 2017, 3:59 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1499414637 -7200
#      Fri Jul 07 10:03:57 2017 +0200
# Node ID b065c6b0905ff4304d5f049e4b56ed55247339c0
# Parent  7899b38ce3e21d04d578f101bc6fc503600ca07b
# EXP-Topic config.register.bugzilla
configitems: register the 'bugzilla.fixstatus' config

Patch

diff -r 7899b38ce3e2 -r b065c6b0905f 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):