I’ve set up my first personal Subversion repository.
By all accounts, Subversion is much easier than CVS. But setting up a personal repository on Mac OS X involves little steps that nobody seems to have written down anywhere yet.
First of all, don’t bother with all the packages listed in the MacDevCenter.com article “Making the Jump to Subversion”. For 10.3 “Panther,” all you need is one of these two packages:
- Martin Ott’s packages containing statically linked binaries for Mac OS X 10.3 Panther
- Metissian’s Mac OS X Subversion Packages
Alas, neither works out of the box without further fiddling. What I discovered from Metissian’s README file is that it doesn’t install its utilities under any of the standard 10.3
PATH environment variable locations. Type
echo $PATH in a Terminal window to see these locations for yourself. Instead, without any explanation (though I’m sure some Unix expert could give me theories), it puts them in
/usr/local/bin. Under a standard 10.3 configuration, such utilities are not conveniently accessible.
There are perhaps half a dozen ways to add to your
PATH environmental variable. Ask the above-mentioned Unix experts about their various merits if you want to while away an hour or two. The one I use is a
.profile file in my home directory. See this sample profile.txt file. (Update: I accidently deleted the sample file. See the comments for other options.)
Now you can use Subversion utilities like
svn from a Terminal window. Have a look at the Subversion book to see the steps needed from there to set up and access a same-machine Subversion repository.
I’ve heard rumors you need a
~/.subversion/config file to prevent a Subversion import from sucking in
.DS_Store files, but my admittedly simple tests tonight show that this fear is unfounded.
I’m sure I’ll have more to say about Subversion, esp. about sample
config files, but for now, that’s it!