[Quick Start Guide To Setting Up Subversion On Mac OS X]

Jason Huck, April 27, 2006

1. Read the book. Especially chapters 2-4, especially if you are new to Source Code Management.

http://svnbook.red-bean.com/en/1.1/index.html

2. Get the software. Follow the README instructions to make sure it installs properly. Precompiled binaries for OS X are maintained here:

http://metissian.com/projects/macosx/subversion/

3. Create an OS X user for the subversion server to run under. I made the user an admin, but that isn't actually necessary AFAIK. Just needs specific perms on the repository directories.

4. Set the server to start up automatically via xinetd. These instructions worked for me:

http://www.unix-girl.com/blog/archives/001486.html

Important note: /etc/services in Panther already has entries for svn, but xinetd wouldn't launch it properly until i changed them to svnserve per this article. I am guessing this is because we named the config file we put in xinetd.d 'svnserve'. Also, instead of killing xinetd in the terminal i just did it from Activity Monitor.

5. Create a repository. I created a root level directory called /svn/, went to it, and executed:

shell> svnadmin create myproject

6. Import a project. Easiest way is to create your repository layout and put a real copy of it in /trunk, then:

shell>svn import myproject file:///svn/myproject/trunk -m "Initial commit."

...where myproject is the project you're importing, and the file part is where in the repository it should go. Note the -m message part is REQUIRED.

7. Edit the server config file. Within the /conf directory of the repository, edit the server config file (svnserve.conf) and add a svnusers file. I set mine up like so:

[general] 
anon-access = read
auth-access = write
password-db = svnusers
realm = My SVN Repository

8. Add a users file.The users file looks like this:

[users] 
Joe Schmoe = passblah
Jack Schmoe = blahword

9. Connect with a subversion client such as:

snvX
Subclipse (for Eclipse) http://subclipse.tigris.org/

Email:


Password:



Articles