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

RE: Automatic formatting of source code

From: Garrick Olson <Garrick.Olson_at_Aceva.com>
Date: 2004-01-15 02:24:39 CET

-- Eric wrote:
> The best bet (and the solution I settled on) was to have the client do
> task, and then let the server check the results and optionally abort
> they are not correct. This solves the "client not doing the right
> problem.

There seem to be a few issues with this approach:

- The end user must initiate this client side task
- The client side task must obtain formatting information (style) from
  server (either through svn or shared network resource) and could be
- The pre-commit trigger to verify the client did the right thing ends
  duplicating all the work the client just did (potential performance
- If the client did the wrong thing, this failure must be made visible
  the end user, and that user must then initiate a client side task to
fix it

Another approach I have considered is to do reformatting as a
action which might initiate and commit a new transaction with formatting

fixes. This approach still has some drawbacks, though. I wonder if
has tried this.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 15 02:25:50 2004

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.