Outputting SVN hook messages

Posted by Luke Segars on Server Fault See other posts from Server Fault or by Luke Segars
Published on 2010-04-12T21:08:22Z Indexed on 2010/04/12 21:13 UTC
Read the original article Hit count: 351

Filed under:
|

Hi all,

I have a subversion repository on my Linux machine that is set up to export a new build of a project every time a new commit occurs using a post-commit hook. I would really like to be able to provide an output message to the committer containing some status information once the hook completes. Is it possible to redirect the output of the hook to come after the standard commit messages?

For example:
owner@dev-machine:/working/dir$ svn commit
Sending FILE1
Sending FILE2
Transmissing file data ...
Committed revision 13.
Exporting project...
Successfully exported to mysite.com

The addition of the last two lines is the functionality I'm looking for.

© Server Fault or respective owner

Related posts about subversion

Related posts about svn