[Top][All Lists]
[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)
- [Monotone-devel] Extensions to automation, again, Thomas Keller, 2006/10/18
- Re: [Monotone-devel] Extensions to automation, again, Timothy Brownawell, 2006/10/18
- Re: [Monotone-devel] Extensions to automation, again, Zack Weinberg, 2006/10/18
- Re: [Monotone-devel] Extensions to automation, again, Thomas Keller, 2006/10/18
- Re: [Monotone-devel] Extensions to automation, again,
Alvaro Herrera <=
- Re: [Monotone-devel] Extensions to automation, again, Thomas Keller, 2006/10/18
- Re: [Monotone-devel] Extensions to automation, again, Alvaro Herrera, 2006/10/18
- [Monotone-devel] Re: Extensions to automation, again, Bruce Stephens, 2006/10/18
- Re: [Monotone-devel] Re: Extensions to automation, again, Nathaniel Smith, 2006/10/18
- [Monotone-devel] Re: Extensions to automation, again, Bruce Stephens, 2006/10/18
- Re: [Monotone-devel] Re: Extensions to automation, again, Nathaniel Smith, 2006/10/18
- [Monotone-devel] Re: Extensions to automation, again, Bruce Stephens, 2006/10/18
- Re: [Monotone-devel] Re: Extensions to automation, again, Nathaniel Smith, 2006/10/18
- Re: [Monotone-devel] Extensions to automation, again, Thomas Keller, 2006/10/18
Re: [Monotone-devel] Extensions to automation, again, Chad Walstrom, 2006/10/18