1

I have to find files created by a particular user. But I need to query for all branches. How can i acheive this. I tried the below, it did not work.

cleartool find . -type f -ver "created_by(user)" -branch brtype(*) -print

user3437212
  • 637
  • 1
  • 10
  • 20

1 Answers1

1

Be aware that "files created by a user" should mean "element", not version.

Looking for versions would give you any file a user has contributed to with a checkout/check-in, even though said user never "created" the file in the first place.

Creating a file should means adding an element to source control (and creating the version 0 of the branch /main, placeholder for referencing that file, that new element)

Looking in all branches (actually, the all vob) is cleartool find -all

See "Additional examples of the cleartool find command"

For instance:

cleartool find -all -element "{created_by(user)}" 

Would list all elements (file or directory) added to source control by a user.

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