source: revtreeplugin/0.11/hooks/svnstubs/pre-commit

Last change on this file was 3581, checked in by Emmanuel Blot, 15 years ago

Update hook scripts for the RevtreePlugin/LogEnhancer

  • Property svn:eol-style set to native
File size: 474 bytes
RevLine 
[2638]1#!/bin/sh
2
3REPOS="$1"
4TXN="$2"
5
[3581]6SELF=`readlink -f $0`
7CONF=`dirname ${SELF}`/hook.conf
8if [ -f ${CONF} ]; then
9    . ${CONF}
[2638]10else
[3581]11    echo "Missing hook configuration file (${CONF})" >&2
12    exit -1
[2638]13fi
14
[3581]15export PYTHONPATH=$TRACPATH:$GENSHIPATH
16export PYTHON_EGG_CACHE
17export PYTHON=`which python2.5`
[2638]18echo "Transaction: $TXN" >> $LOGFILE
[3581]19${PYTHON} ${HOOKPATH}/trac-commit-hook -d "$REPOS" -t "$TXN" -p "$TRAC_ENV" 
[2638]20RC=$?
21echo "RESULT $RC" >>  $LOGFILE
22[ $RC == 0 ] || exit 1
23
Note: See TracBrowser for help on using the repository browser.