Edgewall Software

Changes between Version 11 and Version 12 of 1.3/TracRepositoryAdmin


Ignore:
Timestamp:
Sep 10, 2017, 6:03:09 AM (7 years ago)
Author:
Ryan J Ollos
Comment:

Document changes in #12771.

Legend:

Unmodified
Added
Removed
Modified
  • 1.3/TracRepositoryAdmin

    v11 v12  
    136136In a Unix environment, the simplest way to configure explicit synchronization is by using the [trac:source:trunk/contrib/trac-svn-hook contrib/trac-svn-hook] script. `trac-svn-hook` starts `trac-admin` asynchronously to avoid slowing the commit and log editing operations. The script comes with a number of safety checks and usage advice. Output is written to a log file with prefix `svn-hooks-` in the environment `log` directory, which can make configuration issues easier to debug.
    137137
    138 There's no equivalent `trac-svn-hook.bat` for Windows yet, but the script can be run by Cygwin's bash.
    139 
    140 Follow the help in the documentation header of the script to configure `trac-svn-hook`. 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, they can be configured through the repository `conf/hooks-env` file. Replace the [trac:source:trunk/contrib/trac-svn-hook@:65-67#L61 configuration section] with:
    141 {{{#!sh
    142 export PATH=$PYTHON_BIN:$PATH
    143 export LD_LIBRARY_PATH=$PYTHON_LIB:$LD_LIBRARY_PATH
    144 }}}
    145 and set the variables `TRAC_ENV`, `PYTHON_BIN` and `PYTHON_LIB` in the `hooks-env` file. Here is an example, using a Python virtual environment at `/usr/local/venv`:
     138Follow the help in the documentation header of the script to configure `trac-svn-hook`. There's no equivalent `trac-svn-hook.bat` for Windows yet, but the script can be run by Cygwin's bash. The documentation header of `trac-svn-hook` contains a Cygwin configuration example.
     139
     140Configuring 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, they can be configured through the repository `conf/hooks-env` file.
     141
     142Here is an example, using a Python virtual environment at `/usr/local/venv`:
    146143{{{#!ini
    147144[default]