Need some help :)
I am trying to write a script where given a username, I want to know all the files specs which are opened (user can see /check in / check out) for that user.
What I am looking for is something similar to
p4 groups -u <username>
which returns all the groups associated with that user. I want my script to do something similar like
myscript -u <username>
and it should return me the third level of file specs associated with them. Something like this:
//depot/file/path1/...
//depot/file/path2/...
//depot/file/path-n/...
where folder pathX will have some java or xml files under it.
Is there any perforce command or any other perforce api to do such kind of job ? Please advice.
Are you possibly looking for 'p4 protects -u username'?
http://www.perforce.com/perforce/doc.current/manuals/cmdref/protects.html#1040665