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

[TSVN] Re: TortoiseSVN not displaying standard error text in error message

From: Mitch Arends <mjarends_at_us.ibm.com>
Date: 2004-12-13 17:57:06 CET

Jens Scheidtmann wrote:
> dev-return-10434-jens.scheidtmann=bayerbbs.com@tortoisesvn.tigris.org writes:
>
>
>>Simon Large wrote:
>>
>>>Mitch Arends wrote:
>>>
>>>
>>>
>>>>>The .bat file looks like the following:
>>>>>perl C:\SVNScripts\check-case-insensitive.pl -debug -debug -debug %1
>>>>>%2
>>>>>
>>>>>IF ERRORLEVEL 1 GOTO :ERROR
>>>>>exit 0
>>>>>
>>>>>
>>>>>>ERROR
>>>>>
>>>>>REM echo Error found in commit 1>&2
>>>>>exit 1
>>>>>
>>>>>I used the lines in the Perl script to created the .bat file. Thanks
>>>>>in advance.
>
>
> Replace _every_ occurence of STDERR with STDOUT in the perl script.
>
> Especially the one at the end, where it says:
>
> --------
> if (defined($failmsg)) {
> print STDERR "\nFile name case conflict found:\n" . $failmsg . "\n";
> exit 1;
> }
>
> exit 0;
> --------
>
> Make this read:
>
> ...
> print STDOUT "\nFile name case conflict found:\n" . $failmsg . "\n";
> ^^^^^^
> ...
>
> Most other output is related to debugging messages (there's the
> variable $debug mentioned in ... if () line endings).
>
> HTH,
>
> Jens
>

Thanks a lot for the assistance. Placing the error message to STDOUT
worked. The .bat file now looks like this:

perl C:\SVNScripts\check-case-insensitive.pl %1 %2 1>&2

IF ERRORLEVEL 1 GOTO :ERROR

REM The hook has completed without any errors
exit 0

:ERROR
        exit 1

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Dec 13 17:58:19 2004

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.