Comment 21 for bug 415508

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 415508] Re: Content filtering breaks commit w/ merge parents

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Collins wrote:
> On Mon, 2009-08-24 at 09:32 +0000, Martin Pool wrote:
>> The uses of path_content_summary in the test suite seem to be:
>>
>> 1- test_commit_builder, that use it as input to record_entry_contents:
>> we could change them to pass in the expected (generally pretty simple)
>> value instead
>>
>> 2- test_path_content_summary - these probably want to be updated to
>> get_kind_and_executable
>>
>> 3- as for #2 but in test_transform
>>
>> I think overall this is not an inherently dangerous api, but it is also
>> not one that we particularly want to encourage people to use because it
>> will tend to do too much work in reading in the whole file. What is
>> dangerous here is that there's no clear systematic distinction between
>> when we're talking about the convenient and when about the canonical
>> forms.
>
> So, its worth noting I think, that we got significant performance
> increases by path_content_summary, because it avoided path computation
> multiple times inside tree; the new commit code path largely addresses
> that :- we're actually rolling back a change here ;)
>
> -Rob
>

So the other thing that path_content_summary returns is the sha1 of the
file if it has it available from the dirstate. Which *is* useful and
important to be able to do (otherwise you have to read the file to
determine that fact.)

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqSsBEACgkQJdeBCYSNAANAgQCgm2j3QgpuuaU1IE4aQfdcoOON
CFsAoMwjC3aHwLZKa1OgjglHUC5FVA4P
=BLNe
-----END PGP SIGNATURE-----