Changeset - 35be05089010
[Not reviewed]
default
0 1 0
Mads Kiilerich - 12 years ago 2013-06-28 02:26:13
madski@unity3d.com
diff: don't show content of deleted files
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/diffs.py
Show inline comments
 
@@ -435,15 +435,15 @@ class DiffProcessor(object):
 
                # GIT Binary patch
 
                if head['bin_patch']:
 
                    stats['ops'][BIN_FILENODE] = 'binary diff not shown'
 
                chunks = []
 

	
 
            if op == 'D' and chunks:
 
                # if not full diff mode show deleted file contents
 
                if self.diff_limit is not None:
 
                    chunks = []
 
                # a way of seeing deleted content could perhaps be nice - but
 
                # not with the current UI
 
                chunks = []
 

	
 
            chunks.insert(0, [{
 
                'old_lineno': '',
 
                'new_lineno': '',
 
                'action':     'context',
 
                'line':       msg,
0 comments (0 inline, 0 general)