Search code examples
cvs

How to switch cvs user in checked out directory


My co-worker checked out our source tree from cvs and made some local changes, and then gave me a copy of the entire modified directory. When I try to do cvs operations on it, cvs is asking for his password. Is there a way to change the saved username in the cvs files within this directory so that I can continue working on it as if I had checked it out and made the changes?

We'd prefer not to check in this modified code or create any additional branches.

Thanks.


Solution

  • Found a solution:

    A partial description is here: http://worldforge.org/doc/faq/cvs/#unix2

    Here's what I did:

    > find module_dir_name -regex .*CVS/Root -print0 | xargs -0 perl -p -i.orig -e "s/olduser/newuser/;"
    > find module_dir_name -regex .*CVS/Root.orig -print0 | xargs -0 perl -p -i.orig -e "s/olduser/newuser/;"