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

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

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-09-05 12:48:43 CEST

On 9/5/06, Hans-Emil Skogh <Hans-Emil.Skogh@tritech.se> wrote:
> >> 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

Then you have tied the .bat extension to cmd in your windows
configuration. Not all people have done this.

> /B-flag does not work on the exit-command. It does for SVN-hooks. (This
> one I have double-checked. :-) )

svn hooks are called from a program which already *has* a console (svn
is a console client, and even the server part has one). TSVN doesn't
have a console.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
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:48:55 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.