Idea for dealing with text-file line endings
From: Jim Fulton <jim_at_zope.com>
Date: 2004-04-29 23:09:38 CEST
The Zope project is in the process of adopting subversion. One
By default, subversion doesn't do any end-of-line translation when
The recommended way to do this is to put following like the following
[miscellany]
[auto-props]
...
We find this approach unsatisfactory for two reasons:
- It is burdensome. Every developer (including people using public
- It is unreliable. If we forget some file pattern, we'll fail to get
- It is unmaintainable. Every time someone uses a new file name style
We've discovered a much simpler approach that currently does much of
[miscellany]
[auto-props]
With this setting, all new files except files that svn recognizes as
There are two disadvantages:
- It is burdensome. Every developer (including people using public
- If I add or import a binary file, like an image, I get an error:
$ svn add myimage.gif
But the add actually works:
$ svn status myimage.gif
This appears to be because the property is set after the file is
If I add multiple files, some of which are binary:
$ svn add text1 image1.gif text2 image2.gif
I get the error after the first binary file is added, and none of
$ svn status text1 image1.gif text2 image2.gif
The error is annoying, but causing multi-file additions to partially
So, I have two questions. First, does this basic approach seem reasonable?
If this idea does seem reasonable, can the current behavior of svn be
$ svn add text1 image1.gif text2 image2.gif
$ svn status text1 image1.gif text2 image2.gif
Jim
-- Jim Fulton mailto:jim@zope.com Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org For additional commands, e-mail: users-help@subversion.tigris.orgReceived on Thu Apr 29 23:10:24 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.