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

Re: Binary file checkin problem

From: Blair Zajac <blair_at_orcaware.com>
Date: 2005-05-19 20:51:27 CEST

Michael L Brown wrote:
>
> I know, checking in binary files can be a crap shoot, but didn't think
> it would be this easy to actually have it happen.

It's not a crap shoot. I check in images all the time into Subversion.

> Take the following example:
>
> svn proplist -v libOrbitPlugin.2.0g.so
> Properties on 'libOrbitPlugin.2.0g.so':
> svn:executable :
> svn:mime-type : application/octet-stream
> svn:keywords : Id LastChangedDate LastChangedRevision LastChangedBy
> HeadURL
>
> The working copy is now 3 bytes smaller than the original and fails when
> it is used: Format error: shdr table truncated
>
> Is there a cure that can fix this checked in file and to keep it from
> affecting all binary files? Doesn't SVN consider .so files as being
> binary?

You never want to set svn:keywords on a binary file, only source text
files. You may get replacements to occur that you don't want to that
will screw up the file.

Try running cmp on the original and the screwed up file and see where
the first difference is. It'll tell you which byte into the file is
different. Load the messed up libOrbitPlugin.2.0g.so into an editor and
move forward that many bytes to see what the difference is.

My guess is that a string $Id: $ got matched and replaced.

Regards,
Blair

-- 
Blair Zajac, Ph.D.
<blair@orcaware.com>
Subversion and Orca training and consulting
http://www.orcaware.com/svn/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 19 20:53:20 2005

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