soledad penadés
repeat 4[fd 100 rt 90]

Subversion-ing with Mac and Textdrive

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.

Subversion'ized file in mac os X

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 formatdrwxr-xr-x   114 sole  sole   3876 Jan 22 18:57 prop-basedrwxr-xr-x   114 sole  sole   3876 Jan 22 18:57 propsdrwxr-xr-x   114 sole  sole   3876 Jan 22 18:57 text-basedrwxr-xr-x     6 sole  sole    204 Jan 22 18:57 tmpdrwxr-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…

// 5 responses to Subversion-ing with Mac and Textdrive

winden
winden
20060122

sole, the most effective way i know for keeping backups is to hand off a full copy of your sources to some friends at some other city… or country ;)

sole
sole
20060122

nahhh it won't work! I have lots of files and I hate to maintain a mental list of what I have modified and what not and why…

winden
winden
20060123

copy the whole HD then ;) the easy way is to get a new bigger HD, copy all onto the new and then send give the old one to a friend so that he hides it somewhere at his home. voilá, instant off-site backup!

sole
sole
20060123

noooooooooo! something bad is not "a bomb over my computer", it is me changing code and not remembering why, leaving it in an unuseful state. Or as I did past week… overwriting with an old version of a page :-(

sin
sin
20060124

What do I think? I think SVN rocks, enough said! Been using it for ages, never failed me, saved my arse in more than 100 occassions. :)

You came late to the party

Comments are closed, but if you want to comment anything about this entry please let me know using the info in this page.