This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes how to switch from one cvs to another cvs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "how to switch from one cvs to another cvs" Watch "how to switch from one cvs to another cvs" New topic
Author

how to switch from one cvs to another cvs

kumsr phani
Greenhorn

Joined: Dec 13, 2012
Posts: 2
Hi,

we have a cvs repository and i can access that repository with two different addresses means one for local access and another for public access,
In my company i cant access public ip so i want to switch repository address to another with out checkout.

suppose in my work space i have project like Temp(10.10.10.10) now i just want to change it as Temp(11.11.11.11) with out deleting and checkout.

Please tell me a way
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3606
    
  60

Welcome to the Ranch!

I've left CVS some time ago, so please take my advice with a gain of salt, but I believe that the repository connect string is specified in the Root file in every CVS folder in your local directory. It should be possible to change the connect string in each and every Root file within your working directory. I have actually done this in the past once, successfully, but it's been some time ago.

Make sure to commit everything everywhere before you do this, so that you can do a clean checkout if something goes wrong.

Also, consider creating an alias (either in your domain DNS, if you have one, or in a localhost file on every workstation) and use that alias in your connect string. You can then move the repository to another computer and just update the alias to point to the new computer, without hacking into the CVS control directories.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to switch from one cvs to another cvs
 
Similar Threads
Ant checkout CVS using SSH
CVS question(s)
Eclipse & CVS
Show what happen
CVS Question