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

Output from post-commit hook with exit code 1 is not seen in TSVN commit dialog

From: Ryan J Ollos <ryano_at_physiosonics.com>
Date: Thu, 2 Jun 2011 23:59:27 -0700 (PDT)

Issue produced with latest nightly build (21516) and the matching svn and
svnadmin binaries from the nightly build directory. To reproduce:

 1. Run the batch file [1]. You should see the output in [2].
 2. Right click on `TestPostCommitHookWithExitCode1-wc` and commit File2.txt
from TortoiseSVN. You should see the output shown in [3].

 [1]

ECHO OFF

SET ROOTDIR=%cd%
SET REPOS=TestPostCommitHookWithExitCode1
SET REPOS_PATH=file:///%ROOTDIR%/%REPOS%
SET WC=%ROOTDIR%\%REPOS%-wc
SET SVN=%ROOTDIR%\svn.exe
SET SVNADMIN=%ROOTDIR%\svnadmin.exe

IF EXIST "%REPOS%" rmdir /s /q "%REPOS%"
IF EXIST "%WC%" rmdir /s /q "%WC%"

"%SVNADMIN%" create "%REPOS%"
ECHO exit 1 > "%REPOS%"/hooks/post-commit.bat

"%SVN%" co "%REPOS_PATH%" "%WC%"
ECHO file1 > "%WC%"\File1.txt
svn add "%WC%"\File1.txt
svn ci -m "" "%WC%"\File1.txt

ECHO file2 > "%WC%"\File2.txt
svn add "%WC%"\File2.txt

pause

 [2]

A TestPostCommitHookWithExitCode1-wc\File1.txt
Adding TestPostCommitHookWithExitCode1-wc\File1.txt
Transmitting file data .
Committed revision 1.

Warning: post-commit hook failed (exit code 1) with no output.
A TestPostCommitHookWithExitCode1-wc\File2.txt

 [3]

http://old.nabble.com/file/p31763331/TsvnCommitDialogOutput.png

-- 
View this message in context: http://old.nabble.com/Output-from-post-commit-hook-with-exit-code-1-is-not-seen-in-TSVN-commit-dialog-tp31763331p31763331.html
Sent from the tortoisesvn - dev mailing list archive at Nabble.com.
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2756632
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-06-03 08:59:31 CEST

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.