Hans-Emil Skogh wrote:
> I have made a first try at using the client side hooks capability of the latest nightly.
>
> I registered the following batch-script as a start-commit hook for a WC:
>
> --- schnipp ---
> @ECHO OFF
> ECHO Testing!
> EXIT /B 1
> --- schnipp ---
>
> The expected behaviour would have been to prevent all commits on this WC with the error-message "Testing!", instead nothing happens.
> If I remove the /B-flag from EXIT the return-code seems to be caught by TSVN and commiting is prevented, but still no error-message.
>
> Have I missed something please point it out to me!
>
> Hans-Emil
>
>
I haven't tried it yet but unless you want CMD windows to stay open then
omit the /B and make sure you also have and EXIT 0 statement for the
occasions you want the commit to proceed.
This is just my guess at getting CMD.exe itself to return the error code
to the hook process.
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Sep 4 17:17:43 2006