From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 7 18:14:17 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 1C820106566B for ; Mon, 7 Apr 2008 18:14:17 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail.speedfactory.net [66.23.216.219]) by mx1.freebsd.org (Postfix) with ESMTP id 8ECCE8FC15 for ; Mon, 7 Apr 2008 18:14:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.8s) with ESMTP id 238254153-1834499 for multiple; Mon, 07 Apr 2008 13:57:59 -0400 Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m37Hv2Rt043811; Mon, 7 Apr 2008 13:57:02 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Mike Meyer Date: Mon, 7 Apr 2008 13:56:40 -0400 User-Agent: KMail/1.9.7 References: <20080405145038.GE5934@hoeg.nl> <200804071039.07210.jhb@freebsd.org> <20080407124300.5195e299@mbook-fbsd> In-Reply-To: <20080407124300.5195e299@mbook-fbsd> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804071356.41181.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 07 Apr 2008 13:57:02 -0400 (EDT) X-Virus-Scanned: ClamAV 0.91.2/6649/Mon Apr 7 12:09:17 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx 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 18:14:17 -0000 On Monday 07 April 2008 12:43:00 pm 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. This is not for e-mails for individual submits. This for generating a cumulative patch of all the differences in one branch relative to the parent. -- John Baldwin