Retrieving a Project from Perforce

To obtain access to files in Perforce depots, you connect to servers. After you connect, you can copy a project from the depot to your computer, by retrieving the files. Note that retrieving a project does not check it out, but simply copies the files to your workspace. By default, Perforce marks the files read-only. If you subsequently open the files for edit, Perforce enables write permission.

To connect to a server:

1. To display the Perforce perspective, choose Window>Open Perspective>Perforce.

2. In the P4 Depots view, click or right-click and choose New Connection... The Server Connection dialog is displayed.

3. Enter the port, user, and workspace settings that you want to use. Note that the workspace must already be defined.

4. Click OK. The server tree is displayed, and you can browse it to locate files of interest and to retrieve project files.

After connecting to a server, you can right-click files and folders and perform the following tasks:

File decorations indicate status as follows:

Marked for add
Marked for delete
Checked out by you
Checked out by another user
Locked
Version in workspace is not latest version
Workspace version is up to date

Needs resolve
(conflicting changes have been made)

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 work on a project:

  1. In the P4 Depots 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 retrieve and open a project from the depot: in the P4 Depots view, right-click the folder that contains the project and choose "Import as Project..." The project files are retrieved and the project is opened.

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.


Copyright Perforce Software 2003. All Rights Reserved.