[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-10 17:14:40 CET

Mitch Arends wrote:
> Jens Scheidtmann wrote:
>
>> dev-return-10411-jens.scheidtmann=bayerbbs.com@tortoisesvn.tigris.org
>> writes:
>>
>>
>>> I recently installed the check-case-insensitive.pl script on our SVN
>>> server. The script is working correctly except for the fact that
>>> TortoiseSVN does not display the error message returned from the Perl
>>> script. It only displays the text from the calling .bat file. Has anyone
>>> experienced this or had luck getting the hook script to work? Thanks in
>>> advance for any help.
>>
>>
>>
>> Where did you get that perl script? Then I can have a look at it. How
>> does your .bat look like?
>>
>> I guess it's a STDOUT/STDERR problem, ie. the perl script uses STDERR
>> as output, while the .bat outputs to stdout. You probably need to use
>> redirection to merge both outputs.
>> Something along the lines of
>> perl many option here 2>1
>> or 2&>1 or 2>&1
>>
>> (I always get confused what the correct syntax is)
>>
>> HTH,
>>
>> Jens
>>
>
> Thanks for the respons Jens,
>
> The perl script comes from here:
> http://svn.collab.net/viewcvs/svn/trunk/contrib/hook-scripts/
>
> 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.

I just notice that the .bat file might be a little misleading - I
disabled the ECHO command on purpose. Even w/ the command enabled,
TortoiseSVN does not return the error message from the Perl script.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Dec 10 17:19:06 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.