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

Is it possible to test code before allowing it to be checked in?

From: mindspin311 <connoc.mindspin_at_gmail.com>
Date: Sun, 2 Nov 2008 15:47:58 -0800 (PST)

I want to be able to run a php syntax validater and phpunit tests before
someone checks in code using pre-commit hooks. Is this possible?

I'm assuming it would be something like:
* User checks in code
* A unique branch is created including the checked in code
* An ant script is then run which validates the entire code base
* On success, the users code is then checked into the repository
* On failure, a unique error is generated and code is blocked from being
commited until it is fixed.

I know everything can be done except for taking recent revisions committed
to the trunk and automatically moving them to a dynamically created branch
for a user. For that, I'm not sure if it is possible currently without
making changes to the source code of subversion.

So, what I really want to do is redirect a users changes to a dynamically
created clone of the current trunk before authorizing the commit.

-- 
View this message in context: http://www.nabble.com/Is-it-possible-to-test-code-before-allowing-it-to-be-checked-in--tp20295265p20295265.html
Sent from the Subversion Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-03 00:48:25 CET

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.