Categories
Computing

Changing CVS repository path in CVS

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:

  1. In Eclipse: Right-click the root folder for the project and choose ‘Disconnect…’ from the ‘Team’ submenu’
  2. Close Eclipse
  3. Start your favorite text editor (one that worked for the procedure below was the free and fabulous jEdit)
  4. 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.
  5. Start Eclipse again
  6. Right click the root folder of the project and select ‘Refresh’
  7. Right click the root folder of the project again and select ‘Share project’ from the ‘Team’ submenu.
  8. 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.
Share

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Share