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

svn up problem using latest trunk revision (1092011)

From: Marc Haesen <Marc.Haesen_at_oneaccess-net.com>
Date: Thu, 14 Apr 2011 08:11:19 +0200

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

 

 
Received on 2011-04-14 08:12:03 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.