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
postcommit.bat
REM POST COMMIT SCRIPT
mv <drive:>[\file_name.patch] drive:>[\file_name%1.patch]
:No1
: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
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
|
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.