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.