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

past(?) wc bug: wrong line endings in text-base

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-11-01 23:06:51 CET

Philip's change to notes/assurance.txt just turned up a bug. It is
probably not present in our code today, but I figured it would be best to
figure out what happened and whether it has been fixed. Hopefully, this
will ring a bell for somebody.

When I went to update, I got the following error:

[gstein@roshi svn]$ svn up
subversion/libsvn_delta/text_delta.c:456: (apr_err=200003)
svn: Incomplete data
svn: Delta source ended unexpectedly
[gstein@roshi svn]$

I tracked this down to updating notes/assurance.txt. Specifically, that
section of code was attempting to read 4067 from ab->source, but it only
got 3975 bytes back. It didn't like that, so it threw an error.

Investigating, I see that assurance.txt with unix newlines is 3975 bytes.
If I run unix2dos on it, then the resulting file is 4067 bytes.

Tracing the code, I find that ab->source holds a stream referring to
notes/.svn/text-base/assurance.txt.svn-base. Looking at my working copy, I
see that the file is, indeed, 3975 bytes. Thus, the stream read is doing
its thing, so why were 4067 requested?

Well, the delta window is expecting the source to be that long. Hmm.
Elsewhere, I checked out a fresh copy of the notes/ directory and *that*
text-base/assurance.txt is 4067 bytes. Ah ha! My text-base is corrupted.

My (corrupted) assurances.txt.svn-base was created on January 13, 2003. Of
course, I could have been using a slightly out-of-date client when that
file was updated (i.e. update, then build a new client, so what was

Does this "wrong line-endings" within the text-base ring any bells? Given
that a fresh checkout seems to do the right thing, then I'm guessing it
got fixed at some point.


Greg Stein, http://www.lyra.org/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 1 23:07:59 2003

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