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

Re: Client side hooks - failed .bat test

From: Peter McNab <mcnab_p_at_melbpc.org.au>
Date: 2006-09-04 17:17:28 CEST

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 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.


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

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.