Thursday, October 30, 2008

Why cvsrootswitch?

I was trying not to reinvent the wheel, so checked on internet if there is any tool which can provide me a command to switch the root of CVS folders from one server to another server.  This is quick in SVN and even TortoiseSVN supports that.

I tried TortoiseCVS first.  My problem was that my code was checked out through Eclipse and Eclipse maintains a custom protocol extssh for CVS over SSH.  TortoiseCVS refused to use this protocol and I learnt that now I have to search something else.

After analysing the Root file structure I found it pretty simple to change but the only issues was the Root files must be changed in all the subfolders recursively.  I was working on a Java project so obviously I wrote a program in Java to iterate recursively on the folder and change the Root files and my got my solution.

As this type of solution was not found on internet easily through search, I thought of publishing the solution on the internet so some other user may find it useful some day.  This way I started thinking about cvsrootswitch.  

Now I have added enough GUI to the project so any user can use it easily.

with regards

Sunday, October 26, 2008

cvsrootswitch version 0.1 released

The first version of cvsrootswitch is released.

The aim is to make the version available in working form as soon as possible.  I am using this version to shift CVS local folders for my use successfully.

with regards
Tushar

How to shift CVS local folders to new server

Necessity is Mother of Invention, Indeed!

I was having a local sandbox checked out from CVS server.  There were two ways to use that server the internal LAN IP and external exposed IP.  While working from work place I checked out the files from the internal IP address.  

To work from home I needed to shift the CVS folders to point to the external IP address of the same server.  I started searching for tools to do the same.  in Subversion I had used a command to do this which is directly available in the software.  For CVS this type of command was not available.

My search lead me to many entries pointing towards ways to do this through shell scripts.  I was on Windows XP box and the perl scripts and all the working programs out there were not going to work for me.

This made me study the way CVS Root entries are created and to find a way to shift those entries to new server. Thus started cvsrootswitch project.

with regards
Tushar Joshi, Nagpur