Mercurial > kallithea
diff rhodecode/controllers/files.py @ 921:136af52f374b
merged found bugs and fixed for stable release:
- added force https option into ini files for easier https usage (no need to
set server headers with this options)
- small css updates
- fixed #96 redirect loop on files view on repositories without changesets
- fixed #97 unicode string passed into server header in special cases (mod_wsgi)
and server crashed with errors
- fixed large tooltips problems on main page
- fixed #92 whoosh indexer is more error proof
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 06 Jan 2011 19:10:25 +0100 |
parents | e8b5be26fb78 |
children | 93b980ebee55 |
line wrap: on
line diff
--- a/rhodecode/controllers/files.py Sat Dec 18 20:06:26 2010 +0100 +++ b/rhodecode/controllers/files.py Thu Jan 06 19:10:25 2011 +0100 @@ -39,7 +39,8 @@ from rhodecode.lib.utils import EmptyChangeset from rhodecode.model.scm import ScmModel -from vcs.exceptions import RepositoryError, ChangesetError +from vcs.exceptions import RepositoryError, ChangesetError, \ + ChangesetDoesNotExistError, EmptyRepositoryError from vcs.nodes import FileNode from vcs.utils import diffs as differ @@ -91,6 +92,10 @@ h.flash(str(e), category='warning') redirect(h.url('files_home', repo_name=repo_name, revision=revision)) + except EmptyRepositoryError, e: + h.flash(_('There are no files yet'), category='warning') + redirect(h.url('summary_home', repo_name=repo_name)) + except RepositoryError, e: h.flash(str(e), category='warning') redirect(h.url('files_home', repo_name=repo_name, revision='tip'))