How to change CVSROOT or username in Windows

To update your CVSROOT and connection username (e.g. “:ssh:esalwin@10.16.21.10:22:/cvs”),
replace the value in each hidden ROOT file (within every sub-folder in your repository).

You can open the ROOT file with Notepad.  You can display the hidden CVS folders with Control Panel > Folder Options > View > Show Hidden Files.

Use a text tool (e.g. Notepad++) to batch-replace the ROOT value across your repository.  Or delete your repository and check it out from scratch with the new ROOT value.  Or switch to Subversion or any other versioning system invented after 1986.

Note: My environment is Windows 7 with TortoiseCVS and CVSNT authenticating via SSH to a CVS Linux server.  I used the above “find-and-replace” technique to change just my username in the CVSROOT.  I don’t know how well the technique would work under different circumstances.

On your CVS server, you may or may not also need to logout, login, and set your CVSROOT environment variable (see http://www-e815.fnal.gov/webspace/cvs/commands.html).

Advertisement


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s