monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Extensions to automation, again


From: Alvaro Herrera
Subject: Re: [Monotone-devel] Extensions to automation, again
Date: Wed, 18 Oct 2006 16:14:24 -0300
User-agent: Mutt/1.5.13 (2006-08-11)

Thomas Keller wrote:

> I've looked around in database.cc and found that out as well. The 
> problem here seems to be that a delta which comes as packet into a local 
> db has no size information attached for the new file version one is able 
> to create with it and of course, recreating a file locally just to find 
> out how big it is, is stupid. I wonder if it would be possible to 
> somehow smartly add up the sizes of the file deltas to get the complete 
> file size? If I look at the unified diff output I'd say yes, because one 
> could simply add up all bytes after a "-" prefixed line, and also those 
> after a "+" prefixed line, would calculate the difference of both and 
> add it up to the former file size.

Wouldn't it be easier to store in the database the size delta, for each
delta?  Then you just sum them all across the file history to get the
final size.

-- 
Alvaro Herrera                           Developer, http://www.PostgreSQL.org
"Ninguna manada de bestias tiene una voz tan horrible como la humana" (Orual)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]