Edgewall Software

Changes between Version 6 and Version 7 of 1.1/TracEnvironment


Ignore:
Timestamp:
May 20, 2015, 7:11:05 AM (9 years ago)
Author:
Ryan J Ollos
Comment:

Remove obsolete information about [trac] section. Refer to TracRepositoryAdmin for more information about configuring repositories to avoid redundancy.

Legend:

Unmodified
Added
Removed
Modified
  • 1.1/TracEnvironment

    v6 v7  
    9494== Source Code Repository
    9595
    96 Since Trac 0.12, a single environment can be connected to more than one repository. There are many different ways to connect repositories to an environment, see TracRepositoryAdmin. This page also details the various attributes that can be set for a repository, such as `type`, `url`, `description`.
     96A single environment can be connected to more than one repository. However, by default Trac is not connected to any source code repository, and the ''Browse Source'' toolbar item will not be displayed.
    9797
    98 In Trac 0.12 `trac-admin` no longer asks questions related to repositories. Therefore, by default Trac is not connected to any source code repository, and the ''Browse Source'' toolbar item will not be displayed.
    99 You can also explicitly disable the `trac.versioncontrol.*` components, which are otherwise still loaded.
    100 {{{#!ini
    101 [components]
    102 trac.versioncontrol.* = disabled
    103 }}}
    104 
    105 For some version control systems, it is possible to specify not only the path to the repository, but also a ''scope'' within the repository. Trac will then only show information related to the files and changesets below that scope. The Subversion backend for Trac supports this. For other types, check the corresponding plugin's documentation.
    106 
    107 Example of a configuration for a Subversion repository used as the default repository:
    108 {{{#!ini
    109 [repositories]
    110 .type = svn
    111 .dir = /path/to/your/repository
    112 }}}
    113 
    114 The configuration for a scoped Subversion repository would be:
    115 {{{#!ini
    116 [repositories]
    117 .type = svn
    118 .dir = /path/to/your/repository/scope/within/repos
    119 }}}
     98There are many different ways to connect repositories to an environment, see TracRepositoryAdmin. A single repository can be specified when the environment is created by passing the optional arguments `repository_type` and `repository_dir` to the `initenv` command.
    12099
    121100== Directory Structure