Wayne Johnson
2013-04-26 18:47:36 UTC
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 like:
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
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