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

Bell, Alan Alan.Bell at monotypeimaging.com
Tue Mar 13 14:05:24 PST 2007


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
 
which gives me:
 
... status right only
... depotFile2
//product/sdk/productsdk1.0.0/myproduct/prod/docs/myproduct_releasenotes
_1.0.1.pdf
... rev2 1
... type2 binary 
 
... status content
... depotFile
//product/sdk/productsdk1.0.0/myproduct/prod/docs/Reference.pdf
... rev 4
... type binary
... depotFile2
//product/sdk/productsdk1.0.01/myproduct/prod/docs/Reference.pdf
... rev2 1
... type2 binary
 
I know I can parse this and get only these changed files thru some
python scripting.
 
But I was wondering if there was an easier way that I ma y have
overlooked.
 
Thanks.
 
-arb
 

Alan R. Bell

 


More information about the perforce-user mailing list