How to install Subversion on Mac OS X

From ArticleWorld


SVN is quickly becoming an alternative to CVS (Concurrent Versions System), both due to the very active development and its many facilities. If you are a developer working on an open-source project, you may want to consider SVN. This guide explains how to install SVN on a Mac OS X system, although the procedure is mostly similar for other UNIX systems as well.

Steps

1. First, download and install the Subversion package. You can do so either by using Fink (which is a Unix/Linux package manager for Apple's OS X) or by downloading Martin Ott's DMG from http://www.codingmonkeys.de/mbo/ . Unpack the DMG file and click .pkg-installer to install Subversion.

2. Open a Terminal (/Applications/Utilities) and type:

$ svn

3. If you want to distribute a SVN project, you will need a Subversion server. A good option is OpenSVN, which you can obtain on https://opensvn.csie.org/ . After setting it up, you should create a new project, login and create a user to access the server.

4. Now you have to set up the SVN Environment. You should probably use SVNx for this, as it provides an easy-to-use GUI. Download and install SVNx.

5. Start SVNx. There will be two windows: "Working Copy" and "Repositories". Under the "Repositories" section, add the URL and the Login data from the SVN server. Check the Login part if you get an error.

6. Now switch to the terminal and type:

$ svn import -m "the Import message" /the/local/project/path /the/remote/svn/repository/path

7. Add the path of the SVN repository from the SVN Server to the list you have in SVNX' "Working Copy" window. Open the working copy in SVNx: this where you will see all your modifications. You can press Commit at any time to commit your changes to the SVN repository.