Changeset - bea9d8be4c7f
[Not reviewed]
default
0 1 0
Mads Kiilerich - 12 years ago 2013-06-27 00:37:51
madski@unity3d.com
diff: don't show content of deleted files
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/diffs.py
Show inline comments
 
@@ -434,12 +434,15 @@ class DiffProcessor(object):
 
            else:  # GIT binary patch (or empty diff)
 
                # GIT Binary patch
 
                if head['bin_patch']:
 
                    stats['ops'][BIN_FILENODE] = 'binary diff not shown'
 
                chunks = []
 

	
 
            if op == 'D' and chunks:
 
                chunks = []
 

	
 
            chunks.insert(0, [{
 
                'old_lineno': '',
 
                'new_lineno': '',
 
                'action':     'context',
 
                'line':       msg,
 
                } for _op, msg in stats['ops'].iteritems()
0 comments (0 inline, 0 general)