Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove files from changelist in perforce without losing modifications?

Tags:

perforce

p4v

I accidentally created a new changelist with files from WORKSPACE not from DEPOT and now under the changelist 4500 modified files are displayed (all dlls pdbs etc. alongside with the files i actually edited)

I'm using the p4v GUI. Is there anyway to undo this, without having to backup all the files then revert them using perforce, put them back and create a new changelist using DEPOT.

Thanks a lot, i hope there's a workaround :).

like image 728
Dan Dinu Avatar asked Dec 16 '11 15:12

Dan Dinu


1 Answers

There's multiple ways.

Select View->Pending Changelists from the menu bar to view your pending changelist tab. You should see all of your checked out files grouped by changelist. Go to your desired changelist and expand into files.

You can Ctrl+left-click multiple files, then right-click on one of them and select Move to another changelist....

You can also choose to Submit... the files, and when the dialog box appears, their will be checkboxes next to each file. Uncheck the files you do not want to submit.

As another answerer mentioned, if you accidentally added files to Perforce that you did not intend to, you can indeed revert those files without actually deleting them (the only time a file will actually go away is when you do a p4 delete or p4 move.)

like image 50
Chance Avatar answered Oct 02 '22 04:10

Chance