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

Re: svn commit: r10676 - in trunk/subversion: libsvn_wc tests/clients/cmdline

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2004-08-18 18:36:17 CEST

kfogel@collab.net writes:

> philip@tigris.org writes:
>> --- trunk/subversion/libsvn_wc/questions.c (original)
>> +++ trunk/subversion/libsvn_wc/questions.c Tue Aug 17 18:47:06 2004
>> @@ -341,7 +341,7 @@
>> apr_md5_final (digest, &context);
>>
>> checksum = svn_md5_digest_to_cstring (digest, pool);
>> - if (strcmp (checksum, entry->checksum) != 0)
>> + if (entry->checksum && strcmp (checksum, entry->checksum) != 0)
>> {
>> return svn_error_createf
>> (SVN_ERR_WC_CORRUPT_TEXT_BASE, NULL,
>
> A thought: If entry->checksum is NULL, then all the checksumming work
> done previous to this would turn out to have been a waste. Any reason
> not to add conditionals so we don't init, update, nor finalize the
> context if entry->checksum is NULL?

I considered it, but I don't know if the circumstances that cause it
to occur (copy then propset) happen often enough to warrent it.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 18 18:37:35 2004

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.