I am using Eclipse’s CVS module for the project I am currently working on and using the really nice cvsdude.org service for storage.
We upgraded our account to one that gave us our own cvsroot directory and hence had to change the repository path for our project in Eclipse. Eclipse 2.1, does not let you do that. You can update the user name, URL, password, but not the path. Even removing the repository did not do the job.
What did work was:
- In Eclipse: Right-click the root folder for the project and choose ‘Disconnect…’ from the ‘Team’ submenu’
- Close Eclipse
- Start your favorite text editor (one that worked for the procedure below was the free and fabulous jEdit)
- Run a global search and replace in the editor to find all instance of the old repository path string and replace them with the new repository path. The search and replace should only be run in the directory of the project. For example, my old path was
/cvs/stda
and I replaced it with/cvs/newpath
. - Start Eclipse again
- Right click the root folder of the project and select ‘Refresh’
- Right click the root folder of the project again and select ‘Share project’ from the ‘Team’ submenu.
- Eclipse should now tell you that the project was previously shared and that it will connect you with the repository. The repository path displayed should now be the correct one – which you updated.