CVS commit log emails

Malcolm Purvis malcolmp at xemacs.org
Tue Oct 25 08:20:03 EDT 2005


>>>>> "Steve" == Steve Youngs <steve at sxemacs.org> writes:

Steve> I was wondering if the commit log emails could be generated _without_
Steve> that 2 character left margin?

The patch below should fix the problem, but of course it is impossible to test
without checking it in.

BTW, log_accum is a really nifty script.  I recently adapted it for work to
sent the log to the corresponding ticket in a GNATS database and it has been
very well received.

Malcolm

Index: log_accum
===================================================================
RCS file: /pack/xemacscvs/CVSROOT/log_accum,v
retrieving revision 1.66
diff -u -p -r1.66 log_accum
--- log_accum   2005/03/20 17:51:45     1.66
+++ log_accum   2005/10/25 12:12:02
@@ -691,14 +691,14 @@ for ($i = 0; ; $i++) {
     push(@text, &read_file("$CHANGED_FILE.$i.$id.$cvs_user", "Modified:"));
     push(@text, &read_file("$ADDED_FILE.$i.$id.$cvs_user", "Added:"));
     push(@text, &read_file("$REMOVED_FILE.$i.$id.$cvs_user", "Removed:"));
-    push(@text, "  Log:");
-    push(@text, &read_logfile("$LOG_FILE.$i.$id.$cvs_user", "  "));
+    push(@text, "Log:");
+    push(@text, &read_logfile("$LOG_FILE.$i.$id.$cvs_user", ""));
     push(@mlist_list, &read_file_lines("$MLIST_FILE.$i.$id.$cvs_user"));
     if ($rcsidinfo == 2) {
         if (-e "$SUMMARY_FILE.$i.$id.$cvs_user") {
-            push(@text, "  ");
-            push(@text, "  Revision  Changes    Path");
-            push(@text, &read_logfile("$SUMMARY_FILE.$i.$id.$cvs_user", "  "));
+            push(@text, "");
+            push(@text, "Revision  Changes    Path");
+            push(@text, &read_logfile("$SUMMARY_FILE.$i.$id.$cvs_user", ""));
         }
     }
     push(@text, "");


-- 
		     Malcolm Purvis <malcolmp at xemacs.org>




More information about the XEmacs-Beta mailing list