From c81386f98ee8c4848c805cf340ebefb40e14583b Mon Sep 17 00:00:00 2001 From: Abraham Elmahrek Date: Thu, 4 Dec 2014 00:20:46 -0800 Subject: [PATCH] SQOOP-1827: Sqoop2: Add pattern SQOOP-XYZ-vX.patch to our pre-commit hook (Jarek Jarcec Cecho via Abraham Elmahrek) --- dev-support/test-patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-support/test-patch.py b/dev-support/test-patch.py index a8c21b45..81916930 100755 --- a/dev-support/test-patch.py +++ b/dev-support/test-patch.py @@ -137,7 +137,7 @@ def jira_post_comment(result, defect, branch, username, password): # hack (from hadoop) but REST api doesn't list attachments? def jira_get_attachment(result, defect, username, password): html = jira_get_defect_html(result, defect, username, password) - pattern = "(/secure/attachment/[0-9]+/(bug)?%s[0-9\-]*((\.|-)[0-9]+)?\.(patch|txt|patch\.txt))" % (re.escape(defect)) + pattern = "(/secure/attachment/[0-9]+/(bug)?%s[0-9\-]*((\.|-)v?[0-9]+)?\.(patch|txt|patch\.txt))" % (re.escape(defect)) matches = [] for match in re.findall(pattern, html, re.IGNORECASE): matches += [ match[0] ]