[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: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-09-04 17:28:40 CEST

Hans-Emil Skogh wrote:
> I have made a first try at using the client side hooks capability of the
> latest nightly.
>
> I registered the following batch-script as a start-commit hook for a WC:
>
> --- 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.
But if you write something like this:

--- schnipp ---
echo test error message >&2
exit 1
--- schnipp ---

you will see the output in an error dialog which TSVN will show you (if
you configure TSVN to wait for the script to finish).

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 Mon Sep 4 17:28:54 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.