Ticket #156: trac_dont_init_svn.patch
| File trac_dont_init_svn.patch, 1.6 KB (added by dmbrucker@…, 7 years ago) |
|---|
-
trac/scripts/admin.py
480 480 ## Initenv 481 481 _help_initenv = [('initenv', 482 482 'Create and initialize a new environment interactively'), 483 ('initenv <projectname> <db> <repospath > <templatepath>',483 ('initenv <projectname> <db> <repospath|--none> <templatepath>', 484 484 'Create and initialize a new environment from arguments')] 485 485 486 486 def do_initdb(self, line): … … 512 512 print ' Please specify the absolute path to the project Subversion repository.' 513 513 print ' Repository must be local, and trac-admin requires read+write' 514 514 print ' permission to initialize the Trac database.' 515 print ' Specify \'--none\' to skip initialization of the subversion' 516 print ' repository (use trac without source control).' 515 517 print 516 518 drp = '/var/svn/test' 517 519 prompt = 'Path to repository [%s]> ' % drp … … 580 582 self._do_wiki_load(default_dir('wiki'), cursor) 581 583 cnx.commit() 582 584 583 print ' Indexing repository' 584 repos = self.__env.get_repository() 585 repos.sync() 585 if repository_dir != '--none': 586 print ' Indexing repository' 587 repos = self.__env.get_repository() 588 repos.sync() 586 589 587 590 except Exception, e: 588 591 print 'Failed to initialize environment.', e
