From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 7 17:06:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3B4F1065675 for ; Mon, 7 Apr 2008 17:06:22 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outI.internet-mail-service.net (outi.internet-mail-service.net [216.240.47.232]) by mx1.freebsd.org (Postfix) with ESMTP id DAD8E8FC1D for ; Mon, 7 Apr 2008 17:06:22 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Mon, 07 Apr 2008 12:59:17 -0700 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id D3F0E2D60F6; Mon, 7 Apr 2008 10:06:18 -0700 (PDT) Message-ID: <47FA548D.6060108@elischer.org> Date: Mon, 07 Apr 2008 10:06:21 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: Mike Meyer References: <20080405145038.GE5934@hoeg.nl> <200804071039.07210.jhb@freebsd.org> <20080407124300.5195e299@mbook-fbsd> In-Reply-To: <20080407124300.5195e299@mbook-fbsd> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Ed Schouten Subject: Re: Perforce and `p4 diff2' against the origin X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2008 17:06:23 -0000 Mike Meyer wrote: > On Mon, 7 Apr 2008 10:39:07 -0400 John Baldwin wrote: > >> On Saturday 05 April 2008 10:50:38 am 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? >> Then you can use p4 changes on your branch and find the last IFC and use that >> diff like so: >> >> p4 diff2 -u -b mybranch @12345 #head >> >> I have a script to look in p4 changes of the branch to find the last IFC >> commit and figure out the '12345' part automatically like so: > > > Perforce has facilities designed specifically to support this kind of > thing - counters and the "review" command. You can find a brief > description plus a link to the perforce-standard review daemon here: > > http://www.perforce.com/perforce/loadsupp.html#daemon > > It's designed to send email to perforce user. > > Actually, something similar ought to be running on the repository > already. If so, and you're not using it, you can 'cheat' by setting up > the mail list you want and pointing your p4 user Email field at that, > along with the appropriate Reviews setting for yourself. > >