user6341332
user6341332

Reputation: 21

How to get a simple report out of a ClearCase project to show the creation date of all the elements

I am looking to find a way to generate a report that can show the creation date of each element in a ClearCase project. Basically, I am trying to get a sense of the old legacy elements in our project. I am not able to achieve it using find, lshistory or reportbuilder, so looking for some help from the community to see if someone has done anything similar before or has any pointers to share.

Thanks in advance. NP

Upvotes: 1

Views: 142

Answers (1)

VonC
VonC

Reputation: 1324407

cleartool find should be a valid option though.
Combined with fmt_ccase

cleartool find -nvis -all -exec "cleartool descr -fmt \"%Xn %d\n\" \"%CLEARCASE_PN%\"" | grep "\\0"

On Unix:

cleartool find -nvis -all -exec 'cleartool descr -fmt "%Xn %d\n" "$CLEARCASE_PN"' | grep /0

What you are looking at version 0, the placeholder version marking the creation:

  • either of a new branch for a file
  • the file element itself

For a given file, the sorted extended path would be the one where the element itself was created.

The OP proposes in the comments:

cleartool find -all \
  -exec "cleartool descr -fmt \"%Nd %Xn : %d\n\" \"%CLEARCASE_PN%\"" | \
grep \\0 | sort 

Upvotes: 0

Related Questions