Changes between Version 7 and Version 8 of 1.3/TracRepositoryAdmin
- Timestamp:
- Aug 20, 2017, 11:33:58 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
1.3/TracRepositoryAdmin
v7 v8 5 5 6 6 * Enable the repository connector(s) for the version control system(s) that you will use. 7 * Add repositories through the //Repositories// admin page, using `trac-admin` or by editing the [[wiki:TracIni#repositories-section|"[repositories]"]] section of trac.ini.7 * Add repositories through the //Repositories// admin page, using `trac-admin` or by editing the `[repositories]` section of [[wiki:TracIni#repositories-section|trac.ini]]. 8 8 * Synchronize the repositories with the cache, if using cached repositories. 9 9 * Configure your repository hooks to synchronize the repository. Alternatively you can synchronize on every request or disable the use of cached repositories, both of which have performance drawbacks and reduced functionality, but are easier to configure. … … 27 27 Trac supports multiple repositories per environment, and the repositories may be for different version control systems. Each repository must be defined in a repository configuration provider, the three supported by default are the [#ReposDatabase database store], the [#ReposTracIni trac.ini configuration file] and the [#ReposGitWeb GitWeb configuration file]. You can define your repositories through a mix of providers, but typically each repository should only be defined in a single provider. At the very least, the names used for each repository must be unique across all providers, otherwise duplicates will be discarded. 28 28 29 It is possible to define aliases of repositories ,that act as "pointers" to real repositories. This can be useful when renaming a repository, to avoid breaking links to the old name.29 It is possible to define aliases of repositories that act as "pointers" to real repositories. This can be useful when renaming a repository, to avoid breaking links to the old name. 30 30 31 31 There are a number of attributes that can be specified for each repository, and additional attributes may be available through plugins. A repository `name` and one of the `alias` or `dir` attributes are mandatory. All others are optional. … … 77 77 Repositories and repository attributes can be specified in the `[repositories]` section of [wiki:TracIni#repositories-section trac.ini]. Every attribute consists of a key structured as `{name}.{attribute}` and the corresponding value separated with an equal sign (`=`). The name of the default repository is empty. 78 78 79 The main advantage of specifying repositories in `trac.ini` is that they can be inherited from a global configuration (see the [wiki:TracIni#GlobalConfiguration global configuration] section of TracIni). One drawback is that ,due to limitations in the `ConfigParser` class used to parse `trac.ini`, the repository name is always lowercase.79 The main advantage of specifying repositories in `trac.ini` is that they can be inherited from a global configuration (see the [wiki:TracIni#GlobalConfiguration global configuration] section of TracIni). One drawback is that due to limitations in the `ConfigParser` class used to parse `trac.ini`, the repository name is always lowercase. 80 80 81 81 The following example defines two Subversion repositories named `project` and `lib`, and an alias to `project` as the default repository. This is a typical use case where a Trac environment previously had a single repository (the `project` repository), and was converted to multiple repositories. The alias ensures that links predating the change continue to resolve to the `project` repository. … … 99 99 === In !GitWeb #ReposGitWeb 100 100 101 [https://git-scm.com/book/en/v2/Git-on-the-Server-GitWeb GitWeb] is a CGI script that comes with Git for web-based visualization of repositories. Trac can read the gitweb-formatted `project.lists` file. The configuration is done through the [[TracIni#gitweb-repositories-section|"[gitweb-repositories]"]] section of trac.ini101 [https://git-scm.com/book/en/v2/Git-on-the-Server-GitWeb GitWeb] is a CGI script that comes with Git for web-based visualization of repositories. Trac can read the gitweb-formatted `project.lists` file. The configuration is done through the `[gitweb-repositories]` section of [[TracIni#gitweb-repositories-section|trac.ini]]. 102 102 103 103 == Repository caching … … 128 128 The `<repos>` argument can be either a repository name (use `"(default)"` for the default repository) or the path to the repository. 129 129 130 Note that you may have to set the environment variable `PYTHON_EGG_CACHE` to the same value as was used for the web server configuration before calling `trac-admin`, if you changed it from its default location. See [wiki:TracPlugins TracPlugins] for more information.130 Note that you may have to set the environment variable `PYTHON_EGG_CACHE` to the same value as was used for the web server configuration before calling `trac-admin`, if you changed it from its default location. See [wiki:TracPlugins#Settinguptheplugincache TracPlugins] for more information. 131 131 132 132 ==== Subversion … … 237 237 * '''`Fixes #123`''' - to reference this changeset and close `#123` ticket with the default status ''fixed'' 238 238 239 This functionality requires installing a post-commit hook as described in [#ExplicitSync explicit synchronization], and enabling the optional commit updater components by adding the following line to the `[components]` section of your [wiki:TracIni#components-section trac.ini], or enabling the components in the //Plugins// admin panel.239 This functionality requires installing a post-commit hook as described in [#ExplicitSync explicit synchronization], and enabling the optional commit updater components through the //Plugins// admin panel or by adding the following line to the `[components]` section of your [wiki:TracIni#components-section trac.ini]: 240 240 {{{#!ini 241 241 tracopt.ticket.commit_updater.* = enabled