The first step in creating a repository is selecting a location on your local hard disk where the repository files are kept. This is different than the location where you will keep your local client copies of your code. Remember, in this scenario your machine will be both the client and the server.
On my machine I chose to put my repository in my home directory. The full path is:
/usr/local/svn/repo
For the directory name you can use "repo", "repositories", or any other descriptive name.
To get started, access the Mac (UNIX) command line by opening the Terminal application. Choose Application > Utilities > Terminal from the Mac menu bar.
In the Terminal application (see Figure 1), you'll see a prompt which looks something like the following:
Voltage:~ voltmer$

Figure 1. The command line prompt in Terminal.
In the prompt, Voltage is the name of my machine and voltmer is my login.
I use the following commands to:
Voltage:~ voltmer$ sudo mkdir /usr/local/svn Voltage:~ voltmer$ sudo svnadmin create --fs-type fsfs /usr/local/svn/repo Voltage:~ voltmer$ ls /usr/local/svn/repo README.txt dav format locks Conf db hooks

Figure 2. Create the Subversion repository via the command line.
Note: I precede each command with sudo to execute commands as the superuser. The first time you run the sudo command it will prompt you for the superuser
password. It will cache the password for a while and not prompt you again until
the cache times out.
That is it! I now have a repository where I can keep my code.