diff rhodecode/model/scm.py @ 3228:ba2e2514a01a beta

reposcann should skip directories with starting with '.' some code cleanup, moved all skipping to get_repos function
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 26 Jan 2013 20:11:55 +0100
parents b4daef4cc26d
children 21cccfea18bf
line wrap: on
line diff
--- a/rhodecode/model/scm.py	Fri Jan 25 16:42:02 2013 +0100
+++ b/rhodecode/model/scm.py	Sat Jan 26 20:11:55 2013 +0100
@@ -46,7 +46,7 @@
 from rhodecode.lib import helpers as h
 from rhodecode.lib.utils2 import safe_str, safe_unicode
 from rhodecode.lib.auth import HasRepoPermissionAny, HasReposGroupPermissionAny
-from rhodecode.lib.utils import get_repos as get_filesystem_repos, make_ui, \
+from rhodecode.lib.utils import get_filesystem_repos, make_ui, \
     action_logger, REMOVED_REPO_PAT
 from rhodecode.model import BaseModel
 from rhodecode.model.db import Repository, RhodeCodeUi, CacheInvalidation, \
@@ -238,10 +238,6 @@
         repos = {}
 
         for name, path in get_filesystem_repos(repos_path, recursive=True):
-            # skip removed repos
-            if REMOVED_REPO_PAT.match(name) or path[0] is None:
-                continue
-
             # name need to be decomposed and put back together using the /
             # since this is internal storage separator for rhodecode
             name = Repository.normalize_repo_name(name)
@@ -261,7 +257,7 @@
                         repos[name] = klass(path[1])
             except OSError:
                 continue
-
+        log.debug('found %s paths with repositories' % (len(repos)))
         return repos
 
     def get_repos(self, all_repos=None, sort_key=None, simple=False):