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

Re: Changing files being committed

From: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2005-10-02 18:05:16 CEST

On 2-Oct-05, at 11:09 AM, S3 wrote:

> Hash: SHA1
> I want to use svn for a Java code repository.
> We previously used cvs.
> Before allowing commits, I would like to have
> a hook that checks the committed files
> and, if necessary, runs Jalopy on them.

You can't modify the files to be checked in using a pre-commit
hook. That breaks things. The best you can do here is to run Jalopy
on the files, check that Jalopy didn't change anything and allow the
commit, or reject the commit if the code wasn't the same before and

Check the example hook scripts in the contrib folder of the
subversion source.
http://svn.collab.net/repos/svn/trunk/contrib (actually you should
probably change that URL to point to the release you are using)


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Oct 2 18:07:03 2005

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.