diff -u scripts/trac-admin scripts2/trac-admin
|
old
|
new
|
|
| 443 | 443 | raise KeyboardInterrupt |
| 444 | 444 | except Exception, e: |
| 445 | 445 | print repository_dir, 'Repository access error: %s' % e |
| 446 | | |
| | 446 | print |
| | 447 | print ' Please specify the relative subpath in the Subversion repository.' |
| | 448 | print ' Leave this blank to show entire repository ' |
| | 449 | print |
| | 450 | while 1: |
| | 451 | try: |
| | 452 | drp = '' |
| | 453 | prompt = 'Repository Subpath [%s]> ' % drp |
| | 454 | repository_path = raw_input(prompt) or drp |
| | 455 | break |
| | 456 | except KeyboardInterrupt: |
| | 457 | raise KeyboardInterrupt |
| 447 | 458 | print |
| 448 | 459 | print ' Please enter location of Trac page templates.' |
| 449 | 460 | print ' Default is the location of the site-wide templates' \ |
| … |
… |
|
| 472 | 483 | print ' Configuring Project' |
| 473 | 484 | print ' trac.repository_dir' |
| 474 | 485 | self.__env.set_config('trac', 'repository_dir', repository_dir) |
| | 486 | print ' trac.repository_path' |
| | 487 | self.__env.set_config('trac', 'repository_path', repository_path) |
| 475 | 488 | print ' trac.templates_dir' |
| 476 | 489 | self.__env.set_config('trac', 'templates_dir', templates_dir) |
| 477 | 490 | print ' project.name' |
| … |
… |
|
| 484 | 497 | |
| 485 | 498 | from trac import sync |
| 486 | 499 | print ' Indexing repository' |
| 487 | | sync.sync(cnx, rep, fs_ptr, pool) |
| | 500 | sync.sync(cnx, rep, repository_path, fs_ptr, pool) |
| 488 | 501 | print 'Done.' |
| 489 | 502 | except Exception, e: |
| 490 | 503 | print 'Failed to initialize database.', e |