I’ve wasted some time today trying to find a list of all label types for a given package and then finding the files modified for this label type. First I did this:
Z:myvob>ct lstype -kind lbtype -short | grep PROD_SERVER_VER1_PKG PROD_SERVER_VER1_PKG1_P7 PROD_SERVER_VER1_PKG2_P1 PROD_SERVER_VER1_PKG3_P1 PROD_SERVER_VER1_PKG4_P2 PROD_SERVER_VER1_PKG6_P1 PROD_SERVER_VER1_PKG7_P2 PROD_SERVER_VER1_PKG7_P5 PROD_SERVER_VER1_PKG8_P2
And thought it was strange because I was pretty sure there was a version labeled PROD_SERVER_VER1_PKG7_P4 (as there was a P2 and a P5). So I checked whether there were files with this label:
Z:myvob>ct find . -version "lbtype(PROD_SERVER_VER1_PKG7_P4)" -print .sourcesdir1@@main17 .sourcesdir1build.properties@@mainver17 .sourcesdir1srcdir2serverejbLockBean.java@@mainver14
So there are files with this label… So why don’t I see this label type… I first thought this might be some kind of replication problem but it all made no sense. In the end, I finally came to thinking it might be because we’ve never delivered this P4. So it could have been set obsole:
Z:myvob>ct lstype -kind lbtype -short -obsolete | grep PROD_SERVER_VER1_PKG PROD_SERVER_VER1_PKG1_P1 (obsolete) PROD_SERVER_VER1_PKG1_P2 (obsolete) PROD_SERVER_VER1_PKG1_P3 (obsolete) PROD_SERVER_VER1_PKG1_P4 (obsolete) PROD_SERVER_VER1_PKG1_P5 (obsolete) PROD_SERVER_VER1_PKG1_P6 (obsolete) PROD_SERVER_VER1_PKG1_P7 PROD_SERVER_VER1_PKG1_P8 (obsolete) PROD_SERVER_VER1_PKG2_P1 PROD_SERVER_VER1_PKG2_P2 (obsolete) PROD_SERVER_VER1_PKG2_P3 (obsolete) PROD_SERVER_VER1_PKG3_P1 PROD_SERVER_VER1_PKG4_P1 (obsolete) PROD_SERVER_VER1_PKG4_P2 PROD_SERVER_VER1_PKG5_P1 (obsolete) PROD_SERVER_VER1_PKG6_P1 PROD_SERVER_VER1_PKG6_P2 (obsolete) PROD_SERVER_VER1_PKG7_P1 (obsolete) PROD_SERVER_VER1_PKG7_P2 PROD_SERVER_VER1_PKG7_P3 (obsolete) PROD_SERVER_VER1_PKG7_P4 (obsolete) PROD_SERVER_VER1_PKG7_P5 PROD_SERVER_VER1_PKG8_P1 (obsolete) PROD_SERVER_VER1_PKG8_P2
That was it ! The label type didn’t disappear but was set obsolete ! A pity it took me half an hour to figure it out… But at least I waiting for sending a stupid email asking whether I should call the police to search for the missing label types…
thanks for this I have had a similiar problem and surfed the net and found your explanation which i have now used successfuly!