Retrieving a Project from Perforce

To obtain access to files in Perforce depots, you define connections to servers. Using the connections, you can browse the contents of Perforce servers in the P4 Connections view. By default, all files in the depot are displayed, but typically you have access only to a subset of the files (depending on how your Perforce client view is defined). To display only the file to which you have access, click down arrow and choose Filter by Client Workspace from P4 Connections view menu.

When browsing a server, you can right-click files and folders and perform the following tasks:

To import a project:

  1. In the P4 Connections view, right-click the project and choose Import as Project...
  2. When prompted, specify your client workspace root directory as the location for project files.
  3. Open the project for edit.

To update all the imported projects from the connection: in the P4 Connections view, right-click the connection and choose Sync Imported Projects. All the imported projects from the connection are updated with the most recent file revisions from the server.

To retrieve a project's files from the depot: in the Navigator view, right-click the project and choose Team > Get Latest Revision. The most recent file revisions are copied to your workspace.

To retrieve a specific revision of a file: in the Navigator view, right-click the file and choose Team > Get Revision.... Specify dates as: yyyy/mm/dd:hh:mm:ss or yyyy/mm/dd hh:mm:ss (with a space or colon between the date and the time). To specify the current date and time, type now.

Note:

  1. The p4 sync command is used to import a project. For those files to import which are in the pending change list, e.g., checked out, opened for edit, the sync will not fetch them. In such case, you should revert pending changes first before importing a project.
  2. Importing Team Project Set is similar.


Copyright Perforce Software 2003-2017. All Rights Reserved.