[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: Bojan Mihelač <bmihelac_at_mihelac.org>
Date: 2007-02-07 07:55:12 CET

I get it, thanks for valuable answers
best regards
Bojan Mihelac

Ryan Schmidt wrote:
>
> On Feb 6, 2007, at 15:24, Andy Levy wrote:
>
>> On 2/5/07, Bojan Mihelač wrote:
>>
>>> does 'svn commit' waits for post-commit hook to execute or it returns
>>> immediately?
>>
>> 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.
>
> ...however this is not a problem for the post-commit hook, since you
> can't send any feedback from that hook anyway.
>
> Note that if you want to spawn another process with the intention of
> completing the post-commit quicker, you may also need to direct the
> spawned process's stdout and stderr to /dev/null, else the post-commit
> hook may still wait for the spawned process to complete.
>
> --
> To reply to the mailing list, please use your mailer's Reply To All
> function
>
>
>
>
>

-- 
Bojan Mihelač
Informatika Mihelac  | T: +386(0)1 428 93 43  | M: +386(0)40 306 813
www.informatikamihelac.com  | www.enter-net.biz | source.mihelac.org
-> Novo: www.MOJGOST.com - web servis za vodenje privatnog smjestaja
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 7 07:55:38 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.