You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Stefan Küng <to...@gmail.com> on 2007/09/07 18:21:48 UTC

svn diff doesn't ignore all eols

Hi,

when using 'svn diff' on a modified file (which doesn't have the 
svn:eol-style property set) and specifying '-x--ignore-eol-style', the 
eol is only ignored for non-empty lines. Empty lines still show up as 
different.

Steps to reproduce:

1) create a text file, containing several lines.
2) insert an empty line in between every text line in that file
3) save the file
4) 'svn add file'
4.5) make sure that the svn:eol-style property is *not* set on that file 
(e.g., due to the configured autoprops).
5) 'svn ci -m ""'
6) open the text file in an editor, change all line endings (e.g., from 
CRLF to LF).
7) save the file again with the changed eols
8) 'svn diff -x--ignore-eol-style file'

this will output all empty lines as different, but not the non-empty lines.

I expected the empty lines to be ignored too.

(using svn.exe 1.5.0 dev build, compiled Sep 4 2007, built from r26443)

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org