Defining a client view

The client view defines which portions of the depot are visible to your client specification and where local copies of depot files are stored. There are two ways to define a client view using P4V: textually and graphically. The following sections describe each method.

Text client view specification

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 client workspace, and has the form:

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

A complete client view might look like the following:

//depot/...         //eds_elm/depot/...
//user_depot/...    //eds_elm/user_depot/...
//projects/...      //eds_elm/projects/...
 

For detailed information about specifying client views, refer to the Perforce User's Guide.

Graphical client view specification

To define a client view graphically:
  1. On the Client form, click the View tab. The View tab is displayed.
  2. To change the client root, click Pick Dir, browse to the folder you want to use as the client root folder, and click OK.
  3. To change the files and folders in the client view, browse the tree displayed in the center pane. Select the file or folder you want to change, double-click it, and specify the desired settings:

Click Save to save your changes. To see the text version of the client view, which is specified in Perforce syntaxt, display the Client form's View field. For details about the syntax for specifying client views, refer to the Perforce User's Guide.