[p4] Question on "p4 sync"

Rich Ireland rireland at enterasys.com
Fri Dec 21 12:43:34 PST 2001

Rick Macdonald wrote:

> On Fri, 21 Dec 2001, Andy K Nguyen wrote:
>>Can we use wild card in "p4 sync"?
>>For example:
>>   /projectA/moduleA/English/...
>>   /projectA/moduleA/French/...
>>   /projectA/moduleA/German/...
>>   /projectA/moduleB/English/...
>>   /projectA/moduleB/French/...
>>   /projectA/moduleB/German/...
>>    . . .
>>I would like to sync with all files that are associated with English.  I
>>can always write a small shell script to remove
>>all the German and French dirs after the sync (p4 sync
>>//depot/projectA/...), but just wondering that whether I can do it at
>>the sync time.
> Maybe I don't understand the problem, but...
> "..." _is_ one of the ways you specify wildcards for sync. Just like
> //depot/projectA/... gives you all the language directories, the following
> only gives you the English directory:
> p4 sync /projectA/moduleA/English/...

I think you are looking for this:

p4 sync //depot/projectA/.../English/...

Rich Ireland
Firmware Engineer
Enterasys Networks
mailto:rireland at enterasys.com

More information about the perforce-user mailing list