[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Cvs-dev] Different login for checkout & for commit
From: |
Mark D. Baushke |
Subject: |
Re: [Cvs-dev] Different login for checkout & for commit |
Date: |
Mon, 2 Mar 2009 09:29:10 -0800 |
The CVS/Root file will contain the CVSROOT value you used for the
checkout and will try to use that user for the commit. So, if you
did the original checkout with:
cvs -d :pserver:address@hidden/repo login
cd /some/directory
cvs -d :pserver:address@hidden/repo checkout mymodule
You may overwrite this by putting the user with 'write' credentials
on the command-line
cvs -d :pserver:address@hidden/repo login
cd /some/directory/mymodule
cvs -d :pserver:address@hidden/repo commit
However, this is NOT really the way that CVS is intended to be used.
The order of evaluation is:
1) Use the command-line '-d <cvsroot>' for the CVSROOT for the
operation.
2) Use the contents of CVS/Root as the CVSROOT for the operation
3) Use the contents of the $CVSROOT environment variable for the
operation (on checkout populate this value into the CVS/Root
internal state files).
Your really should be doing your checkout and your commit as the same
user if you want any kind of CVSROOT/history to be maintained in a
reasonable manner.
-- Mark
pgpziSwh8XypX.pgp
Description: PGP signature