Migrating a repository
(I had to do this with the new eng server)
- on machine with old repo, do
sudo svnadmin dump . > boxaroo_svn_dump
- on new machine:
mkdir -p /var/svn/boxaroo
# make a fresh new repository. Note, this has a different 'base' than before
svnadmin create --fs-type fsfs /var/svn/boxaroo/
cd /var/svn/boxaroo/
svnadmin load . < boxaroo_svn_dump
Setting up the repository
- As of 2/20/07 the newest Yum-able Centos Subversion is 1.1. So I installed 1.4.2 from an rpm. Similarly, the newest Mac version is 1.4.2, and only supports the Berkeley DB method. So I'm building the Mac version from source. I downloaded the standard package and the deps package, untar-ed them on top of one another and built.
- (as
root)
-
mkdir /var/svn
-
svnadmin create --fs-type fsfs /var/svn/
- set
/var/svn/conf/svnserve.conf to look like this
[general]
anon-access = write
auth-access = write
realm = SnapSell
- Launch the server like this:
svnserve -d -r /var/snapsrc/
- Or, better yet, use the attached below file in
/etc/init.d
Pulling down a new copy
-
svn checkout svn://10.1.0.41/main /var/www/main/
Administration
-
svnlook
-
svnadmin verify /var/svn - verifies all the revisions based on checksums and such
-
svnlook youngest /var/svn - get latest revision
Adding a new project
Error that happens if files differ just by case...
(thanks to
this)
You'll see this error if it happens
svn: Can't copy 'main/common/.svn/tmp/text-base/Constants.php.svn-base' to 'main/common/.svn/tmp/Constants.php.tmp.tmp': No such file or directory
--
MattWalsh - 20 Feb 2007