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

Re: Slow post-commits causing long time to commit on user's side.

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Fri, 7 Aug 2009 13:16:59 -0500

On Aug 7, 2009, at 09:07, Bolstridge, Andrew wrote:

> Windows servers are difficult to run apps in background mode for,
> (unlike*nix where you just append a &!)

Note that just appending a "&" is not sufficient to make the hook
script end immediately. In addition, you must direct stdout and
stderr away. Otherwise the hook script waits for output on those
streams. So your post-commit might look like this (not on Windows):

#!/bin/bash

REPO="$1"
REV="$2"

/path/to/some/script "$REPO" "$REV" >/dev/null 2>&1 &

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2381412

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-07 20:18:02 CEST

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.