I am trying to get used to Perforce after using SVN where I was mostly using Commit and Get Latest.
But in perforce I am kind of confused.
What is the difference between terms Get Latest and Check-out in PerForce terminology?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From “Perforce Basic Concepts“:
p4 sync) is about transferring files from the depot to your workspace.p4 edit) is about getting the latest version from the depot for editing.When files are checked out for edit, their permissions are set to read-write. When files are not checked out, Perforce sets them to read-only.
As mentioned in “Perforce not syncing files correctly“, a refresh (
p4 sync) will update only files that are not opened (checked out) even when “Force Operation” is enabled. (p4 sync -f).So the true difference is that a “check out” marks a file as being modified, and protect it from any refresh (any “get latest” operation).
Mark comments (and amend the “difference” I just mentioned above):