[p4] Question on p4 sync

Rick Macdonald rickm at vsl.com
Fri Dec 21 14:03:23 PST 2001


"%1" can be used in place of "*" to avoid quoting problems.

On Fri, 21 Dec 2001 steve at vance.com wrote:

> Andy --
> 
> You can use all wildcards in 'p4 sync'.  As Inez pointed 
> out, you can embed the '...' wildcard.  You can also use 
> the '*' wildcard, but you need to be careful that it isn't 
> expanded by your shell before getting to Perforce, 
> depending on your platform and shell.
> 
> Examples:
> p4 sync //project*/.../English/...
> p4 sync //...English/...
> p4 sync //projectA/*/English/...
> 
> Under some shells, largely Unix, you may need to escape 
> the '*' or enclose the file spec in quotes.
> 
> Steve
> 
> 
> > 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.
> > 
> > Thanks,
> > -Andy
> > 
> 
> 
> ---------------------------------------------
> This message was sent using WebMail by CyberGate.
> http://www.gate.net/webmail
> 
> 
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
> 

...RickM...




More information about the perforce-user mailing list