[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

pre-commit hooks wity Ruby on Windows

From: Andreas Guther <Andreas.Guther_at_markettools.com>
Date: 2006-10-25 18:07:10 CEST


I am trying to get a pre-commit hook to work using Ruby on Windows but I
am failing so far to get SVN to capture the message returned by the

I am basically writing with puts the message and then use exit(1) to
exit the script. The Ruby script is called from my pre-commit.bat file
and I can see that it works but again, the message does not bubble up to
the client.

What is the right way to return a error message.

In batch files I am using something like the following

ECHO Please enter comment and then retry commit. 1>&2
exit 1

Is there something similar to do in Ruby?

Thanks in advance for any help.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 25 18:08:05 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.