svn-hooks: fix Trac support and tests