Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.