The server log records the username and date for login
and other Perforce server commands. Since Perforce does not log all user commands by default, you may want to change how the server logs commands. Refer to the knowledge base article "Perforce Server Trace Flags
" for more information.
The p4 changes command can be used with a date revision specifier to find all of the changes submitted by a user. Thus, to find about changes submitted by user bruno since 10 July 2012, enter the command:
p4 changes -u bruno "//...@>=2012/07/10"
Use the -s option to further filter changes which are submitted, pending or shelved. To find the current shelved changes for the same user and time period:
p4 changes -s shelved -u bruno "//...@>=2012/07/10"
Use the -m option to further limit the number of results returned. If you only wanted to see the latest change from user bruno:
p4 changes -u bruno -m1 "//...@>=2012/07/10"
To find the last access date of a workspace belonging to the bruno user, you can examine the "Access" field in their workspace specification. As a shortcut you can use the following commands:
p4 client -o bruno_workspace | grep "^Access:"
p4 client -o bruno_workspace | findstr /b "Access:"
To find the files synchronized and opened by user bruno, use the p4 have and p4 opened commands:
p4 -c bruno_workspace -H bruno_hostname have
p4 opened -u bruno