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

Re: funny error handling for inconsistent line endings

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Thu, 3 Sep 2009 07:59:49 -0500

On Sep 3, 2009, at 07:50, Jay Foad wrote:

> 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.

This is filed as

http://subversion.tigris.org/issues/show_bug.cgi?id=2713

and

http://subversion.tigris.org/issues/show_bug.cgi?id=2925

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-03 15:03:06 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.