optical
optical

Reputation: 227

Perforce not downloading file even with forced Get Revision

After too much time of searching what could be the cause of a really strange but simple-looking problem and not finding anything on the internets, I came here to dip in the knowledge of the people of StackOverflow. Here is my situation:

In P4V, I right-click on a file > Get Revision... > Get latest revision selected, with Force Operation (replace file even if you already have the revision specified) checked.

Screenshot: Getting the latest revision with the "Force operation" option

But then, in the console panel: file(s) up-to-date. no files updated

Screenshot: File is not updated

What is going on? What is the Force Operation option for, if it doesn't force the operation?

Upvotes: 1

Views: 1049

Answers (1)

Samwise
Samwise

Reputation: 71424

The red check mark indicates that the file is open for edit (or “checked out” in P4V’s parlance), which protects it from being updated by a sync operation (that’s “get” to P4V). The “force” sync option will overwrite a file that’s manually been made writable, or a file whose contents have accidentally gotten out of sync with the depot through some other misadventure, but it will not overwrite a file that has been explicitly opened for edit, since an opened file is assumed to have local changes that have not been submitted.

Right-click the file and “Revert”. That will explicitly discard your local changes and return the local file to its state as of the last time you synced it from the depot.

Upvotes: 2

Related Questions