Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Latest Revision doesn't work

Tags:

perforce

I've just set up Perforce on my home computer so that I can work at home without having to lug my work computer around.

I used the same workspace as the one I use at work, but when I try to get the latest revision, I don't get all of the files. Some subfolders are missing despite being mapped like this: //depot/some_folder/... //My_Workspace/some_folder/... some_folder has a subfolder some_subfolder but my workspace didn't pull that folder in for some reason... None of the other lines in "View" have anything to do with some_folder so I don't think they are the issue.

Anyone have any ideas?

like image 586
user5243421 Avatar asked Nov 21 '11 05:11

user5243421


2 Answers

In the GUI, instead of doing the get latest, try doing the context menu for "Get Revision...", and in that window that comes up, check the "Force" checkbox and give that a try.

like image 167
Gabe Weiss Avatar answered Oct 04 '22 23:10

Gabe Weiss


The Perforce server tracks what files you pull in your workspace. This is done for speed, so when you do a "Get latest revision" it will only pull the files that need to be updated. Since you are using the same workspace, Perforce thinks you have them in sync already. You have 2 options.

  1. Use p4 sync -f //files/... (If your using p4v, right click->Get revision, then in the options click the Force checkbox) This will tell perforce to sync everything to the latest revision. But then you will have to use this option at work and home, since Perforce will now think you have everything in sync, when really only the files at home are in sync.

  2. Use a different workspace for home and work.

like image 35
aflat Avatar answered Oct 04 '22 22:10

aflat