Monday, January 14, 2008

The ClearCase Eraser -- Delivered Baseline

Needless to say that, to remove a stream from ClearCase, the stream must be "clean", no views, no activities, no baselines, etc. In my previous blog, I have demonstrated how to remove an activity that has change set. Today, I am going to show you how to remove a baseline that has been delivered.

Try to remove a stream with baseline on it. Got errors.
$ cleartool rmstream CBFE14.5_base_hz18@/vobs/CBFEProjects
Remove stream "CBFE14.5_base_hz18@/vobs/CBFEProjects"? [no] y
cleartool: Error: Cannot remove stream that has baselines.
cleartool: Error: Unable to remove stream "CBFE14.5_base_hz18@/vobs/CBFEProjects".

Check which baselines are on the stream.
$ cleartool lsbl -stream CBFE14.5_base_hz18@/vobs/CBFEProjects
2007-12-04T13:22:38-05 deliverbl.CBFE14.5_base_hz18.20071204.132426 HZ18 "deliverbl.CBFE14.5_base_hz18.20071204.132426"
stream: CBFE14.5_base_hz18@/vobs/CBFEProjects
component: MidTier@/vobs/CBFEProjects

Try to remove the baseline. Got errors.
$ cleartool rmbl deliverbl.CBFE14.5_base_hz18.20071204.132426@/vobs/CBFEProjects
Remove baseline "deliverbl.CBFE14.5_base_hz18.20071204.132426@/vobs/CBFEProjects"? [no] y
cleartool: Error: Cannot remove baseline that has been delivered.
cleartool: Error: Unable to remove baseline "deliverbl.CBFE14.5_base_hz18.20071204.132426@/vobs/CBFEProjects".

$ cleartool desc -l baseline:deliverbl.CBFE14.5_base_hz18.20071204.132426@/vobs/CBFEProjects
baseline "deliverbl.CBFE14.5_base_hz18.20071204.132426"
created 2007-12-04T13:22:38-05 by Zhao (HZ18.cbfedev@CBAD3-XCIDVQ)
"Baseline created by deliver on 12/4/2007 1:24:26 PM.
"
owner: hz18
group: cbfedev
stream: CBFE14.5_base_hz18@/vobs/CBFEProjects
component: MidTier@/vobs/CBFEProjects
label status: Not Labeled
change sets:
promotion level: INITIAL
depends on:
Attributes:
PromotionLevel = "INITIAL"
Hyperlinks:
Integrate@13500@/vobs/CBFEProjects -> anyactivity:timeline071204.132453@/vobs/CBFEProjects


The hyperlink looks suspecious.
$ cleartool rmhlink Integrate@13500@/vobs/CBFEProjects
cleartool: Warning: Hyperlinks of type "hltype:Integrate@/vobs/CBFEProjects" are used to implement UCM and should not be directly manipulated unless directed by customer support.
cleartool: Warning: Hyperlinks of type "hltype:Integrate@/vobs/CBFEProjects" are used to implement UCM and should not be directly manipulated unless directed by customer support.
Removed hyperlink "Integrate@13500@/vobs/CBFEProjects".


Oops, there is a warning message. However when you see the warning, it is already too late. The hyperlink removed. Now you can try to remove the baseline.
$ cleartool rmbl deliverbl.CBFE14.5_base_hz18.20071204.132426@/vobs/CBFEProjects
Remove baseline "deliverbl.CBFE14.5_base_hz18.20071204.132426@/vobs/CBFEProjects"? [no] y
cleartool: Warning: Searching PVOBs for baselines that depend upon baseline "deliverbl.CBFE14.5_base_hz18.20071204.132426". This may take a few minutes...

Removed baseline "deliverbl.CBFE14.5_base_hz18.20071204.132426@/vobs/CBFEProjects".


Now the stream is "clean" to be removed.
$ cleartool rmstream CBFE14.5_base_hz18@/vobs/CBFEProjects
Remove stream "CBFE14.5_base_hz18@/vobs/CBFEProjects"? [no] y
Removed stream "CBFE14.5_base_hz18@/vobs/CBFEProjects".

14 comments:

Ambrox said...

Thanks A LOT for this article!!!

I solved my problem following your guidelines.

I randomly discovered your blog through a google search, but now I'll read all your past, present and future posts!!!

Anonymous said...

Thanks muchly for this great info. Helped to solve my problem. Great.

Anonymous said...

