554175d9a71c

Print comments on skipped lines.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 09 Oct 2009 19:33:55 -0400
parents c983af6c02b1
children d32fa8336dc2
branches/tags (none)
files review/extension_ui.py

Changes

--- a/review/extension_ui.py	Fri Oct 09 19:27:43 2009 -0400
+++ b/review/extension_ui.py	Fri Oct 09 19:33:55 2009 -0400
@@ -135,6 +135,12 @@
             if n - 1 > previous_n:
                 skipped = n - previous_n
                 ui.write(messages.REVIEW_LOG_SKIPPED % skipped)
+                skipped_comments = filter(
+                    lambda c: max(c.lines) in range(previous_n + 1, n),
+                    line_level_comments
+                )
+                for comment in skipped_comments:
+                    _print_comment(comment)
             
             ui.write('%s %s\n' % (prefix % n, line))