| 141 | '''Note''': For more information about the Explicit Syncronization method, plesae read TracRepositoryAdmin#ExplicitSync |
| 142 | |
| 143 | First, edit the '''trac.ini''' file, located in ''/var/lib/trac/YourProject/conf/''. Modify the "repository_sync_per_request" directive and set it to an empty value. |
| 144 | |
| 145 | Now you need to create the Subversion hooks. First, create the post-commit hook the in ''/var/lib/svn/YourProject/hooks/'' directory, with the following content: |
| 146 | {{{ |
| 147 | #!/bin/sh |
| 148 | export PYTHON_EGG_CACHE="/path/to/dir" |
| 149 | /usr/bin/trac-admin /path/to/env changeset added "$1" "$2" |
| 150 | }}} |
| 151 | |