[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: Oto BREZINA <otik_at_printflow.eu>
Date: Thu, 03 May 2012 09:19:00 +0200

On 2012-05-02 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.
Other then forwardshalsh is not mentoned in property dialog (let say in
example). I found that I can not select and copy %REPOROOT% from dialog
text, so I can not copy and paste that. Can you change that text to be
selectable and copyable?
>
> 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.
> Hook is used on actual (so caled trunk), so when ever trunk is about to
> be commited some cleaning have to be done. We don't want that cleaning
> for other older branched for now.
It is even weirder. I have folder with externals. When I select one of
externals to commit hook get run. It get run even for folders within
external. This is enexpected and not wanted.

So it seems when ever I'm commit within folder where commithook is set
hook runs. However it does not run when commit is performed on parent. I
would expect hook get called that folder is about to be commited
directly or from parent, but not for children (unles thay have same
script set too of course). Objects sent to script should be only ones
within folder(s) which hook that scipt. path/to/WC should be path to
that folder.

However I'm unsure if that script should get run for every folders with
that script set or just for parent, but from written before it seems
that for every.

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

-- 
Oto BREZINA
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2957276
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-05-03 09:19:18 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.