##// END OF EJS Templates
bugzilla: move the default regexp for fix in the config declaration...
Boris Feld -
r33470:ab493a83 default
parent child Browse files
Show More
@@ -338,7 +338,10 b" configitem('bugzilla', 'db',"
338 default='bugs',
338 default='bugs',
339 )
339 )
340 configitem('bugzilla', 'fixregexp',
340 configitem('bugzilla', 'fixregexp',
341 default=lambda: bugzilla._default_fix_re,
341 default=(r'fix(?:es)?\s*(?:bugs?\s*)?,?\s*'
342 r'(?:nos?\.?|num(?:ber)?s?)?\s*'
343 r'(?P<ids>(?:#?\d+\s*(?:,?\s*(?:and)?)?\s*)+)'
344 r'\.?\s*(?:h(?:ours?)?\s*(?P<hours>\d*(?:\.\d+)?))?')
342 )
345 )
343 configitem('bugzilla', 'fixresolution',
346 configitem('bugzilla', 'fixresolution',
344 default='FIXED',
347 default='FIXED',
@@ -989,11 +992,6 b' class bugzilla(object):'
989 'restapi': bzrestapi,
992 'restapi': bzrestapi,
990 }
993 }
991
994
992 _default_fix_re = (r'fix(?:es)?\s*(?:bugs?\s*)?,?\s*'
993 r'(?:nos?\.?|num(?:ber)?s?)?\s*'
994 r'(?P<ids>(?:#?\d+\s*(?:,?\s*(?:and)?)?\s*)+)'
995 r'\.?\s*(?:h(?:ours?)?\s*(?P<hours>\d*(?:\.\d+)?))?')
996
997 def __init__(self, ui, repo):
995 def __init__(self, ui, repo):
998 self.ui = ui
996 self.ui = ui
999 self.repo = repo
997 self.repo = repo
General Comments 0
You need to be logged in to leave comments. Login now