RE: Pre-commit hook
From: Bob Archer <bob.archer_at_amsi.com>
Date: Fri, 10 Jul 2009 14:28:50 -0400
The only thing I can think of is to have your scripts be in a svn copy/branch of the main trunk. Have your build system check the scripts on commit and if no errors occur it can merge them to trunk, or just copy the scripts to trunk and commit them that way.
They would still be in source control but not in trunk until they have been verified.
BOb
From: Scott Vickery [mailto:svickery_at_cavucorp.com]
We are using CruiseControl for a similar thing.
What I am trying to do it to prevent faulty scripts get getting into source control in the first place. Developers test against a single database, but, we have 100's of databases. Right now, there is a process that is done on the side outside of version control to test the scripts against all databases. I am trying to integrate that process into version control to make check-ins part of our process instead of an afterthought.
Basically, I trying to reduce overhead on the developer. But, as has been pointed out, this is either a pre checkin activity OR a build issue.
Thanks,
________________________________
using a pre-commit or post-commit hook is tight coupling your CI with your source control aka a bad thing
what happens when the database is down and you've left on holidays for two weeks? nobody can commit
Sent from my [rhymes with myPod] ;-)
On 10 Jul 2009, at 18:15, Scott Vickery <svickery_at_cavucorp.com<mailto:svickery_at_cavucorp.com>> wrote:
I want to put that process in place as pre-commit hook. So far so good. But, I would like to provide real time progress to the user that did the commit.
Any ideas on how I could pull this off? AFAIK, the pre commit hook is only run on the server, and, there is no way for the user to see it. Correct?
Thanks,
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
|
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.