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

Re: Client side hooks - failed .bat test

From: Steve Williams <stevewilliams_at_kromestudios.com>
Date: 2006-09-05 08:35:58 CEST

Hans-Emil Skogh wrote:
> >> I have made a first try at using the client side hooks capability
> of the
> >> latest nightly.
> >> --- schnipp ---
> >> @ECHO OFF
> >> ECHO Testing!
> >> EXIT /B 1
> >> --- schnipp ---
> > Unfortunately, you won't see the output of your echo line. The problem
> > is that to redirect the stderr output of the scripts, we also have to
> > redirect stdout (haven't found a way to just redirect stderr :( ). So
> > even if the cmd window stays open, you won't see any output there.
> Sorry for being unclear; I was expecting to see the output in the
> TSVN-error-dialog.
>
> My point of view when testing client-hook-scripting for TSVN is that I
> will expect it to behave as closely as possible to hook-scripting for
> SVN under windows. I think this is a reasonable goal. What do you think?
>
> In the case of SVN it will show stdout- (and stderr-)output in the
> error-message if a hook fails.
>
> Hans-Emil

You will see stdout when using SVN from the command-line because you are
probably in a command prompt at the time, and stdout is linked to that
command prompt.

What you want in your batch file is the following

echo testing 2>&1
exit 1

This will redirect the word "testing" from stdout to stderr, and thus it
will show up in the TSVN commit results window.

-- 
Sly
This message and its attachments may contain legally privileged or confidential information. This message is intended for the use of the individual or entity to which it is addressed. If you are not the addressee indicated in this message, or the employee or agent responsible for delivering the message to the intended recipient, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments, which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by the sending company or any of its related entities. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Sep 5 08:36:18 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.