Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Oct 1999 13:56:46 -0500
From:      Mike Pritchard <mpp@FreeBSD.org>
To:        John Polstra <jdp@polstra.com>
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>
In-Reply-To: <199910071621.JAA47057@vashon.polstra.com>
References:  <13641.991004@McFlySr.Kurgan.Ru> <199910071621.JAA47057@vashon.polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 07, 1999 at 09:21:17AM -0700, John Polstra wrote:
> In article <13641.991004@McFlySr.Kurgan.Ru>,
> Martin McFlySr  <Martin@McFlySr.Kurgan.Ru> 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
> <Dom.Mitchell@palmerharvey.co.uk>.  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 (<STDIN>) {
	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991007135646.A40407>