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

funny error handling for inconsistent line endings

From: Jay Foad <jay.foad_at_gmail.com>
Date: Thu, 3 Sep 2009 13:50:46 +0100

I have this in my ~/.subversion/config

[auto-props]
*.txt = svn:eol-style=native

If I try to "svn add" a file with inconsistent line endings, I get this:

$ echo -e "foo\r\nbar" > file.txt
$ svn add file.txt
svn: File 'file.txt' has inconsistent newlines
svn: Inconsistent line ending style
$ echo $?
1
foad_at_debian:~/qqq$ svn st file.txt
A file.txt

So the "svn add" command has returned with an exit status of 1,
indicating failure, but it has succeeded in adding the file. This
seems wrong.

It is particularly annoying if you "svn add" a long list of files,
some of which have inconsistent line endings. You have to re-run the
same command many times to get it to succeed, because it will stop
with an error each time it gets to an inconsistent file, but the next
time you run it it will get further.

Thoughts?

Thanks,
Jay.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2390629

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-03 14:53:30 CEST

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.