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

Re: svn hook concurrency

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-10-18 16:39:44 CEST

>> On Oct 17, 2005, at 23:10, Andreas Zitzelsberger wrote:
>>
>>> does subversion take care of concurrency of hook skripts (especially
>>> post-commit) / what happens if a new transaction is commited
>>> before the
>>> post-commit hook skript of the previous transaction is completed?
>>>
>>> Background: I'm currently working on a multi-system web site
>>> compiling /
>>> publishing system. I want to use subversions post-commit hook to
>>> keep a copy
>>> of the head revision up-to-date and to invoke the compiler.
>>
>> I don't know the answer to your question, but I can recommend that
>> you defer updating the working copy and invoking the compiler until
>> after the post-commit hook has finished running. The Subversion
>> client will not return control to the user until the post-commit hook
>> has exited, so you want to keep it as short as possible.
>
> Thanks. That means my compiler will anyway need some sort of platform
> independent process communication :(

Well, only if you intend to have repositories on multiple
platforms... The post-commit hook (like all other hooks) runs on the
Subversion server, not on the clients. So you really only need to
code it to work on whatever architecture is hosting your repository.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 18 16:43:10 2005

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

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