[p4] Selective "p4 sync" ?

Sheizaf, Yariv Yariv_Sheizaf at bmc.com
Thu Oct 5 02:45:39 PDT 2006


Hi Shawn,

 

Great - exactly what I looked for!

 

Regards,

 

Yariv Sheizaf

 

From: Shawn Hladky [mailto:p4shawn at gmail.com] 
Sent: Wednesday, October 04, 2006 9:26 PM
To: Sheizaf, Yariv
Cc: perforce-user at perforce.com
Subject: Re: [p4] Selective "p4 sync" ?

 

The obvious question, is can you just exclude it from your client view?
I'm guessing, you don't want to do that, so here's a way to do it.  But
this is really only useful if you are regularly executing the sync on
the same folders. 

You can use an automatic label to do this... which is a fairly new
undoc-ed feature.
Create a lable like this:

Label:    auto

Revision:  @now

View:
   //abc/xyz/...
   -//abc/xyz/kkk/... 

Then you can sync using:
p4 sync @=auto

//abc/xyz/kkk/... will be left at #have, but the rest of //abc/xyz/...
will be #head.

On 10/4/06, Sheizaf, Yariv <Yariv_Sheizaf at bmc.com> wrote:

Hi,

Is there a short way in command line interface (not by scripting) to
exclude a folder from a recursive "p4 sync" ?
For example: I want to sync //abc/xyz/..., but exclude (e.g do not sync)
//abc/xyz/kkk/... 

Regards,

Yariv Sheizaf



 



More information about the perforce-user mailing list