Defining a workspace view

The workspace view determines which portions of the depot are visible in your Workspace Tree and where local copies of depot files are stored in your workspace.

To define your workspace view, select View> Workspaces. Context-click the workspace and select Edit Workspace. The Workspace form opens in the Details tab.

There are two ways to define a workspace view using P4V: textually and graphically. The following sections describe each method.

Textual workspace view specification

To define your workspace view textually, click the Form tab on the Workspace form and use the View field to type your workspace view specification using the following information:

Views consist of multiple lines, or mappings, and each mapping has two parts. The left-hand side specifies one or more files within the depot, and has the form:

The right-hand side of each mapping describes one or more files within the workspace, and has the form:

The left-hand side of a workspace view mapping is called the depot side, and the right-hand side is the workspace side.

A complete workspace view might look like the following:

//depot/...         //bruno/depot/...
//user_depot/...    //bruno/user_depot/...
//projects/...      //bruno/projects/...

Graphical workspace view specification

To define a workspace view graphically:
  1. On the Workspace form, click the View tab.
  2. To change the Workspace root, click Browse, browse to the folder you want to use as the workspace root folder, and click OK.
  3. To change the files and folders in the workspace view, browse the tree displayed in the center pane. Context-click the file or folder you want to change and specify the desired settings:
  4. Click Save to save your changes.

To see the text version of the workspace view, which is specified in Perforce syntax, display the Workspace form's View field.