Merge "Add support for bug format LP: #nnnnnn"

This commit is contained in:
Jenkins
2012-02-08 20:35:42 +00:00
committed by Gerrit Code Review

View File

@@ -136,7 +136,7 @@ def process_bugtask(launchpad, bugtask, git_log, args):
def find_bugs(launchpad, git_log, args):
"""Find bugs referenced in the git log and return related bugtasks"""
bug_regexp = r'([Bb]ug|[Ll][Pp])\s*[#:]?\s*(\d+)'
bug_regexp = r'([Bb]ug|[Ll][Pp])[\s#:]*(\d+)'
tokens = re.split(bug_regexp, git_log)
# Extract unique bug tasks