Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CVS: Adding files to a branch but NOT the main tree

0 views
Skip to first unread message

Dave Glowacki

unread,
Jun 6, 1996, 3:00:00 AM6/6/96
to

We've been using CVS for a year or so, but have only recently ventured
into the wonderful world of tags and branches.

Is there any way to add a file so that it is only checked out on the
tagged branch (when 'cvs checkout -r TAG thing' is done in a new directory)
and NOT available from the main branch (when 'cvs checkout thing' is done)?

Also, is there a one-step method of adding a file to a tagged branch?
'cvs add foo.c bar.c' only adds to the main branch; to get the files
included in the tagged branch, we had to do 'cvs tag -r TAG foo.c bar.c'

Jim Kingdon

unread,
Jun 8, 1996, 3:00:00 AM6/8/96
to

> Is there any way to add a file so that it is only checked out on the
> tagged branch (when 'cvs checkout -r TAG thing' is done in a new directory)
> and NOT available from the main branch (when 'cvs checkout thing' is done)?

Yes. Switch to the branch with "cvs update -r <branch>". Then when
you type "cvs add foo.c" CVS will say "scheduling file `foo.c' for
addition on branch `<branch>'"

0 new messages