3

I'm using ClearCase 7.1

I suspect we have some evil twins. I'm looking for the most efficient way to find them out by scanning the VOB or any other ways. Is there any script that applies it?

For the next coming evil twins we'll use a trigger that prevents it.

Thank you

Tamir Gefen
  • 1,128
  • 2
  • 18
  • 35

1 Answers1

2

Unless you benefit from the integrated evil twin detection from ClearCase 8.0, the only way remains cleartool find command:

See "About Evil Twins, "locate" section" for some examples:

you run the following command from two views and compare the output (oid and pname), you can verify whether there is an evil twin situation on a file level:

Windows syntax example:

cleartool find . -type f -exec "cleartool describe -fmt \"%On, %n\n\" \"%CLEARCASE_PN%@@\""

Unix syntax example:

cleartool find . -type f -exec 'cleartool describe -fmt "%On, %En\\n" $CLEARCASE_PN@@'
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks. Do you know how to get the output for each file separately? – Tamir Gefen Jul 28 '12 at 23:31
  • @user986086 no, this query is much more to list *all* files and make comparison based on that result. But you can try and put a '`>`' (redirect) within the exec directive if you want, and try to redirect to a `tmp` folder, using `$CLEARCASE_PN` as a filename. – VonC Jul 28 '12 at 23:44