In perforce, I have several shelved changelists. I want to move the files from all of these shelved changelists to a new changelist.
I can do this with p4 reopen -c [new changelist no.] [file 1, file 2, etc]
, but it's laborious to copy and paste the names of each opened file from the previous changelists.
Is there a faster / better way to do this?
If you're looking to move the shelved files, you can use the unshelve command to do this. You could run p4 unshelve -s <shelved changelist> -c <target changelist>
for each shelved changelist.
If the files are already open in the shelved changelist, I'm pretty sure you'd need to revert them first.