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

svn diff doesn't verify MD5 sums (Related to issues #1774 and #1177)

From: Jani Averbach <jaa_at_jaa.iki.fi>
Date: 2004-03-04 19:05:11 CET

Hi!

SVN doesn't verify md5sums when it is doing diff against text
base. Here is the recipe:

svn --version
svn, version 1.1.0 (dev build)
   compiled Mar 4 2004, 09:51:36

# --8<--
svnadmin create repo
svn co file://`pwd`/repo wc
cd wc
touch file
svn add file
svn ci -m '' file
echo '#1 line' >> file
echo '#2 line' >> file
chmod u+w .svn/text-base/file.svn-base
echo '#2 line' >> .svn/text-base/file.svn-base
svn diff
# --8<--

Index: file
===================================================================
--- file (revision 1)
+++ file (working copy)
@@ -1 +1,2 @@
+#1 line
 #2 line

However, svn ci works correctly:
svn ci -m ''
Sending file
Transmitting file data .svn: Commit failed (details follow):
svn: Checksum mismatch for '/raid/3/jaa/tmp/svntest/wc/.svn/text-base/file.svn-base':
expected 'd41d8cd98f00b204e9800998ecf8427e', actual: 'ca9da9a536181a005144afc186ada942'

This is related (similar) to issues:

svn status should MD5 the text-base
http://subversion.tigris.org/issues/show_bug.cgi?id=1177

'svn revert' does not verify checksums
http://subversion.tigris.org/issues/show_bug.cgi?id=1774

BR, Jani

-- 
Jani Averbach
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 4 19:03:50 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.