You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Garrick Olson <Ga...@Aceva.com> on 2004/01/15 00:04:37 UTC
Automatic formatting of source code
My goal is to ensure all source code in my subversion repository has
uniform formatting at all times.
My initial thought was to use a pre-commit hook to do this, but as
pointed out in the documentation and email archive this is not a good
idea.
What is the alternative to using a pre-commit hook? I there any way to
do server side processing of files before they are committed?
Re: Automatic formatting of source code
Posted by Eric Jonas <jo...@MIT.EDU>.
On Wed, 14 Jan 2004, Garrick Olson wrote:
> What is the alternative to using a pre-commit hook? I there any way to
> do server side processing of files before they are committed?
>
As was pointed out to me a while ago, this is a bad thing because the
repository has different data than the client for revision n as a result.
There is no current way for the repository to inform the client of updates
to the files at check-in. The best bet (and the solution I settled on) was
to have the client do the task, and then let the server check the results
and optionally abort if they are not correct. This solves the "client not
doing the right thing" problem.
...Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org