[p4] Tool to generate patch files from Perforce

Willats, Ian Ian.Willats at windriver.com
Tue Mar 1 03:41:23 PST 2005


Is anyone aware of a tool or script that will allow UNIX patch files to
be generated from Perforce?  The main use case would be to choose a
directory in the depot and specify two revisions (changelist numbers,
labels, etc), at which point the tool would generate a patch file
describing the differences.  The output should be in a form that can be
used as input to the patch(1) command so that when applied to the
directory tree at the first revision, it would be updated to match the
second revision.

I know of p4 diff2 -du, which is close but has a couple of deficiencies
for this purpose.  Although the deficiencies are work-aroundable, I
would like to avoid re-inventing the wheel if possible!

Many thanks,


Ian Willats                         e-mail: ian.willats at windriver.com
Project Manager                     tel:    +44 (0)1564 711669
                                    fax:    +44 (0)1564 711302
Wind River UK Ltd
Central Boulevard, Blythe Valley Park, Solihull, B90 8AG, England

More information about the perforce-user mailing list