Panasonic Youth rob sanheim writes about software, business, ruby, music, stuff and things



Posted
20 February 2006 @ 4pm

Tagged
Agile, Open Source

Discuss

Quick Tip: Host Two Different Version Control Systems

I recently set up subversion to complement my cvs repository for version control. I ported all my personal apps over, but one nice benefit I didn’t anticipate was the ability to keep client projects or open source projects in my own repository at the same time.

For instance, I had a project for a client that I wanted to work on this last weekend from home. The problem was the codebase was under cvs control at the client’s pc, with cvs metadata locked to their repository. Their cvs server is not accessible outside the client site. Now if I really wanted to get that into my cvs repository, I could copy the whole project and rip out all the cvs metadata, then handle merging changes back into the connected project by hand. But that sucks.

Now that I have my own subversion server setup, all I had to do was “disconnect from repository” on the project in Eclipse and then share it with my svn server. All the cvs metadata is saved, so when I’m done doing my work from home I sync everything up from my svn, disconnect from svn and reconnect to the clients cvs, and I’m ready to merge my latest changes. No messing with metadata or copying things manually.

So its nothing groundbreaking, but it was a nice easy solution for sharing a project that is already under third-party cvs or svn control that you want into your repository as well.


2 Comments

Posted by
Richard Rodger
21 February 2006 @ 6am

Just make sure you don’t add the CVS or .svn folders to the other repository! :)


Posted by
Rob
21 February 2006 @ 10am

Very true. I know Eclipse has the cvs and svn metadata under “ignored resources” by default, so just make sure to set the appropriate setting for your IDE (or add them to the .ignore files).


Leave a Comment

Sql standards - how exactly did this get so f’ed up? Ajaxian provides more traffic then del.icio.us/popular?