I wanted to have a good repository of my code projects just in case something bad happens. Searching info here and there, I found the following pages useful for setting up my own repository in textdrive, and also installing and configuring the appropiate software on my mac.
So first thing was creating the repository, from the webmin administration tool (in textdrive, of course)
Then I found this cool page by Josh Buhler, explaining how to install all the svn tools for Mac Os X. Once all is instaled, I jumped to this textdrive forum thread on using subversion on TXD, which is a bit old but gave me the idea of how to refer to the svn paths. I thought it was something like svn://.... but it was http://... (no wonder why it gave me a timeout each time I tried to access it!).
With it, I could go to the terminal and make the first import and put the first version in my repository! I did it as it is explained in this good article at macdevcenter: Making the Jump to Subversion. Basically the most important step here is making a copy of your source code before importing to the repository, then import it, rename the first folder as Myfolder_beforeSVN, and check it out again in the MyFolder folder - so you get the contents again from the repository, but this time they are all marked like subversionized, and if you look carefully, you'll note their icon exhibits a little check box - to make clear they are under the subversion domain and they are up to date.
If you are a bit curious and run ls -la in your code folder, you'll note there's a little new (and hidden) folder called .svn which contains something like this:
drwxr-xr-x 12 sole sole 408 Jan 22 18:57 .
drwxr-xr-x 119 sole sole 4046 Jan 22 18:57 ..
-r--r--r-- 1 sole sole 118 Jan 22 18:57 README.txt
-r--r--r-- 1 sole sole 78 Jan 22 18:57 dir-wcprops
-r--r--r-- 1 sole sole 0 Jan 22 18:57 empty-file
-r--r--r-- 1 sole sole 31254 Jan 22 18:57 entries
-r--r--r-- 1 sole sole 2 Jan 22 18:57 format
drwxr-xr-x 114 sole sole 3876 Jan 22 18:57 prop-base
drwxr-xr-x 114 sole sole 3876 Jan 22 18:57 props
drwxr-xr-x 114 sole sole 3876 Jan 22 18:57 text-base
drwxr-xr-x 6 sole sole 204 Jan 22 18:57 tmp
drwxr-xr-x 114 sole sole 3876 Jan 22 18:57 wcprops
I think that it is where subversion holds all the info for the files and so on, like the CVS folders which are created in each folder when you use CVS.
And that's all! Now there's no excuse for not being a bit less messy when it comes to having backups and a clean code. Hope you're lucky with it all...