P4Eclipse User Guide (2018.5)
Retrieving a project from Perforce
To obtain access to files in Perforce depots, you define connections to Helix Core Servers. Using the connections, you can browse the contents of the Helix 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 files that you have access to, click the View Menu button in the P4 Connections view and select Filter by Client Workspace.
When browsing a server, you can right-click files and folders and perform the following tasks:
- Get Latest Revision: retrieve the latest version from the depot into the client workspace
- Get Revision...: retrieve specified versions from the depot into the workspace
- Remove from Workspace: delete the local copy of a depot file
- Check Out: check out a file that you intend to change
- Mark for Delete: mark a file that you intend to delete
- Revert Files: discard changes you have made to a file and restore the version you last retrieved
- Import as Project: copy files and open them as a project in the workbench
To import a project:
Note
- The p4 sync command is used to import a project. sync will not fetch files in pending changelists, revert all pending changelists before you import a project.
- Importing Team Project Set is similar.
- In the P4 Connections view, right-click the project and choose Import as Project...
- When prompted, specify your client workspace root directory as the location for project files.
- 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.