[p4] Better understanding of +/- client spec syntax

Steven W. Orr steveo at syslang.net
Thu Aug 10 08:31:12 PDT 2006


A while ago I asked a clientspec question, but I want to ask a new one of 
a more general nature. I'm trying to understand the +/- usage.

Given multiple view lines in a clientspec with destination files mapped 
from multiple sources, the last line is the winner. I get that part. I 
like it and it makes sense.


MINUS SIGNS
I can use the "-" to prevent something from being selected. That's fine 
with me.
1. Is the "-" of use if I'm depending on multiple mappings? IOW, if I 
expect a file to be created and it could come from more than one place, is 
there value in deselecting it from where I don't want it even though I get 
it from the later match?

Here's a contrived example:
//depot/a/b/...        /view/a/b/...
-//depot/a/b/c         /view/a/b/c
//depot/x/y/c          /view/a/b/c

Is the deselected line of any use?

2. Is the right hand side of a "-" a dummy or does it have any value at 
all?

PLUS SIGNS
I have no idea what the value of "+" is. If I specify a plus sign to 
override something that was previously selected earlier, then it would 
have been picked off anyways.

//depot/a/b/...        /view/a/b/...
+//depot/x/y/c          /view/a/b/c

Does someone have an example of a plus usage that makes sense?

TIA

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net


More information about the perforce-user mailing list