[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-06 23:34:49 CET

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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Feb 6 23:35:14 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.