diff rhodecode/model/repo.py @ 1507:7d687ed11929 beta

changed check_... functions from their stupid names to something less retarded :)
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 01 Oct 2011 21:51:28 +0300
parents bb6ba7442293
children bf263968da47 142a05597cba
line wrap: on
line diff
--- a/rhodecode/model/repo.py	Sat Oct 01 21:40:34 2011 +0300
+++ b/rhodecode/model/repo.py	Sat Oct 01 21:51:28 2011 +0300
@@ -301,7 +301,7 @@
         :param parent_id:
         :param clone_uri:
         """
-        from rhodecode.lib.utils import check_repo_fast
+        from rhodecode.lib.utils import is_valid_repo
         
         if new_parent_id:
             paths = Group.get(new_parent_id).full_path.split(Group.url_sep())
@@ -312,7 +312,7 @@
         repo_path = os.path.join(*map(lambda x:safe_str(x),
                                 [self.repos_path, new_parent_path, repo_name]))
 
-        if check_repo_fast(repo_path, self.repos_path) is False:
+        if is_valid_repo(repo_path, self.repos_path) is False:
             log.info('creating repo %s in %s @ %s', repo_name, repo_path,
                      clone_uri)
             backend = get_backend(alias)