You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sqoop.apache.org by hs...@apache.org on 2014/02/03 06:03:02 UTC
git commit: SQOOP-1144. Sqoop2: Add fixVersion to PreCommit branch
detection
Updated Branches:
refs/heads/sqoop2 f3a2c576e -> 065ecd6d2
SQOOP-1144. Sqoop2: Add fixVersion to PreCommit branch detection
(Jarek Jarcec Cecho via Hari Shreedharan)
Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/065ecd6d
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/065ecd6d
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/065ecd6d
Branch: refs/heads/sqoop2
Commit: 065ecd6d264a6bfe77d984d6f38f56234fd41efd
Parents: f3a2c57
Author: Hari Shreedharan <hs...@apache.org>
Authored: Sun Feb 2 21:02:28 2014 -0800
Committer: Hari Shreedharan <hs...@apache.org>
Committed: Sun Feb 2 21:02:28 2014 -0800
----------------------------------------------------------------------
dev-support/test-patch.py | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/sqoop/blob/065ecd6d/dev-support/test-patch.py
----------------------------------------------------------------------
diff --git a/dev-support/test-patch.py b/dev-support/test-patch.py
index 0196cfa..ae44b60 100755
--- a/dev-support/test-patch.py
+++ b/dev-support/test-patch.py
@@ -147,8 +147,15 @@ def jira_get_attachment(result, defect, username, password):
# Get versions from JIRA JSON object
def json_get_version(json):
versions = []
+
+ # Load affectedVersion field
for version in json.get("fields").get("versions"):
versions = versions + [version.get("name")]
+
+ # Load fixVersion field
+ for version in json.get("fields").get("fixVersions"):
+ versions = versions + [version.get("name")]
+
return versions
def git_cleanup():