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

Question about the diff algorithm...

From: Hadmut Danisch <hadmut_at_danisch.de>
Date: 2006-08-26 11:03:49 CEST

Hi,

just a question about the diff algorithm:

When I do this with a new repository:

% date >test

% svn add test
A test

% svn commit -m ""
Adding test
Transmitting file data .
Committed revision 1.

% xxd some_large_file >>test

% ls -lF test
-rw-r----- 1 hadmut users 1741746 2006-08-26 10:56 test

% svn commit -m ""
Sending test
Transmitting file data .
Committed revision 2.

% date >> test

% svn commit -m ""
Sending test
Transmitting file data .
Committed revision 3.

% date >> test

% svn commit -m ""
Sending test
Transmitting file data .
Committed revision 4.

Then I have changed the file test only by adding one single line at
the end of the file between revision 2 and 3.

But then db/revs of the repository looks like that:

-rw-r----- 1 hadmut users 115 2006-08-26 10:52 0
-rw-r----- 1 hadmut users 375 2006-08-26 10:54 1
-rw-r----- 1 hadmut users 1405189 2006-08-26 10:56 2
-rw-r----- 1 hadmut users 1405227 2006-08-26 10:57 3
-rw-r----- 1 hadmut users 701 2006-08-26 10:58 4

Although the large amount of data was added only once, and revisions 2
and 3 differ only by one line of text, both revision files 2 and 3 are
large.

The difference between revisions 3 and 4 is similar to that between 2
and 3: Just a single line of text added at the end of the file. But
now the revision file is small.

Why is the revision file 3 big and the revision file 4 small? In both
cases I just did

   date >> test

regards
Hadmut

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Aug 26 11:26:24 2006

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.