Mercurial > kallithea
diff rhodecode/controllers/files.py @ 1313:856be614d9a4 beta
disabled edition of binary files
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 04 May 2011 19:19:00 +0200 |
parents | 70a5a9a57864 |
children | b7563ad4e7ee |
line wrap: on
line diff
--- a/rhodecode/controllers/files.py Wed May 04 19:06:56 2011 +0200 +++ b/rhodecode/controllers/files.py Wed May 04 19:19:00 2011 +0200 @@ -221,6 +221,10 @@ c.cs = self.__get_cs_or_redirect(revision, repo_name) c.file = self.__get_filenode_or_redirect(repo_name, c.cs, f_path) + if c.file.is_binary: + return redirect(url('files_home', repo_name=c.repo_name, + revision=c.cs.raw_id, f_path=f_path)) + c.file_history = self._get_node_history(c.cs, f_path) c.f_path = f_path