# HG changeset patch # User Marcin Kuzminski # Date 1326949888 -7200 # Node ID a7a282a902b207ce34e830d643c79b7ab52e3b35 # Parent 24aeb43bbf5147c4f1947aeb80abaa80db2bb53d nicer setup question about repo path diff -r 24aeb43bbf51 -r a7a282a902b2 rhodecode/lib/db_manage.py --- a/rhodecode/lib/db_manage.py Thu Jan 19 07:11:18 2012 +0200 +++ b/rhodecode/lib/db_manage.py Thu Jan 19 07:11:28 2012 +0200 @@ -100,6 +100,13 @@ from rhodecode.lib.dbmigrate.migrate.exceptions import \ DatabaseNotControlledError + if 'sqlite' in self.dburi: + print ( + '********************** WARNING **********************\n' + 'Make sure your version of sqlite is at least 3.7.X. \n' + 'Earlier versions are known to fail on some migrations\n' + '*****************************************************\n' + ) upgrade = ask_ok('You are about to perform database upgrade, make ' 'sure You backed up your database before. ' 'Continue ? [y/n]') @@ -130,7 +137,8 @@ # UPGRADE STEPS #====================================================================== class UpgradeSteps(object): - """Those steps follow schema versions so for example schema + """ + Those steps follow schema versions so for example schema for example schema with seq 002 == step_2 and so on. """ @@ -168,7 +176,7 @@ #CALL THE PROPER ORDER OF STEPS TO PERFORM FULL UPGRADE for step in upgrade_steps: print ('performing upgrade step %s' % step) - callable = getattr(UpgradeSteps(self), 'step_%s' % step)() + getattr(UpgradeSteps(self), 'step_%s' % step)() def fix_repo_paths(self): """Fixes a old rhodecode version path into new one without a '*' @@ -343,8 +351,10 @@ log.info('Setting up repositories config') if not self.tests and not test_repo_path: - path = raw_input('Specify valid full path to your repositories' - ' you can change this later in application settings:') + path = raw_input( + 'Enter a valid path to store repositories. ' + 'All repositories in that path will be added automatically:' + ) else: path = test_repo_path path_ok = True