[p4] How do I get(sync) only those source files that have changed?

Ken Williams ken.williams at thomson.com
Tue Mar 13 15:50:11 PST 2007


If you want to create a patch, maybe it would be simpler to just use the -u
flag to diff2:

 p4 diff2 -u //product/sdk/productsdk1.0.0/... at 4000
 //product/sdk/productsdk1.0.1/... at 5000

 -Ken


On 3/13/07 4:05 PM, "Bell, Alan" <Alan.Bell at monotypeimaging.com> wrote:

> My company delivers source code and one thing we want to automate it our
> patch generation.
>  
> To create a patch we use Perforce to identify what files have changed
> between 2 changelists.  This list the files that have changed but what I
> am looking for is a way to setup a workspace or branch spec that will
> only get me those files that have changed between the 2 changelists.
>  
> I have run:
>  
> p4 diff2 -q //product/sdk/productsdk1.0.0/... at 4000
> //product/sdk/productsdk1.0.1/... at 5000


More information about the perforce-user mailing list