p4sync

GerdKnopsgerti at camelot.BITart.com GerdKnopsgerti at camelot.BITart.com
Sat Oct 4 03:56:18 PDT 1997


Hi,

I decided to make the task of keeping a directory in sync with the depot a  
little more convenient. The script below recursively compares a directory with  
the contents of the depot, and emits the required 'p4 add' and 'p4 delete'  
statements. It also lets you have '.p4ignore' files which define patterns of  
filenames to be ignored.

The script is available at

	ftp://ftp.bitart.com/pub/BITart/perforce/p4sync

There is also another script in the perforce directory: diffMunger. This  
script helps you generate a patch that contains the differences between two  
versions of a project in the depot. It is somewhat rough around the edges, but  
it might get you started.

Comments or improvements to either script are welcome.

Enjoy!

Gerd





More information about the perforce-user mailing list