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

Post-commit client script not working

From: Robby Ceyssens <Robby_at_Livios.be>
Date: Fri, 16 Apr 2010 09:28:50 +0200

I'm trying to setup a client side post-commit script (post-commit.bat)
in Tortoise (version 1.6.7) on Windows 7 x64. I followed the docs about
configuring a client side post-commit script but the script doesn't get
executed. No error is displayed either.

The post-commit.bat script:

________________________________

@echo off
rem TortoiseSVN Client Side post-commit hook script
rem Put this into a Hooks folder on your workstation
rem with the accompanying vbs script
rem
rem Tortoise SVN will call this script with the following parameters
rem after the commit action
rem
rem script <Path> <Depth> <MessageFile> <Revision> <Error>

setlocal

set tsvnPath=%1
set tsvnDepth=%2
set tsvnMsgFile=%3
set tsvnRevision=%4
set tsvnError=%5
set tsvnCwd=%6

rem This gets the path of the script being called so that the vbs script

rem can be referenced correctly, as the script is run from a different
working folder
set tsvnHookScriptPath=%~dp0

set tsvnPostCommitScript=post-commit.vbs
set
tsvnHookScriptFinalPath="%tsvnHookScriptPath:"=%%tsvnPostCommitScript:"=
%"

echo Path %tsvnPath%
echo Depth %tsvnDepth%
echo MsgFile %tsvnMsgFile%
echo Revision %tsvnRevision%
echo Error %tsvnError%
echo Cwd %tsvnCwd%

rem type %tsvnMsgFile% | cscript %tsvnHookScriptFinalPath%
%tsvnRevision%

endlocal

pause

________________________________

 

Robby

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2584785

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-04-16 09:33:44 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.