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

Re: hook script experience

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 03 May 2012 19:53:21 +0200

On 02.05.2012 14:54, Oto BREZINA wrote:
> I had trouble to make script working. Besides I used old version,
> scripts expect forward slashes. This may implicate from requestion URL,
> but was not clear for me first.
>
> I set precommit,commit,preupdate hook to program on one folder. When
> commit that folder program get stared. Hower when commit from parrent
> (no hooks there) hook does not run. Did I miss something. Is this
> inteded? If yes it is not expected.

Yes, this is intended:
The hook scripts must be configured for the folder you commit.
If you want the script to only work for subfolders, you have to check
that in the hook script yourself.

> Hook is used on actual (so caled trunk), so when ever truck is about to
> be commited some cleaning have to be done. We don't want that cleaning
> for other older branched for now.
>
> Most of us have checked all repository as we work on more branches at
> once and also some related tools reside in that repository. Setting hook
> on root is not favorite solution even without recurisive. I need run
> hook when folder with hook set is about to be commited and hook should
> run only for that folder (within its context).

You have to write your hook script so that the script itself only does
the job for those folders you want.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2957410
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-05-03 19:53:35 CEST

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.