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

Bug? v1.1.4 line return modifications go unnoticed when svn:eol-style is set.

From: Corey Jewett <cjewett_at_mobliss.com>
Date: 2005-07-27 18:03:05 CEST

Quick History:
   Workplace recently converted repository from cvs to svn, not sure
which program was used for conversion. We (shamefully) had a lot of
images tagged as text and didn't perform any kind of preflight test. So
now I'm trying to repair an image that seems to have been corrupted by
the svn changeover since it was not flagged as binary.

Issue:
   Modifying the file's line returns seems to go unnoticed by svn
revert, status, update, and commit even though the file's checksum is
different.

Once blowing away all the properties, svn started to recognize the
different file. Somebody here pointed out that setting the
svn:mime-type to octet-stream might have also helped, but that would be
a workaround.

Apparently a file being flagged with svn:eol-style has deeper impact on
svn than the manual and FAQ appreciate.

Shell transcript below.

Corey

$ md5 header.jpg
MD5 (header.jpg) = b3edbfbd41c71ca0ca46b49ca1632680

$ perl -pi -e 's|\n|\r|g' header.jpg

$ md5 header.jpg
MD5 (header.jpg) = 18e871e06c2ce2c6309b15a6ee51501d

$ svn status

$ svn up
At revision 28449.

$ svn commit

$ md5 header.jpg
MD5 (header.jpg) = 18e871e06c2ce2c6309b15a6ee51501d

$ svn status

$ svn revert header.jpg

$ md5 header.jpg
MD5 (header.jpg) = 18e871e06c2ce2c6309b15a6ee51501d

$ rm header.jpg

$ svn up
Restored 'header.jpg'
At revision 28449.

$ md5 header.jpg
MD5 (header.jpg) = b3edbfbd41c71ca0ca46b49ca1632680

$ svn proplist

$ svn proplist header.jpg
Properties on 'header.jpg':
   svn:executable
   svn:keywords
   svn:eol-style

$ svn propdel svn:executable header.jpg
property 'svn:executable' deleted from 'header.jpg'.

$ svn propdel svn:keywords header.jpg
property 'svn:keywords' deleted from 'header.jpg'.

$ svn propdel svn:eol-style header.jpg
property 'svn:eol-style' deleted from 'header.jpg'.

$ svn commit header.jpg -m 'nuked bad props'
Sending header.jpg

Committed revision 28450.

$ perl -pi -e 's|\n|\r|g' header.jpg

$ svn status
M header.jpg

$ md5 header.jpg
MD5 (header.jpg) = 18e871e06c2ce2c6309b15a6ee51501d

$ svn revert header.jpg
Reverted 'header.jpg'

$ md5 header.jpg
MD5 (header.jpg) = b3edbfbd41c71ca0ca46b49ca1632680

$ svn proplist header.jpg

$ svn --version
svn, version 1.1.4 (r13838)
    compiled Jun 30 2005, 11:45:36

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 27 18:06:21 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.