# HG changeset patch # User Mads Kiilerich # Date 2013-06-27 00:37:51 # Node ID bea9d8be4c7f360aaa05000003b5f6f8c15b2e9d # Parent ebcb1d32eed900d562711170c1043986369f9984 diff: don't show content of deleted files diff --git a/rhodecode/lib/diffs.py b/rhodecode/lib/diffs.py --- a/rhodecode/lib/diffs.py +++ b/rhodecode/lib/diffs.py @@ -437,6 +437,9 @@ class DiffProcessor(object): stats['ops'][BIN_FILENODE] = 'binary diff not shown' chunks = [] + if op == 'D' and chunks: + chunks = [] + chunks.insert(0, [{ 'old_lineno': '', 'new_lineno': '',