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

SV: Re: Re: Client side hooks - failed .bat test

From: Hans-Emil Skogh <Hans-Emil.Skogh_at_tritech.se>
Date: 2006-09-05 12:33:38 CEST

>> In the case of SVN it will show stdout- (and stderr-)output in the
>> error-message if a hook fails.
> I don't think svn will show you the stdout output in an error message.

You are of course right. My bad.

The correct bat-script preventing commits to a WC:

--- schnipp ---
@ECHO OFF
ECHO Testing! 1>&2
EXIT 1
--- schnipp ---

The output of echo being redirected from stdout to stderr.

Strangely it works both with and without explicitly naming "cmd /c"
before the .bat-file itself... And I still can't figure out why the
/B-flag does not work on the exit-command. It does for SVN-hooks. (This
one I have double-checked. :-) )

Hans-Emil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Sep 5 12:33:38 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

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