Ryan Schmidt wrote:
On Jun 12, 2010, at 04:55, Kevin Wu wrote:
I want to try svn hooks first.
After reading the documentation, I still don't know how to get the filename and
its path of the file being committed when the post-commit hook fires.
The post-commit hook just has two arguments:
1. Repository path
2. Revision number created by the commit
You feed the repository path and revision number to "svnlook changed".
Note that many files can change in one commit. You probably want your ssh
command to do an update of a working copy where the tests are performed which
will pick up all the changes. Also note that additional commits may happen
before earlier runs are complete - I'm not sure if these block or if your
scripts have to deal with it. Scheduling runs and collating the results are
just a few of the advantages of using hudson.
--
Les Mikesell
lesmikes...@gmail.com