Changes between Version 29 and Version 30 of TracRepositoryAdmin
- Timestamp:
- Apr 2, 2013, 2:01:17 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracRepositoryAdmin
v29 v30 90 90 91 91 === Explicit synchronization === #ExplicitSync 92 This is the preferred method of repository synchronization. It requires setting the `[trac] repository_sync_per_request` option in [wiki:TracIni#trac-section trac.ini] to an empty value, and adding a call to `trac-admin` in the post-commit hook of each repository. Additionally, if a repository allows changing revision metadata, a call to `trac-admin` must be added to the post-revprop-changehook as well.92 This is the preferred method of repository synchronization. It requires setting the `[trac] repository_sync_per_request` option in [wiki:TracIni#trac-section trac.ini] to an empty value, and adding a call to `trac-admin` in the `post-commit` hook of each repository. Additionally, if a repository allows changing revision metadata, a call to `trac-admin` must be added to the `post-revprop-change` hook as well. 93 93 94 94 `changeset added <repos> <rev> [...]`:: … … 100 100 The `<repos>` argument can be either a repository name (use "`(default)`" for the default repository) or the path to the repository. 101 101 102 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 Trac Plugins] for more information.102 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 Trac Plugins] for more information. 103 103 104 104 ==== Subversion ==== … … 140 140 ==== Git ==== 141 141 142 Git hooks can be used in the same way for explicit syncing of git repositories. Add the following to `.git/hooks/post-commit`:142 Git hooks can be used in the same way for explicit syncing of Git repositories. Add the following to `.git/hooks/post-commit`: 143 143 {{{#!sh 144 #!/bin/sh 144 145 REV=$(git rev-parse HEAD) 145 trac-admin /path/to/env changeset added < my-repository> $REV146 trac-admin /path/to/env changeset added <repos> $REV 146 147 }}} 148 149 The `<repos>` argument can be either a repository name (use "`(default)`" for the default repository) or the path to the repository. 147 150 148 151 ==== Mercurial ====