From owner-cvs-sys Sat Aug 26 14:28:45 1995 Return-Path: cvs-sys-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id OAA02455 for cvs-sys-outgoing; Sat, 26 Aug 1995 14:28:45 -0700 Received: from haywire.DIALix.COM (haywire.DIALix.COM [192.203.228.65]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id OAA02447 ; Sat, 26 Aug 1995 14:28:35 -0700 Received: (from peter@localhost) by haywire.DIALix.COM (sendmail) id FAA04994; Sun, 27 Aug 1995 05:27:47 +0800 (WST) Date: Sun, 27 Aug 1995 05:27:46 +0800 (WST) From: Peter Wemm To: Bruce Evans cc: CVS-commiters@freefall.FreeBSD.org, cvs-sys@freefall.FreeBSD.org Subject: cvsedit and the iron fist approach.... In-Reply-To: <199508262114.OAA02136@freefall.FreeBSD.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: cvs-sys-owner@FreeBSD.org Precedence: bulk On Sun, 27 Aug 1995, Bruce Evans wrote: > Date: Sun, 27 Aug 1995 06:55:21 +1000 > From: Bruce Evans > To: CVS-commiters@freefall.FreeBSD.org, bde@freefall.FreeBSD.org, > cvs-sys@freefall.FreeBSD.org > Subject: cvsinit doesn't ask about aborting for null log messages > > I was annoyed when cvsinit didn't prompt for aborting for an empty > log message. Perhaps it always has always done this, but our log > messages were previously rarely empty because the Submitted by: > (etc.) lines weren't stripped. > > What does it do for an empty log message in the middle of a batch? > > Bruce 1,$s/cvsinit/cvsedit/g Yeah, Satoshi commented about this too. Since people are asking about it, it's obviously not desirable... I propose the following change to cvsedit to "fix" it, since cvsedit actually does the right thing on an empty file anyway. When I wrote it, I put it in to make sure that I didn't miss any cases when the filter may have totally removed all the log. It's outlived it's usefulness. As for a mid-commit exit, it'll cause the same problem if you chose abort under the old system... Ie: log_accum will not get run to close off the commit messages and send the mail, even though some commits have been done. log_accum has always had this problem right from day 1. I've spoken with Rod about it before, and I've just had an idea how to counter it... We could make a directory somewhere other than /tmp, and get log_accum to put it's checkpoint files there. We can get a cron job to run over them every hour or so, and see if there are any abandoned, partially committed, unlogged messages left, and run log_accum.pl manually to close them off.... Otherwise we'll never see the commit mail for the commits that were actually completed. -Peter Index: cvsedit =================================================================== RCS file: /home/ncvs/CVSROOT/cvsedit,v retrieving revision 1.6 diff -c -2 -r1.6 cvsedit *** 1.6 1995/08/23 11:42:34 --- cvsedit 1995/08/26 21:14:06 *************** *** 81,87 **** # sanity check... ! if (!$first) { ! die("cvsedit: Empty log message not permitted!\n"); ! } unlink($filename . "~"); # Nuke likely editor backups.. --- 81,87 ---- # sanity check... ! #if (!$first) { ! # die("cvsedit: Empty log message not permitted!\n"); ! #} unlink($filename . "~"); # Nuke likely editor backups..