From owner-freebsd-stable Thu Oct 7 12: 0:32 1999 Delivered-To: freebsd-stable@freebsd.org Received: from mpp.pro-ns.net (pppdsle45.mpls.uswest.net [216.160.23.45]) by hub.freebsd.org (Postfix) with ESMTP id 855DB153A5 for ; Thu, 7 Oct 1999 11:58:09 -0700 (PDT) (envelope-from mpp@mpp.pro-ns.net) Received: (from mpp@localhost) by mpp.pro-ns.net (8.9.3/8.9.3) id NAA40584; Thu, 7 Oct 1999 13:56:46 -0500 (CDT) (envelope-from mpp) Date: Thu, 7 Oct 1999 13:56:46 -0500 From: Mike Pritchard To: John Polstra Cc: Martin@McFlySr.Kurgan.Ru, stable@FreeBSD.ORG Subject: Re: Seeing log messages associated with CVSup updates Message-ID: <19991007135646.A40407@mpp.pro-ns.net> References: <13641.991004@McFlySr.Kurgan.Ru> <199910071621.JAA47057@vashon.polstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <199910071621.JAA47057@vashon.polstra.com> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Oct 07, 1999 at 09:21:17AM -0700, John Polstra wrote: > In article <13641.991004@McFlySr.Kurgan.Ru>, > Martin McFlySr wrote: > > Hello freebsd-stable@FreeBSD.ORG, > > > > 1. How can i see what namely was changed in files after CVSup is done? > > I can seen at log CVSup, but can see only what files was changed: > > > > Edit src/share/man/man5/rc.conf.5 > > Add delta 1.27.2.17 99.10.02.10.21.36 des > > Add delta 1.27.2.18 99.10.02.21.41.35 des > > Here is a really clever awk script that was written by Dom Mitchell > . It converts your CVSup log output > into an html page that you can display in your web browser. Each > "Edit" or "Checkout" line becomes a link to the cvsweb page for the > file. This script will be in the contrib section of the next release > of CVSup. For those who read commit mail, here is a simple perl script I got a long time ago from Warner Losh that you can pipe a commit message to and get diff output. Comes in very handy for reviewing changes after the fact. It requires a cvs repository on the machine you are executing it on. He might have a newer/better version than this. -Mike #!/usr/bin/perl -w # # Placed into the public domain by M. Warner Losh. 1997. Enjoy. # # > 1.94 +72 -34 src/sys/i386/scsi/aic7xxx.c # # Turns into a lot of diffs # while () { next unless /^ *((\d+.)+\d+) *\+\d+ -\d+ *(.*)$/; $rev_new = "$1"; @rev_old = split( /\./, $rev_new); $rev_old[$#rev_old]--; $revo = join('.',@rev_old); $fn = "$3"; system "rcsdiff @ARGV -u -r$revo -r$rev_new \$CVSROOT/$fn | \$PAGER\n"; } -- Mike Pritchard mpp@FreeBSD.org or mpp@mpp.pro-ns.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message