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

Re: Deadlock on Post-Commit Script

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Mon, 24 Aug 2009 04:00:59 -0500

On Aug 24, 2009, at 03:51, Jake Stone wrote:

> I am running SVN over Apache on Windows Server 2003, and I am
> trying to
> create a post-commit script for an ArgoUML repository. The repository
> only holds their ".zargo" files, and there is a nice command-line
> method
> to generate SVG diagrams from their UML projects, and I want to
> create a
> hook to do so automatically.
>
> I've created a checkout on the SVN server, but when I add "svn update
> %REPOS%" to my post-commit hook, any commits to that repository
> complete, but the post-commit hangs indefinitely. When I cancel the
> commit, the server's checkout requires svn cleanup and svn update to
> properly bring it up to date.

The svn update command is probably waiting to receive a username and
password. Use the --non-interactive option to prevent this waiting.
Once you do, it shouldn't hang, but will probably exit with an error
telling you it doesn't know what username and password to use. You
may then need to use the --username and --password options to feed it
the correct username and password. You should be catching and
recording any error messages coming from the svn update command, and
any other command in your hook script, perhaps in a logfile.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-24 11:01:58 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.