Your blog keeps getting better and better! Your older articles are not as good as newer ones you have a lot more creativity and originality now keep it up!

Anonymous said...

Good brief and this fill someone in on helped me alot in my college assignement. Thanks you on your information.

Anonymous said...

very useful read. I would love to follow you on twitter.

Anonymous said...

Nice post and this mail helped me alot in my college assignement. Gratefulness you for your information.

Anonymous said...

Genial brief and this mail helped me alot in my college assignement. Say thank you you as your information.

Anonymous said...

Good dispatch and this mail helped me alot in my college assignement. Gratefulness you seeking your information.

Roel said...

Unfortunately this doesn't work anymore for ClearCase 7.1.1. The warnings have been replaced with errors:


%> cleartool rmhlink Integrate@1034667@\mypvob

cleartool: Error: Hyperlinks of type "hltype:Integrate@\mypvob" are used to implement UCM and cannot be directly manipulated.

cleartool: Error: Unable to remove hyperlink "Integrate@1034667@\mypvob".

Li Qin said...

Thanks for updating the 7.1.1 change!

Li

ninest123 said...

burberry, tory burch outlet, jordan shoes, sac longchamp, uggs on sale, ugg boots, louis vuitton, oakley sunglasses, michael kors, tiffany jewelry, cheap oakley sunglasses, ray ban sunglasses, christian louboutin outlet, ralph lauren pas cher, louboutin pas cher, ray ban sunglasses, air max, nike free, longchamp outlet, longchamp pas cher, ray ban sunglasses, tiffany and co, oakley sunglasses, polo ralph lauren outlet, louis vuitton, prada outlet, kate spade outlet, longchamp outlet, nike free, ugg boots, nike air max, gucci outlet, oakley sunglasses, louis vuitton outlet, longchamp, nike outlet, replica watches, louis vuitton, replica watches, prada handbags, chanel handbags, louboutin outlet, oakley sunglasses, nike roshe run, louis vuitton outlet, nike air max, louboutin shoes, louboutin, polo ralph lauren outlet, air jordan pas cher

ninest123 said...

true religion jeans, hollister pas cher, vans pas cher, tn pas cher, michael kors, true religion outlet, sac guess, nike free run uk, michael kors outlet, oakley pas cher, true religion jeans, replica handbags, ugg boots, burberry outlet online, mulberry, converse pas cher, michael kors outlet, ugg boots, true religion jeans, michael kors outlet, michael kors, nike air max, air force, hogan, new balance pas cher, vanessa bruno, ray ban uk, hollister, kate spade handbags, north face, nike air max, lululemon, coach outlet, burberry, michael kors, timberland, ray ban pas cher, michael kors outlet, coach purses, lacoste pas cher, hermes, nike air max, nike blazer, north face, ralph lauren uk, abercrombie and fitch, michael kors outlet, michael kors, nike roshe, coach outlet

ninest123 said...

converse outlet, giuseppe zanotti, hollister, insanity workout, herve leger, north face outlet, asics running shoes, nike air max, louboutin, converse, instyler, vans shoes, reebok shoes, iphone cases, abercrombie and fitch, mac cosmetics, wedding dresses, nike huarache, baseball bats, p90x workout, valentino shoes, chi flat iron, nike trainers, ghd, babyliss, oakley, soccer shoes, vans, timberland boots, gucci, celine handbags, nike air max, north face outlet, new balance, ralph lauren, hollister, jimmy choo shoes, mcm handbags, birkin bag, soccer jerseys, longchamp, beats by dre, bottega veneta, ferragamo shoes, nfl jerseys, lululemon, nike roshe, hollister, mont blanc, ray ban

ninest123 said...

moncler, lancel, canada goose, moncler outlet, canada goose, louis vuitton, juicy couture outlet, swarovski crystal, sac louis vuitton pas cher, louis vuitton, canada goose outlet, moncler, moncler, moncler, pandora charms, montre pas cher, canada goose uk, ugg,ugg australia,ugg italia, hollister, canada goose, ugg,uggs,uggs canada, bottes ugg, marc jacobs, doudoune canada goose, ugg boots uk, moncler, louis vuitton, moncler, pandora jewelry, thomas sabo, pandora charms, toms shoes, barbour, coach outlet, supra shoes, replica watches, links of london, barbour jackets, canada goose, juicy couture outlet, swarovski, pandora jewelry, canada goose outlet, louis vuitton, moncler, karen millen, wedding dresses, ugg pas cher