Re: Convert already downloaded code from one user to another

"Mark D. Baushke" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.general
Message-ID <[email protected]>
Jai Kumaran V.G. <[email protected]> writes:

> i have downloaded a codebase with user1 credentials, i want to just to
> migrate this existing download code base to user2 with out downloading
> the codebase again.

If your CVS/Root files mention user1, then you will need to modify your
CVS/Root files using something like the 'newcvsroot.sh' script which
comes with your CVS source distribution.

If there are any files being watched and you have done a 'cvs edit' then
you will likely need to revert those locks as user1 before proceeduing
to adding advisory locks as user2.

> is find and replace best solution or is there any optimal solution for
> this ? or is there any tools to do this?

You may use a command-line 'cvs -d $CVSROOT' to over-ride the CVS/Root
entries, or you may choose to use the contrib/newcvsroot.sh which comes
with the CVS source distribution to change the CVS/Root as appropriate
for user2.

You may need to change the underlying file permissions and ownerships to
allow the approprate user2 to have full access to the repository.

	-- Mark
signature.asc (application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFMfVqLCg7APGsDnFERAuh5AJ910GK7R3VINd0DhHtLqv1AJ7gZOwCgrDfC
vCpDI7JH2UT2lTorLqZehUM=
=BkMh
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.