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

Re: svn import - file got corrupted

From: Branko Čibej <brane_at_xbc.nu>
Date: 2005-08-09 12:55:32 CEST

T E Schmitz wrote:

> Hello Branko,
>
> Branko Čibej wrote:
>
>> T E Schmitz wrote:
>>
>>> I imported a source tree (4200 files, 70MB) into a repository on our
>>> local Linux server from a Win2K client running svn 1.2.1.
>>>
>>> svn import -m "importing vendor drop"
>>> . svn://server/ofbiz/vendor/ofbiz/current
>>>
>>> When checking the stuff out again, I noticed that one of the jar
>>> archives is corrupt (485 bytes missing). I had a look at the jar
>>> file before import, and it was intact.
>>>
>> Do you have autoprops configured? What does "svn pl -v" say for that
>> file?
>
>
> [auto-props]
> * = svn:keywords=LastChangedDate Revision Author
> *.jar = svn:mime-type=application/octet-stream
> ...
>
> svn pl -v:
> svn:mime-type : application/octet-stream
> svn:keywords : LastChangedDate Revision Author
>
> Another jar file in the same folder has the same props and is intact.

So? You've enabled keyword expansion on a JAR file, which means that
you've told the Suvberision client that it's allowed to change the file
if it finds keyword placeholders in it. You got exacly what you asked
for. The fact that another jar file happens not to have any keyword
placeholders in it is irrelevant.

In other words, your auto props configuration is just plain wrong.

BTW, you shouldn't need an autoprop to set the mime type to
application/octet-stream for JAR files; Subversion will do that itself
if it detects that a file is binary.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 9 12:57:47 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.