[cvsnt] How to add a file on mainline when parent directory isupdated from a tag?
arthur.barrett at march-hare.com
Fri Oct 16 00:19:54 BST 2009
> I perform cvs update from a tag and then I would like to add a file
> under CVSNT control. I'd like to have the file added on the
> mainline (as
> my update was from a tag, not even a branch) and I do cvs add foo.c -r
> HEAD and then commit.
> 1. if I do not specify -r option to commit, then what happens is that
> the file is added not to the mainline, but to a branch that
> has the name
> of my tag. What is the effect of -r on the add command, then?
> 2. if I try to specify -r HEAD option to commit, it returns:
> commit: invalid option -- r
> cvs commit: nothing known about `HEAD'
> cvs [commit aborted]: correct above errors first!
It's almost impossible to help if you do not provide the basic
information requested in the FAQ:
Works for me using CVS Suite 2008:
:sspi;force=kerberos:Administrator at cluster1.march-hare.local:/i-repo
rtag blahtag appl
cvs rtag: Tagging appl
cvs rtag: Tagging appl/app1
:sspi;force=kerberos:cluster1.march-hare.local:/i-repo co -r
cvs server: Updating appl
cvs server: Updating appl/app1
I:\testtemp\appl>cvs add -r HEAD test.txt
cvs server: scheduling file `test.txt' for addition on branch `HEAD'
cvs server: use 'cvs commit' to add this file permanently
I:\testtemp\appl>cvs ci -m "go"
cvs commit: Examining .
cvs commit: Examining app1
RCS file: /i-repo/appl/test.txt,v
Checking in test.txt;
/i-repo/appl/test.txt,v <-- test.txt
new revision: 1.2; previous revision: 1.1
Client: Concurrent Versions System (CVSNT) 2.5.03 (Scorpio) Build 3509
Server: Concurrent Versions System (CVSNT) 2.5.03 (Scorpio) Build 3509
What are you doing differently?
More information about the cvsnt