How do I list all files revisions, changelist number & developer's ID within a directory?
10,850
My request for clarification notwithstanding, as I understand your question I think you want to use p4 filelog
:
p4 -c <client-name> filelog ... > output.txt
This will produce lines like:
//path/to/depot/file
... #15 change 384363 edit on 2011/04/06 by [email protected] (text) 'comment'
... #14 change 381364 edit on 2011/03/21 by [email protected] (text) 'comment'
... #13 change 375094 edit on 2011/02/16 by [email protected] (text) 'comment'
... #12 change 374246 edit on 2011/02/11 by [email protected] (text) 'comment'
... #11 change 374042 edit on 2011/02/11 by [email protected] (text) 'comment
... #10 change 373886 edit on 2011/02/10 by [email protected] (text) 'comment'
... #9 change 373567 edit on 2011/02/09 by [email protected] (text) 'comment'
... #8 change 373553 edit on 2011/02/09 by [email protected] (text) 'comment'
... #7 change 373350 edit on 2011/02/09 by [email protected] (text) 'comment'
... #6 change 370568 edit on 2011/01/25 by [email protected] (text) 'comment'
... #5 change 368223 edit on 2011/01/14 by [email protected] (text) 'comment'
... #4 change 365805 edit on 2010/12/21 by [email protected] (text) 'comment'
... #3 change 364494 edit on 2010/12/14 by [email protected] (text) 'comment'
... #2 change 362107 edit on 2010/12/02 by [email protected] (text) 'comment'
... #1 change 359972 add on 2010/11/23 by [email protected] (text) 'comment'
for each file. If you only need the latest change, use
`p4 -c <client-name> filelog -m 1 ... > output.txt
Author by
ssm
Updated on June 16, 2022Comments
-
ssm almost 2 years
I am trying to get a list of all revisions on all files within a directory with this information:
- The version number
- Changelist number
- Developer's id.
I tried using P4 files: p4 files -a . > output.txt, but this command has no options to give me the developer's id & changelist number.