Reputation: 127
I want to get a list of changes for a perforce branch like:
p4 -t -L //mydepot/library1/v1.0/...@2017/03/27,@now
That is, a list of all changes this week with description. But I also want a list of the files, as in files in one changelist:
p4 files @=123456
This seems like it needs script, but anyone know of a perforce method? If the returned changeset collection is large, will the server be adversely impacted by querying every changeset afterwards?
Upvotes: 0
Views: 87
Reputation: 71454
p4 -Ztag -F "describe -s %change%" changes //mydepot/library1/v1.0/...@2017/03/27,@now | p4 -x - run
The answer to the performance question depends on how many is "large" (how many changes/files are we talking about) and your server hardware.
My guess is that with a "normal" server and "normal" usage you'll be fine but if we're talking about a few billion changes with a few billion files each, yeah, those commands will take a while. If we're more in the hundreds or thousands range, meh.
Upvotes: 1
Reputation: 16359
You asked a bunch of questions in one question, so here's a bunch of answers in one answer.
p4 changes
command to get a list of changes of interest.p4 describe -s
or p4 files @=
to get a list of the files in each change.Upvotes: 0