summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-12-03 21:21:38 +0000
committerjoe <joe@FreeBSD.org>2001-12-03 21:21:38 +0000
commit1d7ff463e132d8c548b61bb9e66e933c641c397e (patch)
tree7b8d459b96dcb7082804ef605cda982a54781d86
parent4d71e8453512f5318e45102c324d1800d5833ec7 (diff)
downloadFreeBSD-ports-1d7ff463e132d8c548b61bb9e66e933c641c397e.zip
FreeBSD-ports-1d7ff463e132d8c548b61bb9e66e933c641c397e.tar.gz
When suppressing a diff because it's too large mention what size it
actually was.
-rwxr-xr-xCVSROOT/log_accum.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/CVSROOT/log_accum.pl b/CVSROOT/log_accum.pl
index 1068d24..dbe25e7 100755
--- a/CVSROOT/log_accum.pl
+++ b/CVSROOT/log_accum.pl
@@ -607,9 +607,12 @@ sub do_diff {
close DIFF;
}
}
- if (length($diff) > $cfg::MAX_DIFF_SIZE * 1024) {
- $diff = "File/diff for $file is too large! ";
- $diff .= "Use cvsweb.\n";
+
+ my $diff_length = length($diff);
+ if ($diff_length > $cfg::MAX_DIFF_SIZE * 1024) {
+ $diff = "File/diff for $file is too large (" .
+ $diff_length . " bytes > " .
+ $cfg::MAX_DIFF_SIZE * 1024 . " bytes)!\n";
}
&append_line($outfile, "\n\n$diff");
}
OpenPOWER on IntegriCloud