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

not able to obtain client side Post-commit hook paramters.

From: MarK Kidd <mark_at_kidd.org.uk>
Date: Wed, 9 Nov 2011 08:09:51 -0800 (PST)

Hi,

 I'm using TortoiseSVN 1.6.16 and I have tried to create a start commit and post commit hook scripts to create a patch file then rename it with the post-commit REVISION param

my batch files are follows

  

startcommit.bat

REM START COMMIT SCRIPT
svn diff <drive:>[path_to_working_copy > <drive:>[\file_name.patch]

  

postcommit.bat

REM POST COMMIT SCRIPT

mv <drive:>[\file_name.patch] drive:>[\file_name%1.patch]

  

:No1
ECHO no revision

:End

  

my hooks are set up as follows

  

Hook type: Start Commit Hook

  

Working Copy Path:

<drive:>[\path_to_working_copy]

  

Command Line to execute:

"<drive:>\startcommit.bat"

  

  

Hook type: Post-Commit Hook

  

Working Copy Path:

<drive:>[\path_to_working_copy]

  

Command Line to execute:

"<drive:>\postcommit.bat"

  

Start works find but I can't get the parameters from hook.

  

Where am I going wrong

  

I have tried

Command Line to execute:

"<drive:>\postcommit.bat" REVISION

  

Command Line to execute:

"<drive:>\postcommit.bat" "%REVISION%"

  

Thanks

Mark

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

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-11-09 17:51:40 CET

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.