2

I have some files and directories out of which few are already checked out and few are not. To check out those uncheck out files I am running recursive checkout:

ct co -nc  ./*

Which gives below message for already checkout files or directory:

cleartool: Error: Element "abc/xyz" is already checked out to view "pqr".

Is there any way I can avoid performing ct co on already checked out files or directories?

peterh
  • 11,875
  • 18
  • 85
  • 108
XYZ_Linux
  • 3,247
  • 5
  • 31
  • 34

1 Answers1

1

First, you can check if you have the same issue when applying my old method "How do I perform a recursive checkout using ClearCase?".

 cleartool find somedir -type f -exec "cleartool checkout -c \"Reason for massive checkout\" \"%CLEARCASE_PN%\""

(which is mirrored by the IBM technote swg21122520)

The other option is to:

Then you can replace the -exec directive above in order, for each \"%CLEARCASE_PN%\" found, to:

  • check if it is listed in the checked out files found in the previous point
  • if it is not, proceed with the checkout.

In short: a two-step process.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250