You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sqoop.apache.org by ja...@apache.org on 2013/06/16 21:32:37 UTC

git commit: Verify correct branch

Updated Branches:
  refs/heads/SQOOP-1082 4dabfe1c1 -> d9e8710b9


Verify correct branch


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/d9e8710b
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/d9e8710b
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/d9e8710b

Branch: refs/heads/SQOOP-1082
Commit: d9e8710b912e6b75e332820b122ab6a2d6ccca05
Parents: 4dabfe1
Author: Jarek Jarcec Cecho <ja...@apache.org>
Authored: Sun Jun 16 12:32:04 2013 -0700
Committer: Jarek Jarcec Cecho <ja...@apache.org>
Committed: Sun Jun 16 12:32:04 2013 -0700

----------------------------------------------------------------------
 dev-support/test-patch.py | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/d9e8710b/dev-support/test-patch.py
----------------------------------------------------------------------
diff --git a/dev-support/test-patch.py b/dev-support/test-patch.py
index e90c324..8a01a16 100755
--- a/dev-support/test-patch.py
+++ b/dev-support/test-patch.py
@@ -52,6 +52,10 @@ def sqoop_guess_branch(versions):
 
   return branch
 
+# Verify supported branch
+def sqoop_verify_branch(branch):
+  return branch in {"sqoop2", "SQOOP-1082"}
+
 def execute(cmd, log=True):
   if log:
     print "INFO: Executing %s" % (cmd)
@@ -355,6 +359,10 @@ elif options.filename:
 else:
   raise Exception("Not reachable")
 
+# Verify that we are on supported branch
+if not sqoop_verify_branch(branch):
+  print "ERROR: Unsupported branch %s" % (branch)
+
 mvn_clean(result, output_dir)
 git_checkout(result, branch)
 git_apply(result, patch_cmd, patch_file, strip, output_dir)