diff rhodecode/model/scm.py @ 3090:280ac97cb37f beta

don't recurse into '.hg' of removed repositories Walking through the content of a '.hg' that has been renamed to 'rm__.hg' on startup can take a lot of time.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 12 Dec 2012 18:11:33 +0100
parents 00498b3e4c88
children a5f0bc867edc 80abc924a38c
line wrap: on
line diff
--- a/rhodecode/model/scm.py	Thu Dec 13 03:34:19 2012 +0100
+++ b/rhodecode/model/scm.py	Wed Dec 12 18:11:33 2012 +0100
@@ -225,7 +225,7 @@
 
         for name, path in get_filesystem_repos(repos_path, recursive=True):
             # skip removed repos
-            if REMOVED_REPO_PAT.match(name):
+            if REMOVED_REPO_PAT.match(name) or path[0] is None:
                 continue
 
             # name need to be decomposed and put back together using the /