##// END OF EJS Templates
configitems: register the 'bugzilla.fixregexp' config
Boris Feld -
r33399:bab1f324 default
parent child Browse files
Show More
@@ -337,6 +337,9 b" configitem('bugzilla', 'bzuser',"
337 configitem('bugzilla', 'db',
337 configitem('bugzilla', 'db',
338 default='bugs',
338 default='bugs',
339 )
339 )
340 configitem('bugzilla', 'fixregexp',
341 default=lambda: bugzilla._default_fix_re,
342 )
340
343
341 class bzaccess(object):
344 class bzaccess(object):
342 '''Base class for access to Bugzilla.'''
345 '''Base class for access to Bugzilla.'''
@@ -975,8 +978,7 b' class bugzilla(object):'
975 self.ui.config('bugzilla', 'regexp',
978 self.ui.config('bugzilla', 'regexp',
976 bugzilla._default_bug_re), re.IGNORECASE)
979 bugzilla._default_bug_re), re.IGNORECASE)
977 self.fix_re = re.compile(
980 self.fix_re = re.compile(
978 self.ui.config('bugzilla', 'fixregexp',
981 self.ui.config('bugzilla', 'fixregexp'), re.IGNORECASE)
979 bugzilla._default_fix_re), re.IGNORECASE)
980 self.split_re = re.compile(r'\D+')
982 self.split_re = re.compile(r'\D+')
981
983
982 def find_bugs(self, ctx):
984 def find_bugs(self, ctx):
General Comments 0
You need to be logged in to leave comments. Login now