[m-rev.] trivial diff: fix for tools/summarize_cvslog

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Feb 12 12:47:30 AEDT 2004


Estimated hours taken: 0.25
Branches: main

tools/summarize_cvslog:
	Strip unnecessary trailing newlines on the log message.
	This works around a problem with newer versions of cvs
	that seem to be adding an extra blank line at the end
	of the log message after each directory when the same
	log message is used for changes to more than one directory.

Workspace: /home/ceres/fjh/mercury
Index: tools/summarize_cvslog
===================================================================
RCS file: /home/mercury1/repository/mercury/tools/summarize_cvslog,v
retrieving revision 1.1
diff -u -d -r1.1 summarize_cvslog
--- tools/summarize_cvslog	23 May 2001 17:27:47 -0000	1.1
+++ tools/summarize_cvslog	12 Feb 2004 01:43:36 -0000
@@ -70,6 +70,7 @@
 	$next_asterisk_line = $next;
 
 	$log_message =~ s/^Log Message:\n\n//;
+	$log_message =~ s/\n\n*$/\n\n/;
 
 	if (0) {
 		print "[[[DEBUG INFO]]]\n" .

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list