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 Solution Explorer, open the folder containing the file you want to retrieve. The icons indicate the status of the files; see Get started with P4 for Visual Studio for details.

To get the latest revision:

  1. Right-click the file or folder in the Solution Explorer.
  2. Select Revisions > Get Latest Revision.

To get a previous revision:

  1. Right-click the file in the Solution Explorer and select Revisions > Get Revision.
  2. In the Get Revision dialog, specify the revision you want:

    • Under Get or replace the following files/folders, you can select specific files or folders to retrieve.
    • To to specify a revision by changelist number, label, workspace, or date, choose the method from the Specify revision using: drop-down list and specify the value in the edit field.
    • Select Force Operation to retrieve the selected revision into your workspace even if the workspace already has the file. This option does not affect open files.
    • Select Only get revisions for files listed in changelists to retrieve only those files that are included in changelists.
    • If you are specifying a revision by label, you can ensure that your workspace contains only the labeled file revisions by selecting Remove files from workspace if they are not in label.
  3. Click Get Revision to retrieve the files to your workspace.