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

Re: svn behavior when the 'post-commit' hook fails

From: David Weintraub <qazwart_at_gmail.com>
Date: Thu, 12 Mar 2009 11:46:53 -0400

On Wed, Mar 11, 2009 at 10:44 PM, Vincent Lefevre
<vincent+svn_at_vinc17.org> wrote:
>> If not, add a few "print STDERR ..." statements to your post-commit
>> trigger. Subversion will only output STDERR when the hook fails and
>> never outputs STDOUT. When the hook fails, at least you have some
>> information as to what is going on with your program.
>
> I don't want to output such messages in general. Only when the hook
> fails.

That's the beauty of putting debugging information in STDERR messages:
The hook won't print them when the hook succeeds, only when it fails.

In other words, you can pepper your script with STDERR messages and
leave them there. If the hook works, no one will be the wiser. If the
hook fails, you'll have information why it failed.

--
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1313418
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-12 16:47:51 CET

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.