Index syndication
comment syndication

Clearcase Branches

August 7, 2007 at 23:56 · Filed under unix

I’m so used to making branches in CVS.

cvs tag -b system_test

As the CVS doco states simply, “This splits off a branch based on the current revisions in the working copy”, and these revisions will get assigned the branch name, in this case `system_test’. Simple, powerful enough and quick!

But Rational Clearcase is a different beast as I learn it. You have to make your branchtype.
cleartool mkbr system_test
All good so far.

Next I must merge stuff from the current mainline to my new branch, BUT I can only do it a file at a time or using findmerge??? When I do a dry run, the element does not exist in the new branch though so it says it will skip everything… Hmmm
On top of all this one must not forget to set your view configspec set to show this branch! (like a CVS Checkout with your branch tag being sticky).

No wonder people prefer CVS. Clearcase IS powerful once you know it, but the learning curve is huge.

So asking for help – if anyone actually reads this – any quick ways to branch the /main/LATEST into my new branch?

Alf said,

August 8, 2007 @ 08:26

The clearmrgman command starts the Merge Manager, a graphical tool that manages the process of merging one or more versions. It automates the processes of gathering information for a merge, starting a merge, and tracking a merge. It can also save and retrieve the state of a merge for a set of versions.

Not sure, if you might hit a dead end again, but worth a try!

– Alf

Lantrix said,

August 8, 2007 @ 16:31

Looked into it, and clearmrgman has multiple tasks it can perform, but one of them is not creating initial versions of an element in a new branch in bulk.

Its specialty is to compare versions of elements already existing and help you merge them.

RSS feed for comments on this post · TrackBack URI

Leave a Comment