# HG changeset patch # User Marcin Kuzminski # Date 2010-07-14 16:15:37 # Node ID 031152a540c55fa9b7ab2293f34cc26526c81972 # Parent e8fc875467bdfcb79a56b81515c9bec00ca85c36 Bugfix for empty diff diff --git a/pylons_app/controllers/files.py b/pylons_app/controllers/files.py --- a/pylons_app/controllers/files.py +++ b/pylons_app/controllers/files.py @@ -182,6 +182,8 @@ class FilesController(BaseController): else: #default option c.cur_diff = diff.as_html() + + if not c.cur_diff: c.no_changes = True return render('files/file_diff.html') def _get_history(self, repo, node, f_path):