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

How to output warnings in pre-commit hook?

From: Olivier Sannier <obones_at_free.fr>
Date: Fri, 18 Apr 2008 15:47:18 +0200

Hi all,

Is there a way to get warning messages sent to the user via a pre-commit
hook?
I mean, I can get an error message if the pre-commit hook returns a non
zero value, but what I would like to do is accept the commit while still
displaying a warning message that the user will see in the result
message from his commit.
This way I can inform of suspicious commits without preventing them as
the detection of such items can not decide by itself to fail the commit.
I tried to write on STDERR and still return 0 in my pre-commit hook, but
I could not get the output to show in the output of svn commit.

Thanks for your help

Cheers
Olivier

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-18 15:47:42 CEST

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