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

Re: How to run post-commit as a backgorund process??

From: Ryan Schmidt <subversion-2010a_at_ryandesign.com>
Date: Thu, 7 Jan 2010 20:44:46 -0600

On Jan 6, 2010, at 23:53, Shalinda Adikari wrote:

> I’m working on svn mirroring capability and I have following issue when it is used.
>
> Once svnsync is configured It takes longer time than normal commit. Simply if we can commit a file within 2s without svnsync mirroring , now it takes nearly 6s. Therefore, I need to reduce the time gap by executing svnsync command parallel. According to the svn help files we are normally to executing svnsync using the post-commit hook. However, if we can run svnsync as a background process without effecting to normal commit then user would not see any time lag.

The other replies addressed how to do this, but be cautious about doing so. What happens if user 1 commits, which fires off a sync command which takes 4 seconds, and within those seconds, user 2 commits something else, which fires off a second sync command? Do they compete with one another? Or does the second one wait in an orderly fashion for the first one to complete? Be sure you have an answer to this question before you make this change.
Received on 2010-01-08 03:45:25 CET

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.