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

Re: Funky edge-case bug in the repos loader.

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-06-08 14:29:35 CEST

cmpilato@collab.net writes:

> So I dug around a little bit. Here's the interesting part. In
> revision 1763, I removed the contents of that file, leaving a file of
> zero bytes. Now, how does that look in our dumpfile? Well, it looks
> like it has a Content-length of 0. And what does our loader do with
> that information? Nothing. But what it *should* do is to say, "Hey,
> all files have contents, even if those contents are empty." and set
> the file contents to zero length.

Ohhhhhhhhhhhhhhh, forget my last mail, *now* I get it.

In the case of 'Node-action: add', the file automatically has 0 bytes
at birth. But this was a case of 'Node-action: change', with
Content-length of 0 bytes -- meaning that the zero bytes must be
pushed as a *change*, as the next revision of the file!

Wow, great catch!

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jun 8 14:31:47 2002

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.