[p4] diff between two revisions

Dave Lewis dlewis78731 at gmail.com
Tue Jan 30 09:46:43 PST 2007


just a little syntax

makefile#1499 is makefile revision 1499,
but makefile at 1499 is the makefile at changelevel 1499

so, you either need to find out what the revision of makefile is
at 1499, or perhaps p4 diff2 Makefile at 1499 etc. will do it

p4 fstat Makefile at 1499 will give the revision, I believe., or
certainly p4 filelog Makefile will list all revisions and changenumbers
associated with it.

On 1/30/07, Jeff Sparks <jeffrsparks at yahoo.com> wrote:
> Sorry, I'm sure this is obvious but I haven't found an answer after almost an hour of googling.  I just want the diff between two revisions, the p4 equivalent of
>
>     svn diff -r1499:1186 Makefile
>
> I've tried things like
>
> terra% p4 changes Makefile
> Change 1499 on 2007/01/16 by jeff at terra 'blah'
> Change 1186 on 2007/01/11 by jeff at terra 'blah blah'
> Change 8 on 2006/11/30 by peter at firma 'initial'
> terra% p4 diff Makefile#1499 Makefile#1186
> Makefile#1499 - file(s) up-to-date.
> Makefile#1186 - file(s) up-to-date.
> terra% p4 diff2 Makefile#1499 Makefile#1186
> No file(s) at that revision.
>
> but I'm just flailing away.  I can't believe I can't figure this out.  What am I missing?
> --Jeff
>
>
> ---------------------------------
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>


More information about the perforce-user mailing list