Accidentally "marked for delete" files in Perforce. How can I reverse that?

J.P. Armstrong picture J.P. Armstrong · Jan 10, 2013 · Viewed 12.8k times · Source

Using p4v I've unintentionally "marked for delete" several files in my local repo. How can I unmark these items. These items may have new changes and I do not want to override them.

Answer

dwikle picture dwikle · Jan 10, 2013

In the pending changelist in the pv4 gui, you should see the files listed as marked for delete.

Select those files you do not want to delete, and revert them.