##// END OF EJS Templates
configitems: register the 'bugzilla.fixresolution' config
Boris Feld -
r33400:76ca5097 default
parent child Browse files
Show More
@@ -340,6 +340,9 b" configitem('bugzilla', 'db',"
340 configitem('bugzilla', 'fixregexp',
340 configitem('bugzilla', 'fixregexp',
341 default=lambda: bugzilla._default_fix_re,
341 default=lambda: bugzilla._default_fix_re,
342 )
342 )
343 configitem('bugzilla', 'fixresolution',
344 default='FIXED',
345 )
343
346
344 class bzaccess(object):
347 class bzaccess(object):
345 '''Base class for access to Bugzilla.'''
348 '''Base class for access to Bugzilla.'''
@@ -668,8 +671,7 b' class bzxmlrpc(bzaccess):'
668 passwd = self.ui.config('bugzilla', 'password')
671 passwd = self.ui.config('bugzilla', 'password')
669
672
670 self.fixstatus = self.ui.config('bugzilla', 'fixstatus', 'RESOLVED')
673 self.fixstatus = self.ui.config('bugzilla', 'fixstatus', 'RESOLVED')
671 self.fixresolution = self.ui.config('bugzilla', 'fixresolution',
674 self.fixresolution = self.ui.config('bugzilla', 'fixresolution')
672 'FIXED')
673
675
674 self.bzproxy = xmlrpclib.ServerProxy(bzweb, self.transport(bzweb))
676 self.bzproxy = xmlrpclib.ServerProxy(bzweb, self.transport(bzweb))
675 ver = self.bzproxy.Bugzilla.version()['version'].split('.')
677 ver = self.bzproxy.Bugzilla.version()['version'].split('.')
@@ -827,8 +829,7 b' class bzrestapi(bzaccess):'
827 self.user = self.ui.config('bugzilla', 'user', 'bugs')
829 self.user = self.ui.config('bugzilla', 'user', 'bugs')
828 self.passwd = self.ui.config('bugzilla', 'password')
830 self.passwd = self.ui.config('bugzilla', 'password')
829 self.fixstatus = self.ui.config('bugzilla', 'fixstatus', 'RESOLVED')
831 self.fixstatus = self.ui.config('bugzilla', 'fixstatus', 'RESOLVED')
830 self.fixresolution = self.ui.config('bugzilla', 'fixresolution',
832 self.fixresolution = self.ui.config('bugzilla', 'fixresolution')
831 'FIXED')
832
833
833 def apiurl(self, targets, include_fields=None):
834 def apiurl(self, targets, include_fields=None):
834 url = '/'.join([self.bzroot] + [str(t) for t in targets])
835 url = '/'.join([self.bzroot] + [str(t) for t in targets])
General Comments 0
You need to be logged in to leave comments. Login now