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

Re: Does commit wait for post-commit hook to execute?

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-02-07 08:42:30 CET

On Feb 7, 2007, at 01:21, Andreas Schweigstill wrote:

> Andy Levy schrieb:
>
>> svn commit "finishes" when the post-commit hook completes finishes
>> executing. If your post-commit is lengthy and you need quicker
>> response, have post-commit spawn a new process to actually do that
>> work, letting post-commit return. Doing this in any hook script means
>> you'll lose the ability to send feedback to the user regarding that
>> spawned process.
>
> And probably some kind of semaphore or lock has to be used if it is
> important that there is only one spawned script running at the same
> time.
>
> Does Subversion assure that the same script won't be executed multiple
> at the same time when there are concurrent check-ins?

Yes, Subversion will only allow one commit to be taking place at a
given time, so there can only be one post-commit hook running at a
time. However, if you spawn off a process in your post-commit hook,
then the post-commit hook will exit before your script is done, so
there could be multiple copies of your spawned script running at a time.

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 7 08:42:50 2007

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.