Reputation: 21
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
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:
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