474bb295c5f8 webui

Show comments on skipped hunks at the end of files.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 06 Feb 2010 06:39:00 -0500
parents b30379368b53
children e627607e24d0
branches/tags webui
files review/extension_ui.py

Changes

--- a/review/extension_ui.py	Sat Feb 06 06:38:19 2010 -0500
+++ b/review/extension_ui.py	Sat Feb 06 06:39:00 2010 -0500
@@ -207,6 +207,12 @@
         if previous_n < max_line:
             skipped = max_line - previous_n
             ui.write(messages.REVIEW_LOG_SKIPPED % skipped)
+            skipped_comments = filter(
+                lambda c: max(c.lines) in range(previous_n + 1, max_line),
+                line_level_comments
+            )
+            for comment in skipped_comments:
+                _print_comment(comment)