[p4] Question on "p4 sync"

Rick Macdonald rickm at vsl.com
Fri Dec 21 12:34:23 PST 2001


On Fri, 21 Dec 2001, Andy K Nguyen wrote:

> Hi,
> 
> 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/...

...RickM...




More information about the perforce-user mailing list