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

Can subversion be set up to modify files on commit?

From: Aleksey Nogin <aleksey_at_nogin.org>
Date: 2005-02-04 22:53:13 CET

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? Ideally this should be possible to
achieve server-side, but being able to attach a pre-commit script to a
client would probably be a sufficient workaround.

P.S. I have to admit that in CVS this does not work quite right (in
client/server mode, the repository gets the modified files, but the
local working copy still gets to keep the original ones, while cvs
considers local files to be identical to repository files -
https://ccvs.cvshome.org/issues/show_bug.cgi?id=202 ). Which gives me
yet another reason to want to switch - I am just hoping in Subversion
this could be done better somehow.

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 ;-)

Aleksey Nogin
Home Page: http://nogin.org/
E-Mail: nogin@cs.caltech.edu (office), aleksey@nogin.org (personal)
Office: Jorgensen 70, tel: (626) 395-2907
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 4 22:55:29 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.