Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CVS: Replace HEAD with a branch

Tags:

branch

cvs

How do I replace the HEAD of a CVS repository with a branch?

like image 826
Jason Terk Avatar asked Sep 22 '08 14:09

Jason Terk


People also ask

How do I merge a head to a branch in CVS Eclipse?

To do this, select the project and choose Team > Replace With > Another Branch or Version from the context menu. Then select the branch to replace with. From this point, choose Team > Merge and then select the branch you want to merge into HEAD. Save this answer.

How do I create a CVS HEAD branch?

Making a Branch You can make a branch with the -b option to the cvs tag or cvs rtag commands. This option can be combined with any of the other tag-creation options of those commands. You can use a date, existing tag, or revision number to specify the revision to be branched from.

How do you switch branches at CVS?

5 Branching and merging Later you can move changes from one branch to another branch (or the main trunk) by merging. Merging involves first running cvs update -j , to merge the changes into the working directory. You can then commit that revision, and thus effectively copy the changes onto another branch.

How do I merge two CVS branches?

You can merge changes made on a branch into your working copy by giving the `-j branch ' flag to the update command. With one `-j branch ' option it merges the changes made between the point where the branch forked and newest revision on that branch (into your working copy). The `-j' stands for "join".


1 Answers

Check out this page, which has a pretty easy to follow walk through of branching and merging in CVS

http://kb.wisc.edu/middleware/page.php?id=4087

It also includes an example of replacing HEAD with a specified branch

Replacing One Branch With Another

Tag the end of your branch

cvs tag merge_NEW_BRANCH

Switch back to the branch you're replacing

To head:

cvs up -A

To branch:

cvs up -r OLD_BRANCH

Do the replace:

Replace head

cvs up -jHEAD -j NEW_BRANCH

Replace branch

cvs up -jOLD_BRANCH -j NEW_BRANCH

Commit changes and tag if you need to.

like image 81
Andrew Burgess Avatar answered Sep 19 '22 16:09

Andrew Burgess