user3437212
user3437212

Reputation: 675

How to find files created by a user in all clearcase branches?

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

Upvotes: 1

Views: 828

Answers (1)

VonC
VonC

Reputation: 1324537

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.

Upvotes: 1

Related Questions