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

Re: [RFC] Comments on wc-metadata.sql PRISTINE and

From: Greg Stein <gstein_at_gmail.com>
Date: Wed, 17 Feb 2010 14:21:46 -0500

On Wed, Feb 17, 2010 at 14:14, Ivan Zhakov <ivan_at_visualsvn.com> wrote:
> On Wed, Feb 17, 2010 at 10:12 PM, Greg Stein <gstein_at_gmail.com> wrote:
>> On Wed, Feb 17, 2010 at 14:03, Ivan Zhakov <ivan_at_visualsvn.com> wrote:
>>> On Wed, Feb 17, 2010 at 9:57 PM, Greg Stein <gstein_at_gmail.com> wrote:
>>>> Also: PRISTINE.size is the size on-disk, which may be different from
>>>> the uncompressed size.
>>>> The on-disk size is handier than the uncompressed size, I believe.
>>> Just one note from wc-1 experience: It's good to have translated
>>> pristine size to quickly answer that file modified without comparison
>>> file contents at all.
>> That value is stored in BASE_NODE and WORKING_NODE as the column
>> 'translated_size'. The size needs to account for EOL and keyword
>> translations.
> Great, I didn't aware about this.

No problem.

To further illuminate here... the *same* pristine could have variant
translated_size values based on each node's set of properties
(svn:keywords, svn:eol-style, etc). That is why we attached the
translated_size to the BASE_NODE and WORKING_NODE tables. A/foo and
A/bar could use the same pristine, but have different on-disk
representations due to the properties attached to each.

Hunh. Now that I think about it, if you change the properties on a
node (ie. new props go into ACTUAL_NODE), then we do not have a
modified translated_size. Darn it. I think we're going to need to add

Received on 2010-02-17 20:22:21 CET

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