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: Thomas Keller
Subject: Re: [Monotone-devel] Extensions to automation, again
Date: Wed, 18 Oct 2006 21:19:27 +0200
User-agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923)

Alvaro Herrera schrieb:
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.

Would be possible as well (maybe I was thinking too much in unified diff format today =), anyways what I meant to say with this is that the package format is probably not "ready" to transport this additional info over the wire as I'm unsure if one could easily find out the correct "patch size" of a (binary?) delta later on.

Thomas.


--
- "I know that I don't know." (Sokrates)
Guitone, a frontend for monotone: http://guitone.berlios.de
Music lyrics and more: http://musicmademe.com




reply via email to

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