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

Re: Client Hook-Script

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 18 Mar 2010 18:50:38 +0100

On 18.03.2010 09:37, David Reher wrote:

> TortoiseSVN 1.6.7, Build 18415, Win2000 Pro
>
> I wanted to have a client hook-script which writes out the current rev.
> number.
>
> Therefore I wrote the following script:
>
> echo %3 > C:\Sandbox\version.txt
> exit 0
>
> Then I went to TSVN->Settings->Hook-Scripts and made a new entry.
> Selected Post-Update hook and wrote into "Command Line to Execute:"
> "C:\Sandbox\version.bat".
>
> While updating next time (nothing in the repo has changed) i got the
> following text:
>
> Update
> At revision: 87
> The hook script returned an error:
>
> This is all. No error code or anything else.
>
> Can someone please tell me what i did wrong? I tried executing the
> script without any parameter but even then it works fine.

Works fine for me here.
Did you maybe have bat files assigned to not execute?
Try entering
cmd /c "C:\Sandbox\version.bat"
as the command line.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2461773
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-03-18 18:50:47 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.