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


From: Russ Brown <pickscrape_at_gmail.com>
Date: 2005-05-26 13:55:33 CEST


I've just helped a colleague out with a very bizarre issue, and wanted
to ask the group what (if anything) we're doing wrong.

Let me explain. He was editing a file and changed one line. He then
saved the file and performed svn diff on it. The output showed that
the entire file was changed.


So, we eliminated the usual suspects. The editor was not changing the
line endings, stripping whitespace or converting tabs into spaces. We
tried appending a line to the file via command line tools and editing
the file using sed with the same result. We tried running the diff
through the system diff command with no change to the output.

Finally, we tried copying the (unmodified) file, changed one of the
copies on the disk and did the diff. The diff showed that just the one
line had changed. This was completely outside of Subversion, which
obviously pointed the finger at something to do with Subversion.

At this point I got the idea that the problem may be something to do
with the eol-style property. I checked it and it was indeed set; its
value being 'native'. So, I removed the property from the file and
tried the change again. This time, the diff worked correctly.

Now, a bit of background. All developers here use Linux, while the
designers use Windows. The file in question was a HTML template, and
so it likely to either have originated from a Windows machine or at
least been edited there at some point.

I thought that the point to the 'native' eol-style was to
transparently handle the situation where you potentially have users
from different operating systems editing files. If I'm wrong on this
I'd appreciate advice on how the eol-style property should be used
correctly. If I'm not wrong, I think I've found a bug. :-)

Oh, and I should say that my colleague is using Subversion client
1.1.4. The server is currently 1.1.3.


Russell Brown
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 26 13:57:19 2005

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.