Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine deleted files in perforce

Tags:

perforce

I had directory structure A/B, A/C, A/D and then had few files in each directory B, C, D.

Lets say, in B - B1.txt, B2.txt, B3.txt IF someone delete B2.txt from perforce and i dont know when, is there any way i can find out what are the files deleted from the directory and at what time?

like image 832
RohitJain Avatar asked May 31 '11 05:05

RohitJain


People also ask

Where do files go when you hit delete?

When you first delete a file, it is moved to the computer's Recycle Bin, Trash, or something similar depending on your operating system. When something is sent to the Recycle Bin or Trash, the icon changes to indicate it contains files and if needed lets you recover a deleted file.

What is mark for delete in perforce?

On the P4VS dialog, select the default pending changelist or a new changelist. Click Yes. P4VS marks the file for delete and it is placed in a changelist.


2 Answers

In P4V you can turn on the option to "Show Deleted Depot Files".

enter image description here

Deleted depot files will then display, with their file icons having an "x" on them, and you can easily examine their history.

enter image description here

like image 150
raven Avatar answered Nov 11 '22 10:11

raven


From the command line, you can type p4 filelog -t //your_depot/path/to/folder/... and that will give you the revision history of all the files in "folder" (including subdirectories).

You can search the output of that command for "delete" and that will tell you the revision number for the file when it got deleted, and it should also have the date/time info in there.

like image 26
Mike O'Connor Avatar answered Nov 11 '22 12:11

Mike O'Connor