##// END OF EJS Templates
backported redirection loop fix from beta ref: 222e9432298e
marcink -
r3804:b95f383f default
parent child Browse files
Show More
@@ -36,7 +36,8 b' from rhodecode.lib.base import BaseRepoC'
36 from rhodecode.lib.helpers import RepoPage
36 from rhodecode.lib.helpers import RepoPage
37 from rhodecode.lib.compat import json
37 from rhodecode.lib.compat import json
38 from rhodecode.lib.graphmod import _colored, _dagwalker
38 from rhodecode.lib.graphmod import _colored, _dagwalker
39 from rhodecode.lib.vcs.exceptions import RepositoryError, ChangesetDoesNotExistError
39 from rhodecode.lib.vcs.exceptions import RepositoryError, ChangesetDoesNotExistError,\
40 EmptyRepositoryError
40 from rhodecode.lib.utils2 import safe_int
41 from rhodecode.lib.utils2 import safe_int
41
42
42 log = logging.getLogger(__name__)
43 log = logging.getLogger(__name__)
@@ -80,6 +81,9 b' class ChangelogController(BaseRepoContro'
80 page_revisions = [x.raw_id for x in collection]
81 page_revisions = [x.raw_id for x in collection]
81 c.comments = c.rhodecode_db_repo.get_comments(page_revisions)
82 c.comments = c.rhodecode_db_repo.get_comments(page_revisions)
82 c.statuses = c.rhodecode_db_repo.statuses(page_revisions)
83 c.statuses = c.rhodecode_db_repo.statuses(page_revisions)
84 except (EmptyRepositoryError), e:
85 h.flash(str(e), category='warning')
86 return redirect(url('summary_home', repo_name=c.repo_name))
83 except (RepositoryError, ChangesetDoesNotExistError, Exception), e:
87 except (RepositoryError, ChangesetDoesNotExistError, Exception), e:
84 log.error(traceback.format_exc())
88 log.error(traceback.format_exc())
85 h.flash(str(e), category='error')
89 h.flash(str(e), category='error')
General Comments 0
You need to be logged in to leave comments. Login now