Mercurial > kallithea
diff rhodecode/config/environment.py @ 3778:88f11b5eb6db beta
added initial_repo_scan flag for controll if repo scaning should be performed on every startup.
There's always paster repo-scan or repo scann triggered from admin pannel
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 22 Apr 2013 14:20:14 +0200 |
parents | 76ae40e514eb |
children | d7488551578e |
line wrap: on
line diff
--- a/rhodecode/config/environment.py Mon Apr 22 14:11:53 2013 +0200 +++ b/rhodecode/config/environment.py Mon Apr 22 14:20:14 2013 +0200 @@ -96,8 +96,9 @@ init_model(sa_engine_db1) repos_path = make_ui('db').configitems('paths')[0][1] - repo2db_mapper(ScmModel().repo_scan(repos_path), - remove_obsolete=False, install_git_hook=False) + if str2bool(config.get('initial_repo_scan', True)): + repo2db_mapper(ScmModel().repo_scan(repos_path), + remove_obsolete=False, install_git_hook=False) set_available_permissions(config) config['base_path'] = repos_path set_rhodecode_config(config)