Reputation: 1579
I start with P4 CL X, which contains only unshelved files. I want to create CL Y, which is identical to CL X (same description, same file edits), but has those files shelved. I'm scripting this, so it needs to be via the command line.
Problems I've run into:
Thanks in advance.
Upvotes: 1
Views: 1224
Reputation: 71562
These might require tweaking for your script but they worked well enough for me in a trivial test case:
p4 --field Change=new --field Files= change -o OLDCHANGE | p4 change -i
p4 unshelve -s OLDCHANGE -c NEWCHANGE ; p4 shelve -c NEWCHANGE
Upvotes: 2