comparison 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
comparison
equal deleted inserted replaced
3089:4cc9bb83ecb4 3090:280ac97cb37f
223 baseui = make_ui('db') 223 baseui = make_ui('db')
224 repos = {} 224 repos = {}
225 225
226 for name, path in get_filesystem_repos(repos_path, recursive=True): 226 for name, path in get_filesystem_repos(repos_path, recursive=True):
227 # skip removed repos 227 # skip removed repos
228 if REMOVED_REPO_PAT.match(name): 228 if REMOVED_REPO_PAT.match(name) or path[0] is None:
229 continue 229 continue
230 230
231 # name need to be decomposed and put back together using the / 231 # name need to be decomposed and put back together using the /
232 # since this is internal storage separator for rhodecode 232 # since this is internal storage separator for rhodecode
233 name = Repository.url_sep().join(name.split(os.sep)) 233 name = Repository.url_sep().join(name.split(os.sep))