From c8f2688813a68f07a77ce84dc4855e8f34366bd8 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 16 Sep 2003 00:52:19 +0000 Subject: [PATCH] Drastically cut the report volume on similar versions --- filterator | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/filterator b/filterator index af62511..c15dd09 100755 --- a/filterator +++ b/filterator @@ -91,6 +91,9 @@ def report_common(stats=1,list=1): int(m.group(3)), int(m.group(4)))) if line == '%%\n': for (file, start, end, length) in locations: + if start == 1 and end == length: + print "%% %s:%d-%d: entire (%d matches)" % (file, start, end, len(locations)) + continue if end - start + 1 < minsize: continue try: @@ -131,7 +134,7 @@ def report_common(stats=1,list=1): count += 1 lines += end - start + 1 if list: - print "%% %s:%s-%s: (%d matches)" % (file, start, end, len(locations)) + print "%% %s:%d-%d: (%d matches)" % (file, start, end, len(locations)) sys.stdout.write(text) locations = [] break -- 2.43.0