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

Automatic syntax reformatting hook

From: Alberto Avanzi <Alberto.Avanzi_at_sophia.inria.fr>
Date: 2006-05-25 16:21:07 CEST

Hi,

in all-day-development our team uses svn. We wrapped the svn executable
(on the client side) with a shell script which automatically calls a
syntax reformatting
tool before each commit and update. This allow us to insure that all the
repository files
share the same syntax and we completely avoid conflicts due to
differences in code formatting.

Our experience showed that this way is much easier than to convince
developers
to conform to the same syntax rules :-)

Now I'm wondering if there is an alternative way to do that, consisting
in moving the
reformatting tool on the server side and using a hook. The main problem
we have with
our current solution is that it doesn't allow to use graphical clients
for svn because these
clients normally don't directly call the "svn" executable (preventing
wrapping).

But pre-commit hook can't modify the transition and start-commit hook
don't allow
(if I'm right) to retrieve the committed file name.

Someone has an idea ?
Thanks in advance for help.

Alberto Avanzi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 25 16:22:36 2006

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.