Description

Refactro Post-Commit-Hook to be configuration independent (#18)

Currently, TRAC_ENV and TRAC_URL need to be configured manually.

Change script, thus it can be called with

/usr/bin/python /usr/local/src/trac/contrib/trac-post-commit-hook \
 -r "$REV"       \
 -e "$REPOSR"    \

current configuration

REPOS="$1"
REV="$2"
LOG=`/usr/bin/svnlook log -r $REV $REPOS`
AUTHOR=`/usr/bin/svnlook author -r $REV $REPOS`TRAC_ENV='/somewhere/trac/project/'
TRAC_URL='http://trac.mysite.com/project/'

/usr/bin/python /usr/local/src/trac/contrib/trac-post-commit-hook \
 -p "$TRAC_ENV"  \
 -r "$REV"       \
 -u "$AUTHOR"    \
 -m "$LOG"       \
 -s "$TRAC_URL"
Changes

Change History

Changed 3 years ago by lazaridis_com

  • priority changed from normal to minor

Changed 3 years ago by lazaridis_com

  • milestone changed from <trac.ticket.model.Milestone object at 0x427e47ac> to release 0.1

Changed 3 years ago by lazaridis_com

  • milestone changed from rework to <trac.ticket.model.Milestone object at 0x427e47ac>

Milestone rework deleted

Changed 4 years ago by lazaridis_com

  • milestone changed from setup to rework