Perforce and `p4 diff2' against the origin

Roman Divacky rdivacky at freebsd.org
Sat Apr 5 16:03:45 UTC 2008


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


More information about the freebsd-hackers mailing list