subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Martin <philip.mar...@wandisco.com>
Subject Re: Binary blob corruption
Date Fri, 01 Jun 2012 13:43:33 GMT
Skylar Thompson <skylar.thompson@gmail.com> writes:

> [skylar@hopper ~]$ svnadminmkdir svnrepo
> [skylar@hopper ~]$ svnadmin create svnrepo
> [skylar@hopper ~]$ mkdir svn
> [skylar@hopper ~]$ cd svn
> [skylar@hopper ~/svn]$ svn   co file:///cluster/home/skylar/svnrepo/
> Authentication realm: c328e328-e9ab-e111-bfb4-001e687902b7
> Username: skylar
> Checked out revision 0.
> [skylar@hopper ~/svn]$ ls
> svnrepo
> [skylar@hopper ~/svn]$ cd svnrepo/
> [skylar@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@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@hopper ~/svn/svnrepo]$ svn add iucicc
> A  (bin)  icc
> [skylar@hopper ~/svn/svnrepo]$ svn - commit -m "test"
> Adding  (bin)  icc
> Transmitting file data .
> Committed revision 1.
> [skylar@hopper ~/svn/svnrepo]$ rm -f icc
> [skylar@hopper ~/svn/svnrepo]$ svn update
> Updating '.':
> Restored 'icc'
> At revision 1.
> [skylar@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.

-- 
Philip

Mime
View raw message