Re: Hook script questions
From: Nico Kadel-Garcia <nkadel_at_comcast.net>
Date: 2006-07-07 03:45:40 CEST
----- Original Message -----
I'm not sure what you mean by client in this context. The tomcat instance is actually running on the same server and I don't have control of what clients people will be using to update the repository. And I'm not actually going to be making changes to the site myself.
The Subversion working copy, whatever machine it resides on, uses an SVN client to do the update.
I'd rather not use a cron job to check for changes since that will require a delay from commit to website update, and my spec sheet requires an "instant" update mechanism. So a post commit script seemed like the right answer.
Ahh. That explains your need: in this case, where the working copy resides on the same machine, a post-commit hook seems very reasonable. I've seen people here looking for ways to push updates to every copy on every other machine, which gets a lot more awkward to do.
This is an archived mail posted to the Subversion Users mailing list.