85.50 Subversion Local Setup
Subversion is a good CVS, but today (20111016) it would not usually be the first choice for developers. Git, bazaar, and mecurial are distributed version control systems and the more popular choices, with git way out in front (20190307).
Note that subversion should not be hosted to a file:/// using NFS if using the BDB format for subversion. But, by default, the svnadmin create command uses the FSFS format, so that NFS is just fine (if the lockd daemon is running).
A simple local setup of subversion will install the software and setup the system:
$ wajig update $ wajig install subversion $ sudo mkdir /var/svn $ sudo chgrp -R staff /var/svn $ sudo chmod -R g+w /var/svn $ svnadmin create /var/svn/myproject $ mkdir TEMP $ echo "Test SVN" > TEMP/simple.txt $ svn import -m "Initial import" TEMP file:///var/svn/myproject/trunk $ svn co file:///var/svn/myproject/trunk $ svnlook tree /var/svn/myproject
If you have set up a local SVN repository and checked out a project locally to your home directory and NFS mount the repository to another machine for local checkout, we are likely to face NFS issues. Instead set things up to work with snvserver as in the next page.
To change the location of the svn repository edit the information in
./.svn/entries to change:
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0