comparison pylons_app/model/hg_model.py @ 473:6b934c9607e7 celery

Improved testing scenarios. Made test env creator Fixed hg_model error message some other tweeks and fixes Models fixe for uniq email, and removed some extra not needed imports from model main module
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 13 Sep 2010 01:23:58 +0200
parents c3236d7febad
children fdebc5f67dc6
comparison
equal deleted inserted replaced
472:91292686c1ed 473:6b934c9607e7
100 if repos_path[-1] in ['*', '**']: 100 if repos_path[-1] in ['*', '**']:
101 repos_path = repos_path[:-1] 101 repos_path = repos_path[:-1]
102 if repos_path[0] != '/': 102 if repos_path[0] != '/':
103 repos_path[0] = '/' 103 repos_path[0] = '/'
104 if not os.path.isdir(os.path.join(*repos_path)): 104 if not os.path.isdir(os.path.join(*repos_path)):
105 raise RepositoryError('Not a valid repository in %s' % path[0][1]) 105 raise RepositoryError('Not a valid repository in %s' % path)
106 if not repos_path.endswith('*'): 106 if not repos_path.endswith('*'):
107 raise VCSError('You need to specify * or ** at the end of path ' 107 raise VCSError('You need to specify * or ** at the end of path '
108 'for recursive scanning') 108 'for recursive scanning')
109 109
110 check_repo_dir(repos_path) 110 check_repo_dir(repos_path)