svn-hooks: add logic to housekeep hook logs

Also fix svn-hooks tests for previous changes.