Changes between Version 4 and Version 5 of Ubuntu-11.04-Subversion
- Timestamp:
- Dec 16, 2010, 10:01:00 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ubuntu-11.04-Subversion
v4 v5 146 146 {{{ 147 147 #!/bin/sh 148 export PYTHON_EGG_CACHE="/path/to/ dir"148 export PYTHON_EGG_CACHE="/path/to/cache/dir" 149 149 /usr/bin/trac-admin /path/to/env changeset added "$1" "$2" 150 150 }}} 151 152 Make sure you give the script execution perms: 153 {{{ 154 sudo chmod +x /var/lib/svn/YourProject/hooks/post-commit 155 }}} 156 157 Another important hook script to have is post-revprop-change. The procedures are similiar as above, but the script is slightly different: 158 {{{ 159 #!/bin/sh 160 export PYTHON_EGG_CACHE="/path/to/cache/dir" 161 /usr/bin/trac-admin /path/to/env changeset modified "$1" "$2" 162 }}} 163 164 Again, make sure you give exec perms to the script. 151 165 152 166 ===== Automatic reference to the SVN changesets in Trac tickets =====