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

[TSVN] Bug: Hook script output not captured

From: Valik <vampire.valik.ml_at_gmail.com>
Date: 2005-08-16 20:32:32 CEST

Using TortoiseSVN 1.2.1, Build 4168, the stderr stream is not captured
when a pre-commit (And possibly other) hook script fails. For example,
take the following batch file:

REM Start Batch
echo Forced failure >&2
exit 1
REM End Batch

With that set up as a pre-commit hook, TSVN will (correctly) fail, but
the string "Forced failure" is not displayed. This is all the output I
get from the commit dialog using the above batch file:

Modified: Test WC\New Text Document.txt
Sending Content: C:\Test WC\New Text Document.txt
Error: Commit failed (details follow):

I tried the same thing with Subversion command-line client, version
1.2.1 and get this output:

C:\>svn commit "Test WC" -m "Message"
Sending Test WC\New Text Document.txt
Transmitting file data .svn: Commit failed (details follow):
svn: 'pre-commit' hook failed with error output:
Forced failure

-- 
- Valik
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Aug 16 20:36:25 2005

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.