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

Now 100% Serious Newline conversion suggestion

From: <cmpilato_at_collab.net>
Date: 2001-12-13 17:48:02 CET

I posted this earlier with the subject "50% Serious Newline conversion
suggestion". Well, after reading all the other proposals, and finding
them all lacking in at least one area, I feel compelled to repost this
as a 100% serious suggestion, and I actually DO want feedback on it
now. :-)

In this system:

- newline styles in the repository change ONLY when it was
   intentional.

- we do the world a favor by promoting the use of tools that can
   understand (and not munge) files of various newline styles, while
   not punishing those who fail to use such tools.

- no conversion takes place autometically, thus preserving my
   idealistic viewpoint that a VC system shouldn't be in the business
   of doing anything but versioning data.

----
> What if we just did something a bit simpler:
> 
> 1.  Do not provide automatic newline conversion.
> 
> 2.  At commit time, compare the newlines used on the edited files with
>     those in text-base, and if the style differs, error "Newline style
>     has changed.  To override, use --force, else please restore the
>     file to its original newline convention."
> 
> 3.  Optional: provide an 'svn newline' subcommand which will perform
>     the restoration.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:52 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.