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

Re: Can subversion be set up to modify files on commit?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-02-04 23:03:00 CET

On Feb 4, 2005, at 3:53 PM, Aleksey Nogin wrote:

> I am contemplating a switch from cvs to Subversion for a few fairly
> lare projects and there is one feature of CVS that we use that I am
> not sure how to replicate on Subversion.
> Basically, we use the commitinfo feature of CVS (an ability to run a
> script _before_ commit while having access to the files being
> committed) to _modify_ certain files before they are committed. Is
> this sort of thing possible with subversion?

No no no no no no no no no no. :-)

See the giant warning box here:


> P.P.S. Basically, we use this to enforce a few formatting conventions
> on the files - and just rejecting ill-formatted files would not work
> because the users are too lazy

Pre-commit hooks are perfect for enforcing by rejecting commits that
don't conform. But they cannot change the data -- only validate and/or

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 4 23:05:31 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.