This page should help you create a repository of your code, and also will show you how to add your project to it. A repository is where subversion stores all the copies of your code.
To make things easier we will use full paths in these commands. You can find the full path for the directory you are currently in by typing pwd
So lets say for instance you project is in /Users/dahuk/projects/ror/myproject
You want to create a repository lets say at /Users/dahuk/projects/svnrepos/myproject
Use the command (make sure the directory exists first)
svnadmin create /Users/dahuk/projects/svnrepos/myproject
Now you have an empty repository and you have to add your current code to it.
Change your current directory to /Users/dahuk/projects/ror
svn import myproject file:///Users/dahuk/projects/svnrepos/myproject -m "anything you want"
#The -m means message
Now your code should be in your repository. Next we need to create a working copy. Your working copy is the place where you will be making all of your changes and working on your project. Lets say you want to do your work at /Users/dahuk/myproject. Go to /Users/dahuk, then use the following command.
svn checkout file:///Users/dahuk/projects/svnrepos/myproject
You will notice it created a directory call myproject, change to it and now you should have a working working copy. Make a change to it, like edit the readme and then save.
You will see that subversion found the change. To save the changes to the repository type:
svn commit -m "wow we are on v2 now!"
There you go! Now if you go and read the basic functionality chapter it should be a lot easer to figure things out.
Let me know if you have any questions!
Also if you type svn help you can see all the possible commands.
Last edited by dahuk (2007-05-25 12:35:17)