From: Eric S. Raymond Date: Tue, 16 Sep 2003 00:52:19 +0000 (+0000) Subject: Drastically cut the report volume on similar versions X-Git-Tag: 2.0~61 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=c8f2688813a68f07a77ce84dc4855e8f34366bd8;p=comparator.git Drastically cut the report volume on similar versions --- 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