Mercurial > public > src > rhodecode
diff pylons_app/controllers/files.py @ 373:031152a540c5
Bugfix for empty diff
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 14 Jul 2010 18:15:37 +0200 |
parents | fa3835d34fc1 |
children | 3e55d9981c0e |
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):