Note: If you already work with Perforce, for example, via 4V (visual client), or via P4VS (Perforce Plug-in for Visual Studio), no additional installation is required.
Click the Options button on the Code Review Board.
Go to the Projects tab.
Select a project from the list.
Click Add New Repository.
Select Perforce as a repository type.
Specify a Host — your Perforce server URL, for example: PerforceServer:8080
Specify the Perforce server settings
Remote directory — Perforce server-side directory. For example: //depot/MyProject
Working directory — where you check out the source code. For example: c:\Users\UserName\Perforce\MyProject
Enter a Description.
Click Credentials, and enter the login information to connect to Perforce, then click OK.
You will be notified when a connection is established (or if the connection failed).
Go to the Version Control tab.
Provide path to the p4.exe file.
Note: Working directory path may vary for different PC’s; If you change this settings, they will be stored only for current Windows user.
Note: If you enter a new working directory or change the existing one, you can also set it as a default directory or reset it to the default value.