Julian Foad <julianfoad_at_btopenworld.com> writes:
>> [...]
>> Similarly, there would be a function like this:
>>
>> svn_error_t *
>> svn_wc_tree_checksum(*checksum, repos, path,
>> svn_boolean_t consider_unversioned_objects);
>>
>> Then we could just compare the checksums.
>>
>> Thoughts?
>
> Yes, that sort of thing is a very real option. Both the client-side and
> server-side implementations could be very efficient, looking up a
> previously cached answer.
>
> Thanks for the thoughts.
You're definitely better versed in this problem than I am, so +1 to
whichever way you want to go. But FWIW, my instinct would be to go the
tree-checksum route. Once we have tree checksum APIs, we will probably
find them useful for other things. Whereas the proposed new
implementations of the svn_wc_diff_callbacks3_t functions would clearly
only be useful for this one situation, because, as you say:
> In those callbacks3_t functions, I'm intending to ignore ALL of the
> arguments and just set a flag to say "Aha! There must be differences
> because one of these diff callbacks has been called".
-Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-09-02 21:00:44 CEST