Changes between Version 4 and Version 5 of TracRepositoryAdmin
- Timestamp:
- Feb 1, 2021, 2:06:05 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracRepositoryAdmin
v4 v5 90 90 91 91 `repository set <repos> <key> <value>`:: 92 Set the attribute `<key>` to `<value>` for the repository `<repos>`. 92 Set the attribute `<key>` to `<value>` for the repository `<repos>`. 93 93 94 94 Note that the default repository has an empty name, so it will need to be quoted when running `trac-admin` from a shell. Alternatively, the name `(default)` can be used instead, for example when running `trac-admin` in interactive mode. … … 160 160 Follow the help in the documentation header of the script to configure `trac-svn-hook`. You'll need to minimally set the `TRAC_ENV` variable, and may also need to set `TRAC_PATH` and `TRAC_LD_LIBRARY_PATH` for a non-standard installation or a virtual environment. 161 161 162 Configuring the hook environment variables is even easier in Subversion 1.8 and later using the [http://svnbook.red-bean.com/en/1.8/svn.reposadmin.create.html#svn.reposadmin.hooks.configuration hook script environment] configuration. Rather than directly editing `trac-svn-hook` to set the environment variables, or exporting them from the hook that invokes `trac-svn-hook`, they can be configured through the repository `conf/hooks-env` file. 162 Configuring the hook environment variables is even easier in Subversion 1.8 and later using the [http://svnbook.red-bean.com/en/1.8/svn.reposadmin.create.html#svn.reposadmin.hooks.configuration hook script environment] configuration. Rather than directly editing `trac-svn-hook` to set the environment variables, or exporting them from the hook that invokes `trac-svn-hook`, they can be configured through the repository `conf/hooks-env` file. 163 163 164 164 Here is an example, using a Python virtual environment at `/usr/local/venv`: … … 222 222 tracenv=/path/to/env # set to your Trac environment's path 223 223 repos= # set to your repository's name 224 REV=$(git rev-parse HEAD) 224 REV=$(git rev-parse HEAD) 225 225 trac-admin "$tracenv" changeset added "$repos" $REV 226 226 }}}