[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

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Thu, 12 Mar 2009 12:43:53 +0000

2009/3/12 Josip Babic <babic.josip_at_gmail.com>:
> Hello,
>
> I'm new in using TSVN, and have difficulties with setting up client-side hooks. I'm using TortoiseSVN 1.5.9, Build 15518 - 32 Bit on Win XP. Working copy is in D:\WC and hook script settings are:
>
> Hook Type: Start Commit Hook
> Working Copy Path: D:\WC
> Commmand Line To Execute: D:\WC\batfile.bat
> Wait for the script to finish: checked
> Hide the script while running: unchecked
>
> I also tried command lines:
> cmd D:\WC\batfile.bat
> cmd.exe /c D:\WC\batfile.bat
>
> The batfile.bat file contains only one line:
>
> exit 0
>
> I always get "The hook script returned an error:" message when trying to commit. Without the script, commit works just fine.
>
> What am I doing wrong?

Strange, I just tried (almost) the same:

Hook Type: Start Commit Hook
Working Copy Path: C:\Temp\test-wc
Commmand Line To Execute: C:\Temp\hook.bat
Wait for the script to finish: checked
Hide the script while running: unchecked

and it works fine. Exit 1 returns an error, Exit 0 allows the commit to procede.

Simon

-- 
:       ___
:  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=1312725
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-03-12 13:44:03 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.