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

Re: post-commit hook

From: Andy Berdan <berdandy_at_gmail.com>
Date: 2006-01-03 20:12:35 CET

> So how to let the server side to commit to the repository when called by
> the Post-commit hook from subversion repository?

What about queueing up the log files in a directory, and having a
watchdog process (cron job, daemon, whatever) commit those files?

Or, you may be able to perform a commit without a watchdog, if you
spawn another process from the script (using, say, "bash
/usr/local/bin/my_commit_script.sh&"). I'm not 100% sure on this,
though.

In addition, you may want to use the post-commit hook return value to
invalidate the faulty commit (if you aren't already).

Good luck.

--
Andy.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 3 20:31:29 2006

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.