Author: kevinwilfong
Date: Wed Oct 3 18:59:27 2012
New Revision: 1393676
URL: http://svn.apache.org/viewvc?rev=1393676&view=rev
Log:
HIVE-3498. hivetest.py fails with --revision option. (Ivan Gorbachev via kevinwilfong)
Modified:
hive/trunk/testutils/ptest/hivetest.py
Modified: hive/trunk/testutils/ptest/hivetest.py
URL: http://svn.apache.org/viewvc/hive/trunk/testutils/ptest/hivetest.py?rev=1393676&r1=1393675&r2=1393676&view=diff
==============================================================================
--- hive/trunk/testutils/ptest/hivetest.py (original)
+++ hive/trunk/testutils/ptest/hivetest.py Wed Oct 3 18:59:27 2012
@@ -154,14 +154,14 @@ def get_clean_hive():
print('\n-- Updating Hive repo\n')
if local.run('test -d "{0}"'.format(code_path), warn_only = True,
- abandon_output = False) is None:
- local.run('mkdir -p "{0}"'.format(os.path.dirname(code_path)))
- local.run('git clone git://git.apache.org/hive.git "{0}"'.format(code_path))
+ abandon_output = False) is not None:
+ local.run('rm -rf "{0}"'.format(code_path))
+
+ local.run('mkdir -p "{0}"'.format(code_path))
+ local.run('svn checkout http://svn.apache.org/repos/asf/hive/trunk "{0}"'.format(code_path), quiet = True)
+
local.cd(code_path)
- local.run('git reset --hard HEAD')
- local.run('git clean -dffx')
- local.run('git pull')
local.run('ant arc-setup')
def copy_local_hive():