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 syncing the files. Note that syncing 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 Depot View pane, right-click and choose New Server... 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 sync 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:

(red "plus" sign) open for add
(red "x") open for delete
open for edit by you
open for edit by another workspace
locked
version in workspace is not latest version
workspace version is up to date

needs resolve
(conflicting changes have been made)

To sync a project's files: in the Navigator pane, right-click the project and choose Team>Sync to Head. The most recent file revisions are copied to your workspace.

To work on a project:

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

To sync a file to a specific revision: in the Navigator pane, right-click the file and choose Team > Sync File to Revision, Label, Changelist or Date. 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.