From 61d257f511e91a05a6d08370e54cde7c0be8d792 Mon Sep 17 00:00:00 2001 From: Alex Leblang Date: Mon, 26 Jun 2017 16:42:39 -0700 Subject: [PATCH] [HBASE-18020] Update API Compliance Checker to Incorporate Improvements Done in Hadoop - Converted to python - Updated to most recent release of Java ACC - Added ability to include known number of problems Change-Id: I255b6c170dd29ff823b774b8e9ae4b527eecf56a Author: Andrew Wang Amending-Author: Alex Leblang Amending-Author: Sean Busbey --- dev-support/checkcompatibility.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dev-support/checkcompatibility.py b/dev-support/checkcompatibility.py index 0f90207..bba4f05 100755 --- a/dev-support/checkcompatibility.py +++ b/dev-support/checkcompatibility.py @@ -116,7 +116,12 @@ def checkout_java_tree(rev, path): def get_git_hash(revname): """ Convert 'revname' to its SHA-1 hash. """ - return check_output(["git", "rev-parse", revname], + try: + return check_output(["git", "rev-parse", revname], + cwd=get_repo_dir()).strip() + except: + revname = "origin/" + revname + return check_output(["git", "rev-parse", revname], cwd=get_repo_dir()).strip() -- 2.7.4 (Apple Git-66)