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

Re: howto svnsync ... without waiting

From: Ryan Schmidt <subversion-2010d_at_ryandesign.com>
Date: Sun, 7 Nov 2010 17:17:36 -0600

On Nov 6, 2010, at 19:37, Edward Ned Harvey wrote:

> On the master, I have the svnsync command in the post-commit hook. I have tried with, or without the “&” at the end of the line. When a svn client does a commit … the svn client doesn’t return from the commit until the sync has completed too. I would like the “svn commit” to complete as soon as the commit is completed, and let the server complete the svnsync in the background, without the client waiting.
>
>
>
> Any ideas what I’m doing wrong? Here is my post-commit hook:
>
>
>
> #!/bin/sh
>
> /usr/local/subversion-1.6.12/bin/svnsync sync --non-interactive --sync-username someuser --sync-password somepass svn://slave/targetrepo &

You would need to redirect stdout and stderr someplace, for example to a log file or to /dev/null.
Received on 2010-11-08 00:18:29 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.