Author: metze Date: 2004-08-16 17:36:59 +0000 (Mon, 16 Aug 2004) New Revision: 1837
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1837&nolog=1 Log: - change the inline diff line limit to 250 lines - change the formatting a bit I'll merge that to the other repos soon metze Modified: hooks/commit-email.pl Changeset: Modified: hooks/commit-email.pl =================================================================== --- hooks/commit-email.pl 2004-08-16 16:52:57 UTC (rev 1836) +++ hooks/commit-email.pl 2004-08-16 17:36:59 UTC (rev 1837) @@ -54,7 +54,7 @@ # Maximum number of lines to display in a diff. If there are more # than this many lines, don't include a diff at all. -my $max_difflines = 100; +my $max_difflines = 250; # Since the path to svnlook depends upon the local installation # preferences, check that the required programs exist to insure that @@ -337,11 +337,14 @@ # Assembly of log message. # Put together the body of the log message. +my $websvn_link = "WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba\&path=/$commondir\&rev=$rev\&nolog=1\n"; my @body; push(@body, "Author: $author\n"); push(@body, "Date: $date\n"); push(@body, "New Revision: $rev\n"); -push(@body, "WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba\&path=/$commondir\&rev=$rev\&nolog=1\n"); +push(@body, "\n"); +push(@body, $websvn_link); +push(@body, "\n"); push(@body, "Log:\n"); push(@body, @log); if (@adds) @@ -362,11 +365,12 @@ push(@body, "Modified:\n"); push(@body, map { " $_\n" } @mods); } -push(@body, "\nChangeset:\n"); +push(@body, "\n\nChangeset:\n"); if ($#difflines <= $max_difflines) { push(@body, map { /[\r\n]+$/ ? $_ : "$_\n" } @difflines); } else { - push(@body, "Sorry the patch is to large, please use WebSVN to see it!\n"); + push(@body, "Sorry, the patch is too large (".$#difflines." lines) to include; please use WebSVN to see it!\n"); + push(@body, $websvn_link); }; # Go through each project and see if there are any matches for this
