[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: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-09-04 17:25:22 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 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!

Make sure the command line looks something like this:
cmd /c path/to/your/bat/file.bat

You can't start the bat script directly, because only 'cmd' knows what
to do with them.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
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:25:48 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.