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

Re: Binary blob corruption

From: Skylar Thompson <skylar.thompson_at_gmail.com>
Date: Sat, 02 Jun 2012 08:48:07 -0700

On 06/01/12 06:43, Philip Martin wrote:
> Skylar Thompson <skylar.thompson_at_gmail.com> writes:
>
>
>> [skylar_at_hopper ~]$ svnadminmkdir svnrepo
>> [skylar_at_hopper ~]$ svnadmin create svnrepo
>> [skylar_at_hopper ~]$ mkdir svn
>> [skylar_at_hopper ~]$ cd svn
>> [skylar_at_hopper ~/svn]$ svn  co file:///cluster/home/skylar/svnrepo/
>> Authentication realm: c328e328-e9ab-e111-bfb4-001e687902b7
>> Username: skylar
>> Checked out revision 0.
>> [skylar_at_hopper ~/svn]$ ls
>> svnrepo
>> [skylar_at_hopper ~/svn]$ cd svnrepo/
>> [skylar_at_hopper ~/svn/svnrepo]$ ls -l ~/tmp/icc
>> -rwxr-xr-x 1 skylar users 3873673 Jun 1 05:55 /cluster/home/skylar/tmp/icc
>>
> That's the original file.
>
>
>> [skylar_at_hopper ~/svn/svnrepo]$ cp ~/tmp/icc .
>>
> That's the copied file. You don't appear to have verified that the copy
> is the same as the original. Are they different? Run something like
> "sha1sum icc" to get checksums.
>
>
>> [skylar_at_hopper ~/svn/svnrepo]$ svn add iucicc
>> A (bin) icc
>> [skylar_at_hopper ~/svn/svnrepo]$ svn - commit -m "test"
>> Adding (bin) icc
>> Transmitting file data .
>> Committed revision 1.
>> [skylar_at_hopper ~/svn/svnrepo]$ rm -f icc
>> [skylar_at_hopper ~/svn/svnrepo]$ svn update
>> Updating '.':
>> Restored 'icc'
>> At revision 1.
>> [skylar_at_hopper ~/svn/svnrepo]$ ls -l
>> total 3808
>> -rwxr-xr-x 1 skylar users 3873654 Jun 1 05:57 icc
>>
> That's the restored file. It should be the same as the copied file but
> you don't appear to have checked that. It will only be the same as the
> original file if the copy was the same as the original file.
>
>
The big thing is they're different sizes, but I probably should have
done a checksum as well. I've attached another round that shows the file
changes on commit.

Skylar

Received on 2012-06-02 17:48:44 CEST

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.