Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

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:




Copyright © 1995-2019 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of open source software including Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.