How to switch cvs user to extracted directory

My colleague checked 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 perform cvs operations, cvs asks for a password. Is there a way to change the saved username in the cvs files in this directory so that I can continue to work on it as if I checked it and made changes?

We would rather not check this modified code or create any additional branches.

Thank.

+3
source share
3 answers

Found a solution:

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

Here is 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/;"
+7
source

, ; !. ( , perl) . , Root, Root.orig:

find module_dir_name -regex ".*CVS/Root\(.orig\)?" -print0 \
    | xargs -0 sed -i s/olduser/newuser/ 
0

TortoiseCVS/CVSNT switch: CVS "..." CVS. CVSROOT. , CVSROOT ": pserver: alice @cvs:/vol/cvsroot", ": pserver: bob @cvs:/vol/cvsroot", alice bob. .

:

PS> cvs switch -h
switch: invalid option -- h
Usage: cvs switch [-f] newroot
        -f      Change all roots, not just those matching the current directory.
(Specify the --help global option for a list of other help options)

, CVSNT.

0

Source: https://habr.com/ru/post/1752864/


All Articles