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

Version 1.4.0: svn st errors out

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-06-02 22:48:03 CEST


The following recipe produces an error when running 'svn st':

$ svnadmin create repo
$ svn co file:///d:/test/repo wc
now create two files with some dummy lines in them. One file must have
CRLF lineendings, the other LF lineendings.
$ move CRLF-File.txt wc\file.txt
$ svn add wc\file.txt
$ svn ci wc -m ""
$ svn propset svn:eol-style native wc\file.txt
$ move LF-File.txt wc\file.txt

Now, we have overwritten the file with CRLF lineendings with a file that
has only LF lineendings. And the file has the svn:eol-style property set
to native.

$ svn st wc
svn: inconsistent line ending style

This happens only with an svn.exe compiled from the 1.4.x branch. The
1.3.x versions correctly reports:
M wc\file.txt

The problem with the 1.4.x behavior is (IMHO) that
1. It returns an error. 'svn st' should not error out if the working
copy is not corrupt. Problems with line endings styles should either be
reported with some status letter or be ignored in that function.
2. The error message is pretty much useless. Imagine you have a working
copy folder with thousands of files in it and several subfolders: happy
hunting the file with the "inconsistent line ending style" :)


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jun 2 22:48:30 2006

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