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

This file is not in my workspace, but is present in Perforce Depot.

I tried "Get a revision" several times and checked the "Force Operation" flag. It always extracts hundreds of files, but not the one that is missing, which, by the way, is a .sln file.

Additional information that may be relevant: a) I am using P4V; b) I usually open this project for editing in Visual Studio 2010, using the option "Open from Source Control"; c) I tried to check all the files in my solution and subsequently return immutable files as an attempt to list all the files, but did not work for this missing file.

Has anyone seen something like this? Any ideas?

Thanks a lot!

+4
source share
3 answers

Get Revision with Force Operation did not work because this file was verified. After returning this file, I could get it by forcing Get Revision.

This idea was actually derived from the answer to a similar question , which I returned to.

+4
source
  • Is the latest version excluded for any reason? If you have the "Show deleted depot files" in the filter, above the workspace selector in P4V, it may appear there, but it will be deleted.
  • Is your workspace correct? Does it appear in another folder where you think?

An easy way to check, select the .sln file in the P4V repository view, and then press ctrl + shift + s, this will open the explorer window in the directory where the file is located.

+2
source

Just covering all bases: do you have Visual Studio when you try to do this? If so, the likelihood that the target folder / file is locked and therefore Perforce cannot write there.

0
source

Source: https://habr.com/ru/post/1396188/


All Articles