Is there any way I can get the following output from perforce for files under a certain directory? I’d like: file name, last modified by username, last modified date, created by username, creation date.
So far I’ve only been able to get a list of changelists and their descriptions, but then I can’t pipe that into another P4 command to do anything else with it. I’m in Windows by the way.
You can either go with
p4 fstatand a subsequentp4 describeor you could parse the output ofp4 filelog:user@clientwill be the username and the name of the client workspace. Revision #1 is obviously the creation date, and the revision on top of the list (#9 here) is the last modified. So basically you have to parse the first line that begins with ‘…’ for the last modified stuff and the last line that begins with ‘…’ for the creation information.