On 06/01/12 06:43, Philip Martin wrote: > Skylar Thompson <skylar.thomp...@gmail.com> writes: > > >> [skylar@hopper ~]$ svnadmin[Kmkdir 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 iuc[Kicc >> 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. > > 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
mkdir svnrepo [skylar@hopper ~]$ svnadmin create svnrepo [skylar@hopper ~]$ mkdir svn [skylar@hopper ~]$ cd svn [skylar@hopper ~/svn]$ svbn n co file:///cluster/home/skylar/svnrepo Authentication realm: 905452c1-c9ac-e111-9bd8-001e687902b7 Username: skylar Checked out revision 0. [skylar@hopper ~/svn]$ cd svnrepo/ [skylar@hopper ~/svn/svnrepo]$ sha1 ~/tmp/icc SHA1 (/cluster/home/skylar/tmp/icc) = 29e1d247ac5b518537495ebda3df378fd5025a1b [skylar@hopper ~/svn/svnrepo]$ cp ~/tmp/icc . [skylar@hopper ~/svn/svnrepo]$ cp ~/tmp/icc .sha1 ~/tmp/icc[Kicc SHA1 (icc) = 29e1d247ac5b518537495ebda3df378fd5025a1b [skylar@hopper ~/svn/svnrepo]$ svn add icc A (bin) icc [skylar@hopper ~/svn/svnrepo]$ sha1 icc SHA1 (icc) = 29e1d247ac5b518537495ebda3df378fd5025a1b [skylar@hopper ~/svn/svnrepo]$ svn commit -m "adding" Adding (bin) icc Transmitting file data . Committed revision 1. ^[[A^[[A[skylar@hopper ~/svn/svnrepo]$ svn commit -m "adding" ha1 icc[K[3@vn add icc[3Pha1 icc SHA1 (icc) = 1637fef82fb8ae42307dd9edeba3c6ed50bbe0a0 [skylar@hopper ~/svn/svnrepo]$ rm -f icc [skylar@hopper ~/svn/svnrepo]$ svn update icc Updating 'icc': Restored 'icc' At revision 1. [skylar@hopper ~/svn/svnrepo]$ svn update icc[5Prm -f icc[1Psha1 icc SHA1 (icc) = 1637fef82fb8ae42307dd9edeba3c6ed50bbe0a0 [skylar@hopper ~/svn/svnrepo]$