[p4] Question on p4 sync

Stephen Vance steve at vance.com
Fri Dec 21 18:58:24 PST 2001


Depends on the shell and whether you have jobs running in the 
background.  Some shells will expand %1 to be the PID of the first 
background job.

At 03:03 PM 12/21/2001 -0700, Rick Macdonald wrote:

>"%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...
>
>_______________________________________________
>perforce-user mailing list  -  perforce-user at perforce.com
>http://maillist.perforce.com/mailman/listinfo/perforce-user

Stephen Vance
mailto:steve at vance.com
http://www.vance.com/




More information about the perforce-user mailing list