Perforce and `p4 diff2' against the origin

Max Laier max at love2party.net
Sat Apr 5 16:15:29 UTC 2008


On Saturday 05 April 2008 18:03:12 Roman Divacky wrote:
> On Sat, Apr 05, 2008 at 04:50:38PM +0200, Ed Schouten wrote:
> > Hello everyone,
> >
> > Because my mpsafetty project in Perforce is going quite well, I'm
> > considering running some kind of cron job to generate nightly diffs,
> > so other people (interested friends, colleagues and others) to test
> > my work.
> >
> > I've read `p4 help diff2' and it seems you can run the following
> > command:
> >
> > 	p4 diff2 -b mpsafetty
> >
> > Unfortunately this command just does a braindead diff against the
> > latest FreeBSD vendor source, which is not useful in my case. I just
> > want it to generate a diff against the version I integrated.
> >
> > Is it possible to do this with Perforce?
>
> this is what I use
>
> p4 diff2 -du //depot/vendor/freebsd/src/sys/... at 131880
> //depot/projects/soc2007/rdivacky/linux_at/sys/...  | ~/awkdiff
>
> you can adjust that to your needs

The @rev to use can be obtained with:
	
	p4 changes -m 1 -i -u importer ...

while inside your branched directory.  Yes, this is an expensive command.  
You should rather check out the latest rev on the vendor tree before 
doing an IFC and record that rev into the IFC commit message.

-- 
/"\  Best regards,                      | mlaier at freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier at EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News


More information about the freebsd-hackers mailing list