I am using the latest version of svn on trunk compiled for windows. When
executing the following commands:

 

svn co http://tinyos-main.googlecode.com/svn/trunk/tos/chips/atm128/spi
.

svn up -r5516 .

 

I get the following error:

 

Updating '.' ...

svn: E155017: Checksum mismatch while updating
'D:\temp\temp\HplAtm128SpiP.nc':

   expected:  95f9d9ccfd75a2e9764c2f2d4904152a

     actual:  57bf0651502cd65d9446e2f44f661526

 

The reason is that the expected checksum shown is not the md5 checksum
but the first part of the sha1 checksum.

 

By applying the following patch, the problem seems to be solved:

 

Index: subversion/libsvn_wc/update_editor.c

===================================================================

--- subversion/libsvn_wc/update_editor.c        (revision 1092014)

+++ subversion/libsvn_wc/update_editor.c        (working copy)

@@ -3249,7 +3249,6 @@

     /* If we have a checksum that we want to compare to a MD5 checksum,

        ensure that it is a MD5 checksum */

     if (checksum

-        && expected_base_checksum

         && checksum->kind != svn_checksum_md5)

       SVN_ERR(svn_wc__db_pristine_get_md5(&checksum, eb->db,
fb->local_abspath,

                                           checksum, pool, pool));

 

Regards,

Marc

 

 

Reply via email to