Get the latest version does not work

I just configured Perforce on my home computer so that I can work at home without getting the computer to work.

I used the same workspace as the one I use at work, but when I try to get the latest version, I don’t get all the files. Some subfolders are missing, despite the fact that they are displayed as follows: //depot/some_folder/... //My_Workspace/some_folder/... some_folder has a subfolder some_subfolder , but for some reason my workspace did not pull out this folder ... None of the other lines in the "view" has anything to do with some_folder , so I don't think this is a problem.

Does anyone have any idea?

+8
perforce
source share
4 answers

The Perforce server keeps track of which files you upload to your workspace. This is done for speed, so when you run Get the Latest Version, it will only extract the files that need to be updated. Because you are using the same workspace, Perforce believes that you are already in sync. You have 2 options.

  • Use p4 sync -f // files / ... (If you use p4v, right-click-> Get Revision, then in the options click "Strength"). This will mean that forcibly synchronize everything until the last revision. But then you have to use this option at work and at home, as Perforce will now think that you have everything in sync, when in fact only files at home are synchronized.

  • Use a different workspace for home and work.

+15
source share

Create another workspace to use on your home computer. Do not try to use the same workspace on two different computers unless they point to the same underlying file system.

+2
source share

In my case, I have to get the latter in a different folder. I renamed the folder from the original workspace, but it did not work if I get the latter. I created another workspace and it worked.

0
source share

In the graphical interface, instead of doing the latter, try making the context menu for "Get revision ...", and in this window that appears, check the "Strength" box and try.

0
source share

All Articles