Edgewall Software

Changes between Version 4 and Version 5 of Ubuntu-11.04-Subversion


Ignore:
Timestamp:
Dec 16, 2010, 10:01:00 PM (13 years ago)
Author:
gacevedo@…
Comment:

Added the second SVN hook script

Legend:

Unmodified
Added
Removed
Modified
  • Ubuntu-11.04-Subversion

    v4 v5  
    146146{{{
    147147#!/bin/sh
    148 export PYTHON_EGG_CACHE="/path/to/dir"
     148export PYTHON_EGG_CACHE="/path/to/cache/dir"
    149149/usr/bin/trac-admin /path/to/env changeset added "$1" "$2"
    150150}}}
     151
     152Make sure you give the script execution perms:
     153{{{
     154sudo chmod +x /var/lib/svn/YourProject/hooks/post-commit
     155}}}
     156
     157Another 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
     160export PYTHON_EGG_CACHE="/path/to/cache/dir"
     161/usr/bin/trac-admin /path/to/env changeset modified "$1" "$2"
     162}}}
     163
     164Again, make sure you give exec perms to the script.
    151165
    152166===== Automatic reference to the SVN changesets in Trac tickets =====