[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is HEAD?

From: Jim Hyslop
Subject: Re: What is HEAD?
Date: Sun, 11 Sep 2005 23:34:26 -0400
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Ming Kin Lai wrote:
I need some clarification and confirmaton. By "default branch", you do not mean a branch created by
cvs tag -b mybranch
You mean either the "vendor branch" that is imported or the trunk.  Right?
The default branch is set using the command 'cvs admin -b'. If you set the default branch, then commands that do *not* use the -r option to specify a branch will refer to that branch instead of the trunk. The sticky tag will not be set.

For example, run the following sequence of commands and study the output (do these commands within a test directory in your repository):

mkdir test_default
cvs add test_default
cd test_default
echo test file>test.txt
cvs add test.txt
cvs ci -m "a test file" test.txt
cvs tag -b abranch
cvs up -r abranch
echo changes on the branch>>test.txt
cvs ci -m "changes on a branch"
cvs admin -babranch
cvs up -A
cvs st
cat test.txt

Pay particular attention to the output of the last two commands.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]