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

Re: Multiple post-commit-hooks in repository

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Mon, 09 Mar 2015 19:16:05 +0100

On 09.03.2015 18:12, Michiel Pauly wrote:
> Hi fellow-developers,
>
> i have a repository in which i have hooked a post-commit-hook on two directories.
>
> when i commit a change in either one of the directories. The hook is executed, great.
>
> However, if i commit changes to both the directories only one of the hooks is executed.
>
> Is this behaviour that is expected? Am i doing something wrong?

Yes, this is the expected behavior: the hook script is executed only
once for the common root path of all the paths that are committed.
Imagine if the hook script was run for every selected item separately -
you could end up with hundreds of script calls if a user selects
hundreds of files to be committed.

You can configure a hook script for the root path of the commits you're
doing, and in that script call the other scripts separately if 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=4061&dsMessageId=3104126
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-03-09 19:15:53 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.