Retrieve files from the depot

You can retrieve the most recent revision or any previous revision of a file from the depot to your workspace. In the tree pane, open the folder containing the file you want to retrieve. The icons indicate the status of the files; see P4V icons for details.

Expanding a file revision that resulted from an integration shows the revisions for the file in the source codeline. Getting a revision from the source codeline does not affect the original file you are browsing.

To get the latest revision, right-click the file and choose Get Latest Revision.

To get a previous revision, right-click the file and choose File History. The History tab opens. This tab displays the revision history of the file or folder selected in the tree pane. In the History tab, right-click the desired revision and choose Get this Revision. Alternately, right-click the file and choose Get Revision​. In the Get Revision dialog, specify the desired revision and click Get Revision.

To get the revisions or the previous revisions for files in a changelist, open the Submitted tab. This tab displays a list of submitted changelists, based on the filter criteria selected at the top of the tab. Its content is not related to any files or folders selected in the tree pane. In the Submitted tab, right-click the desired changelist and choose Get Revisions For Files in Changelist <xxx> or Get Previous Revisions for Files in Changelist <xxx>.

To use a changelist number, label, workspace, or date to specify a revision, in the Get Revision dialog, click Specify revision using, choose the desired method from the drop-down list, and specify the desired changelist number, label, workspace, or date. Then click Get Revision.

Tip

To get a revision into your workspace even if the workspace already has the file, in the Get Revision dialog, select Force Operation. This option does not affect open files.