views:

58

answers:

3

In the Perforce realm, the P4Win GUI is now "legacy" and the new P4V is supposed to fill in the void (and it does, most of the time).

There was one very useful (albeit rather hidden) option in P4Win that allowed adding a depot path to the client specification in a few clicks.

Is there a similar option available in P4V? ... because I can't find it.

(I know I can do it manually.)

Here is the P4Win feature, in all its glory:

P4Win showing 'Add files to client' option

A: 

I don't think that there is, you need to open the Workspace view and make your changes there.

ninesided
A: 

Edit your workspace and change the view to include the relevant directory. Although I use P4V everyday and 'Add to client view' seems to ring a bell....

rmx
That's what I was trying to avoid. I'm lazy :-)
Cristi Diaconescu
+2  A: 

This is typical for the P4 GUI (old and new) - it can do lots of things, if only you knew where to look (hint: usually not where you'd expect to find it).

There IS an option in P4V similar to the old 'Add Files to client view' from P4Win, only a lot more powerful! (it's a bit hidden and IMO not as streamlined as the original)

You can't find it in the depot view, where you probably ARE when you need it. Instead, go to Workspaces view, right-click the workspace definition and 'Edit' it (or dbl-click it then click 'Edit').

Notice the tabs on top of the 'Workspace editor' window that just opened. Select the 'View' tab. There is a lot going on here, including (apparently) information on the new 'Offline' mode.

To get to the point: in this window, find the piece of depot you need and right-click it.

Nirvana! There are no less than 6 menu options (!) that allow you to specify how and what to add OR remove to/from the workspace definition.

alt text

There's even an 'advanced' mode that looks a bit scary :-&

alt text

Cristi Diaconescu
Why did I never notice this tab??! Good answer!
rmx
@rmx, Don't feel bad; I didn't notice the tab either. I even went to the trouble to email a Feature Request to Perforce asking for a file tree browser to include/exclude directories in the depot path, to which they responded with this dialog. I requested that the tab be more prominent.
Chance