From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 7 21:58:54 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 1AB0A106566C for ; Mon, 7 Apr 2008 21:58:54 +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 E04C98FC1E for ; Mon, 7 Apr 2008 21:58:53 +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 17:53:00 -0700 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 27C482D6011; Mon, 7 Apr 2008 14:58:50 -0700 (PDT) Message-ID: <47FA991C.80704@elischer.org> Date: Mon, 07 Apr 2008 14:58:52 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: Ed Schouten References: <20080405145038.GE5934@hoeg.nl> <200804071039.07210.jhb@freebsd.org> <20080407200225.GQ5934@hoeg.nl> In-Reply-To: <20080407200225.GQ5934@hoeg.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers 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 21:58:54 -0000 Ed Schouten wrote: > * 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? >> One option is to create a label and sync it each time you do an integ. I do >> this for projects/smpng. Then I can do: >> >> p4 diff2 -u -b smpng @smpng_base #head > > I just tried this and just wanted to say it works great. This method is The two scripts I mentioned do exactly this. (but easier on the eyes.) >