[extensions-web] Don't show collapsible chunks



commit 16ff299ae9db5b3ab3cb6530c6c7d75af516ba9f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat Nov 19 16:15:02 2011 -0500

    Don't show collapsible chunks

 sweettooth/review/diffview.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/sweettooth/review/diffview.py b/sweettooth/review/diffview.py
index 6598ec2..2f149c0 100644
--- a/sweettooth/review/diffview.py
+++ b/sweettooth/review/diffview.py
@@ -41,6 +41,9 @@ def get_line_region_markup(line, regions):
     return parts
 
 def get_equal_markup(chunk, old, new):
+    if chunk['collapsible']:
+        return '', ''
+
     lines = chunk['lines']
     start = lines[0]
     end = lines[-1]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]