Repository: sqoop Updated Branches: refs/heads/sqoop2 c4d5badac -> c81386f98
SQOOP-1827: Sqoop2: Add pattern SQOOP-XYZ-vX.patch to our pre-commit hook (Jarek Jarcec Cecho via Abraham Elmahrek) Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/c81386f9 Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/c81386f9 Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/c81386f9 Branch: refs/heads/sqoop2 Commit: c81386f98ee8c4848c805cf340ebefb40e14583b Parents: c4d5bad Author: Abraham Elmahrek <[email protected]> Authored: Thu Dec 4 00:20:46 2014 -0800 Committer: Abraham Elmahrek <[email protected]> Committed: Thu Dec 4 00:20:46 2014 -0800 ---------------------------------------------------------------------- dev-support/test-patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sqoop/blob/c81386f9/dev-support/test-patch.py ---------------------------------------------------------------------- diff --git a/dev-support/test-patch.py b/dev-support/test-patch.py index a8c21b4..8191693 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] ]
