Reputation: 335
I would like to get a dump of all changelists plus the associated files which were part of those changelists.
p4 changes -t -i -l
gives me a list of the changelists, but the files are not shown.
Upvotes: 1
Views: 196
Reputation: 71574
If you don't particularly care how the output is sorted/formatted, this is as simple as:
p4 files -a //...
This will give you each revision and its associated changelist, so all the data for each changelist will be there -- if you're already going to be parsing all this data into some other key/value store, that's the simplest approach since all the data will be in a uniform format.
If you want Perforce to do more of the work in collating the data for you by changelist, then I'd do something more like:
p4 -Ztag -F @=%change% changes | p4 -x - -F "%change%: %depotFile%%depotRev%" files -a
If you want descriptions and diffs you could use describe
instead of files
:
p4 -Ztag -F %change% changes | p4 -x - describe
Upvotes: 3