ClearCase - why is File Version missing.

Ashok Kumar  Srinivasan's picture

Did any of you ever see the version tree for the clearcase file like the below versions hierarchy ?

branch_name
--------> 0 - 1 -3 -4 ( version numbers).

Version 2 is missing. I checked the history logs of the vob and the branch,but it doesn seems to be like removed. I ran the checkvob for the file, it says no misprotected or broken stuff.

If incase any of you experienced such scenario ever before, please share that experience with me.

Thanks for your help in advance.

Thanks,
Ashok Kumar S

8 Answers

Elyahu Eaton's picture

Hi Kumar,

IMHO, it cound be one of the two -

1. You have "rmelem" to that version.
2. In the view menu in the version tree window the "All Version" option is not checked.

Hope it helped.

Enjoy,
Eli.

Ashok Kumar  Srinivasan's picture

Hi Eli,

I Have not executed the rmelem command. If we execute the rmelem command, the whole file or element will be destroyed. Here only one version is missing(i,e.. 2nd version)..

Yes the option 'All version' is checked.Still it's not listing.

Ashok Kumar  Srinivasan's picture

Hi Eli,

I Have not executed the rmelem command. If we execute the rmelem command, the whole file or element will be destroyed. Here only one version is missing(i,e.. 2nd version)..

Yes the option 'All version' is checked.Still it's not listing.

THanks,
Ashok

Elyahu Eaton's picture

Sorry I was not claer enough.

I saw it happen for me, when I rmelem to some files in some folder and then adding files to that folder again. So the version tree of the >> folder << was missing the verrsions, when the folder was without no files in it.

So to your case if you haven't done no rmelem, maybe you have removed to versions specifically ?

Also another option I just saw, you have the option to expand/colapse on each version in the version tree. it looks like a + or - sign, on the bottom of the circle of each version. Is it expand ? (- sign)

No other clue, otherwise.

Regards,
Eli.

pdhaggerty's picture

The "cleartool rmver [email protected]@/main/branch/2" command was used. You can verify this by using "cleartool -l -minor lshistory element" and this will show all the history of changes to that element. ClearCase keeps track of ALL events, including rmver and even changes to protections on an element. The history will also show who did it.

Marc Girod's picture

pdhaggerty wrote:

"The "cleartool rmver [email protected]@/main/branch/2" command was used." - Most probably indeed.

You can verify this by using 'cleartool -l -minor lshistory element' " - Not sure...

"...and this will show all the history of changes to that element. ClearCase keeps track of ALL events, including rmver and even changes to protections on an element. The history will also show who did it." - It does, but then it scrubs it.

You can customize the (vob) scrubbing by editing the file:

/var/adm/rational/clearcase/config/vob_scrubber_params

but think of what you do first.

By default, rmver[ events are only kept for one month:

event rmver -keep_all 30

Marc

Ashok Kumar  Srinivasan's picture

Hi Marc, Thank you very much for your advise. I will have quick run of those commands you have mentioned here, tomorrow once i am in the office and let you know.

Cheers

CMCrossroads is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.