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

Re: Adapting "client diff" to compare a WC dir against a repos dir

From: Karl Fogel <kfogel_at_red-bean.com>
Date: Tue, 02 Sep 2008 15:00:29 -0400

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

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.