문제

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

다른 팁

p4 opened -u USER will show all files opened for edit by the specified user.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top