NetBSD Developer Documentation:Working with CVS branches |
Chris Demetriou writes:
So, a bunch of you often do CVS branch stuff. Below are the commands that I generally use to do branch stuff (creation, updating). Jason asked me to send them here.
Assuming ${b} == the branch name and ${m} == the module name covered by the branch. I assume that whole hierarchies will be worked with, rather than individual bits as some people seem to want to do. I've never had much luck with the latter.
To create a branch:
cvs rtag -r HEAD ${b}-base ${m}
cvs rtag -b -r ${b}-base ${b} ${m}
To update the branch to reflect changes in the trunk:
cvs update -P -r ${b}
(in your working source tree)
cvs rtag -F -r HEAD ${b}-nbase ${m}
This allows you to punt, and redo your merge again later if you decide you don't have time to do it right then, or whatever.
cvs update -j ${b}-base -j ${b}-nbase
(in your working source tree)
cvs rtag -F -r ${b}-nbase ${b}-base ${m}
cvs rtag -d ${b}-nbase ${m}
|
|