Checkout
C. Michael Pilato
committed
on 25 Jun 12
Teach the get_wc_content() RA callback and supporting code to handle
MD5 checksums as content indexes, too. This *should* result in the
ben… Show more
Teach the get_wc_content() RA callback and supporting code to handle

MD5 checksums as content indexes, too.  This *should* result in the

benefits of this enhancement extending to users of all 1.8 clients

irrespective of the server's pedigree, as MD5s have been in the server

streams since ... like ... forever.

* subversion/include/svn_ra.h

 (svn_ra_get_wc_contents_func_t): Rename 'sha1_checksum' to merely

   'checksum', and relax the requirement that SHA1 be the checksum

   algorithm used to call up cached pristine contents.

* subversion/libsvn_client/ra.c

 (get_wc_contents): Rename 'sha1_checksum' to 'checksum'.

* subversion/libsvn_ra_serf/update.c

 (fetch_file): If we don't have a SHA1 checksum to use, that's okay

   -- try the MD5 instead (which we definitely should have for all

   extant servers).

* subversion/include/private/svn_wc_private.h

 (svn_wc__get_pristine_contents_by_checksum): Rename 'sha1_checksum'

   to 'checksum'.

* subversion/libsvn_wc/adm_ops.c

 (get_pristine_lazyopen_baton_t): Rename 'sha1_checksum' to 'checksum'.

 (get_pristine_lazyopen_func): If the reference checksum isn't a

   SHA1, try to lookup the SHA1 based on what we have.

 (svn_wc__get_pristine_contents_by_checksum): Rename 'sha1_checksum'

   to 'checksum'.

Suggested by: gstein

Show less