changeset 349:031152a540c5

Bugfix for empty diff
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 14 Jul 2010 18:15:37 +0200
parents e8fc875467bd
children 664a5b8c551a
files pylons_app/controllers/files.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pylons_app/controllers/files.py	Wed Jul 14 16:51:19 2010 +0200
+++ b/pylons_app/controllers/files.py	Wed Jul 14 18:15:37 2010 +0200
@@ -182,6 +182,8 @@
         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):