[p4] How to set portions of a view to be ignored?

David Weintraub qazwart at gmail.com
Tue Jun 12 19:14:28 PDT 2007


If you don't care about certain parts of the directory tree, why even
put them in the client? Only put the directories you want in your
client. For example:

Instead of:

View:
     //depot/MAIN/foo/...    //myclient/...

Which let's say downloads 25 directories

Just do

View:
    //depot/MAIN/foo/bar/...   //myclient/bar/...
    //depot/MAIN/foo/foo/...   //myclient/foo/...
    //depot/MAIN/foo/barfoo/... //myclient/barfoo/...


Which would only download the three you're interested in. You can also
use wildcards too:

View:
   //depot/MAIN/foo*/...   //myclient/foo*/...

That will only download directories that start with foo*.

Or, you can specify in the client to ignore certain directories by
prefixing the line with a minus sign:

View:
   //depot/MAIN/foo/...  //myclient/...
   -//depot/MAIN/bar/...  //myclient/bar...

This will download all the directories except for //depot/MAIN/bar.

The other thing you can do (and I see this alot with P4V and p4win) is
to define your client as the entire depot, but to only do p4 sync in
the parts you want to actually sync.

There is nothing that says you have to sync the entire client. Simply
go to the directories you want to sync, and only sync those.

On 6/12/07, Karr, David <david.karr at wamu.net> wrote:
> If I have a big directory tree that I sync to head, is it possible to
> set certain portions of that directory tree in my client to never sync?
> I'd like to be able to sync to head at the root of the tree, but I don't
> care about certain portions of the tree, and I'd prefer not to take up
> that space on my local disk.
>
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>


-- 
--
David Weintraub
qazwart at gmail.com


More information about the perforce-user mailing list