The attached patch fixes a few issues with the plugin:
- tolerate dashes in the regular expression and don't require the RELEASE string in the tag (a bit site-specific)
- add the -r flag to svnlook so the version argument actually works (otherwise it just takes the latest version, which works most of the time, unless two commits happen at the same time)
- figure out the trac repo out of the last part of the svn repo (/var/lib/svn/foo will make the hook work on /var/lib/trac/foo), instead of relying on the committed path. we now use the "project" as part of the version instead