comparison rhodecode/lib/utils.py @ 679:d85b0948e539 rhodecode-0.0.1.0.2

fixed hooks broken symlink issue fixed python2.5 crash. fixed #58 missing graph.js bug Fixed tests to remove the forked repository when building enviroment version bump
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 11 Nov 2010 15:03:40 +0100
parents bee56f209c40
children 3d0661b8aaa4
comparison
equal deleted inserted replaced
672:6f796f56a64c 679:d85b0948e539
463 """ 463 """
464 from rhodecode.lib.db_manage import DbManage 464 from rhodecode.lib.db_manage import DbManage
465 import tarfile 465 import tarfile
466 import shutil 466 import shutil
467 from os.path import dirname as dn, join as jn, abspath 467 from os.path import dirname as dn, join as jn, abspath
468 from rhodecode.tests import REPO_PATH, NEW_REPO_PATH 468 from rhodecode.tests import REPO_PATH, NEW_REPO_PATH, FORK_REPO_PATH
469 469
470 log = logging.getLogger('TestEnvCreator') 470 log = logging.getLogger('TestEnvCreator')
471 # create logger 471 # create logger
472 log.setLevel(logging.DEBUG) 472 log.setLevel(logging.DEBUG)
473 log.propagate = True 473 log.propagate = True
503 log.debug('REMOVING %s', REPO_PATH) 503 log.debug('REMOVING %s', REPO_PATH)
504 shutil.rmtree(REPO_PATH) 504 shutil.rmtree(REPO_PATH)
505 if os.path.isdir(NEW_REPO_PATH): 505 if os.path.isdir(NEW_REPO_PATH):
506 log.debug('REMOVING %s', NEW_REPO_PATH) 506 log.debug('REMOVING %s', NEW_REPO_PATH)
507 shutil.rmtree(NEW_REPO_PATH) 507 shutil.rmtree(NEW_REPO_PATH)
508 if os.path.isdir(FORK_REPO_PATH):
509 log.debug('REMOVING %s', FORK_REPO_PATH)
510 shutil.rmtree(FORK_REPO_PATH)
508 511
509 cur_dir = dn(dn(abspath(__file__))) 512 cur_dir = dn(dn(abspath(__file__)))
510 tar = tarfile.open(jn(cur_dir, 'tests', "vcs_test.tar.gz")) 513 tar = tarfile.open(jn(cur_dir, 'tests', "vcs_test.tar.gz"))
511 tar.extractall('/tmp') 514 tar.extractall('/tmp')
512 tar.close() 515 tar.close()