Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perforce: how to get missing file from Depot to Workspace?

Tags:

perforce

p4v

A given file is missing from my Workspace, but present at the Perforce Depot.

I tried several times to "Get Revision" and checked on the "Force Operation" flag. It always retrieve hundreds of files but not this one missing, which, by the way, is an .sln file.

Extra details that may be relevant: a) I use P4V; b) I usually open this project for editing in Visual Studio 2010 using the option "Open from Source Control"; c) I tried checking out all files in my solution and reverting unchanged files afterwards as an attempt to bring all files, but didn't work for this missing file of mine.

Does anyone have seen something similar? Any ideas?

Thanks a lot!

like image 528
Flávio Ivan Avatar asked Feb 13 '12 12:02

Flávio Ivan


People also ask

Does p4 sync delete files?

p4 sync will only delete a file from the workspace if: the head revision of the depot file is deleted (check p4 files FILE ) you are currently synced to a different (not deleted) revision of the file (check p4 have FILE )

What does clean do in perforce?

The p4 clean command takes the following actions when finding inconsistencies between files in a user's workspace and corresponding depot files: Files present in the workspace, but missing from the depot are deleted from the workspace.

What does get revision do in perforce?

In the Get Revision dialog, specify the desired revision and click Get Revision. To get the revisions or the previous revisions for files in a changelist, open the Submitted tab. This tab displays a list of submitted changelists, based on the filter criteria selected at the top of the tab.

How do I search for a file in P4V?

Go to Search > Find File. The Find File tab opens in the right pane. On the Find File tab in the right pane, under Search in, enter the directory path you want to search. You can drag and drop the file path from the Depot or Workspace Tree in the Tree pane.


1 Answers

The "Get Revision" with "Force Operation" was not working because the file in question was checked out. After reverting this file, I could get it by forcing the Get Revision.

This idea actually came from an answer to a similar question to which I came back to.

like image 58
Flávio Ivan Avatar answered Sep 20 '22 02:09

Flávio Ivan