[Top][All Lists]

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

Switching to a branch

From: Wayne Johnson
Subject: Switching to a branch
Date: Fri, 26 Apr 2013 11:46:48 -0700 (PDT)

Quite often I will start coding a feature on our trunk (AKA HEAD) and after 
starting to change the code realize that I probably want to do this on a 
branch. This is fairly easy to do, I simply create the branch with something 

cvs rtag forkName all
cvs rtag -b branchName -r forkName all

Then from my modified workspace I morph it into the created branch:

cvs up -r branchName

The problem I'm having is that any file that has been added previously is not 
morphed over to the branch but remains "added" to the trunk.

To fix this, I've gone into the CVS/Entries file and appended the branch tag to 
the added file entries (don't try this without parental supervision kids).

Is there a better way?

Wayne Johnson,                         | There are two kinds of people: Those 
3943 Penn Ave. N.          | who say to God, "Thy will be done," 
Minneapolis, MN 55412-1908 | and those to whom God says, "All right, 
(612) 522-7003                         | then,  have it your way." --C.S. Lewis

reply via email to

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