comparison rhodecode/config/environment.py @ 2622:0ffcbeb76e4f beta

Do cleanup on repo2db mapper - fixed issue with install git hook function
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 16 Jul 2012 16:02:46 +0200
parents 380d6d86da1f
children fc38df41b9b7
comparison
equal deleted inserted replaced
2621:4f3ecd7357a2 2622:0ffcbeb76e4f
85 # Setup the SQLAlchemy database engine 85 # Setup the SQLAlchemy database engine
86 sa_engine_db1 = engine_from_config(config, 'sqlalchemy.db1.') 86 sa_engine_db1 = engine_from_config(config, 'sqlalchemy.db1.')
87 init_model(sa_engine_db1) 87 init_model(sa_engine_db1)
88 88
89 repos_path = make_ui('db').configitems('paths')[0][1] 89 repos_path = make_ui('db').configitems('paths')[0][1]
90 repo2db_mapper(ScmModel().repo_scan(repos_path)) 90 repo2db_mapper(ScmModel().repo_scan(repos_path),
91 remove_obsolete=True,)
91 set_available_permissions(config) 92 set_available_permissions(config)
92 config['base_path'] = repos_path 93 config['base_path'] = repos_path
93 set_rhodecode_config(config) 94 set_rhodecode_config(config)
94 # CONFIGURATION OPTIONS HERE (note: all config options will override 95 # CONFIGURATION OPTIONS HERE (note: all config options will override
95 # any Pylons config options) 96 # any Pylons config options)