Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When creating a new client workspace in Perforce, the default view contains the entire depot (or, more correctly, all of the depots defined on the server). This is never needed, yet new users often leave it at that, pulling the entire depot contents to their disk.

How can I change the default view that Perforce offers?

share|improve this question
up vote 2 down vote accepted

This depends on whether you're the perforce administrator or not.

If you are, you can use triggers.

Example: The default Perforce client workspace view maps the entire depot //depot/... to the user's client workspace. To prevent novice users from attempting to sync the entire depot, this Perl script changes a default workspace view of //depot/... in the p4 client form to map only the current release codeline of //depot/releases/main/...

If you're not the administrator, then you will have to use a template file.

p4 client -t <template_file> <client_name>.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .